Class Column

    • Constructor Detail

      • Column

        public Column()
      • Column

        public Column​(String columnName)
    • Method Detail

      • getLength

        public int getLength()
      • setLength

        public void setLength​(int length)
      • getValue

        public Value getValue()
      • setValue

        public void setValue​(Value value)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getQuotedName

        public String getQuotedName()
        returns quoted name as it would be in the mapping file.
      • getAlias

        public String getAlias​(Dialect dialect,
                               Table table)
        Generate a column alias that is unique across multiple tables
        Specified by:
        getAlias in interface Selectable
      • isNullable

        public boolean isNullable()
      • setNullable

        public void setNullable​(boolean nullable)
      • getTypeIndex

        public int getTypeIndex()
      • setTypeIndex

        public void setTypeIndex​(int typeIndex)
      • isUnique

        public boolean isUnique()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Column column)
      • getSqlTypeCode

        public Integer getSqlTypeCode()
        Returns the underlying columns SqlTypeCode. If null, it is because the SqlTypeCode is unknown.

        Use #getSqlTypeCode(Mapping) to retrieve the SqlTypeCode used for the columns associated Value/Type.

        Returns:
        sqlTypeCode if it is set, otherwise null.
      • setSqlTypeCode

        public void setSqlTypeCode​(Integer typeCode)
      • getSqlType

        public String getSqlType()
      • setSqlType

        public void setSqlType​(String sqlType)
      • setUnique

        public void setUnique​(boolean unique)
      • isQuoted

        public boolean isQuoted()
      • getCheckConstraint

        public String getCheckConstraint()
      • setCheckConstraint

        public void setCheckConstraint​(String checkConstraint)
      • hasCheckConstraint

        public boolean hasCheckConstraint()
      • hasCustomRead

        public boolean hasCustomRead()
      • getWriteExpr

        public String getWriteExpr()
      • getPrecision

        public int getPrecision()
      • setPrecision

        public void setPrecision​(int scale)
      • getScale

        public int getScale()
      • setScale

        public void setScale​(int scale)
      • getComment

        public String getComment()
      • setComment

        public void setComment​(String comment)
      • getDefaultValue

        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • getCustomWrite

        public String getCustomWrite()
      • setCustomWrite

        public void setCustomWrite​(String customWrite)
      • getCustomRead

        public String getCustomRead()
      • setCustomRead

        public void setCustomRead​(String customRead)
      • getCanonicalName

        public String getCanonicalName()
      • clone

        public Column clone()
        Shallow copy, the value is not copied
        Overrides:
        clone in class Object