Package org.hibernate.mapping

Class Column

    • Constructor Detail

      • Column

        public Column()
      • Column

        public Column​(String columnName)
    • Method Detail

      • getLength

        public Long getLength()
      • setLength

        public void setLength​(Long length)
      • setLength

        public void setLength​(Integer length)
      • getArrayLength

        public Integer getArrayLength()
      • setArrayLength

        public void setArrayLength​(Integer arrayLength)
      • getValue

        public Value getValue()
      • setValue

        public void setValue​(Value value)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • isExplicit

        public boolean isExplicit()
      • setExplicit

        public void setExplicit​(boolean explicit)
      • isIdentity

        public boolean isIdentity()
      • setIdentity

        public void setIdentity​(boolean identity)
      • getQuotedName

        public String getQuotedName()
        Returns:
        the quoted name as it would occur in the mapping file
      • getQuotedName

        public String getQuotedName​(Dialect dialect)
        Returns:
        the quoted name using the quoting syntax of the given dialect
      • isNullable

        public boolean isNullable()
      • setNullable

        public void setNullable​(boolean nullable)
      • getTypeIndex

        public int getTypeIndex()
      • setTypeIndex

        public void setTypeIndex​(int typeIndex)
      • isUnique

        public boolean isUnique()
      • equals

        public boolean equals​(Column column)
      • getSqlTypeCode

        public Integer getSqlTypeCode()
        ReturnsSQL type code for this column, ornull if the type code is unknown.

        UsegetSqlTypeCode(Mapping) to retrieve the type code usingValue associated with the column.

        Returns:
        the type code, if it is set, otherwise null.
      • setSqlTypeCode

        public void setSqlTypeCode​(Integer typeCode)
      • getSqlType

        public String getSqlType()
      • setSqlType

        public void setSqlType​(String typeName)
      • isSqlTypeLob

        public boolean isSqlTypeLob()
      • isSqlTypeLob

        public boolean isSqlTypeLob​(Metadata mapping)
      • setUnique

        public void setUnique​(boolean unique)
      • getUniqueKeyName

        public String getUniqueKeyName()
      • setUniqueKeyName

        public void setUniqueKeyName​(String keyName)
      • isQuoted

        public boolean isQuoted()
      • addCheckConstraint

        public void addCheckConstraint​(CheckConstraint checkConstraint)
      • hasCheckConstraint

        public boolean hasCheckConstraint()
      • hasCustomRead

        public boolean hasCustomRead()
      • isFormula

        public boolean isFormula()
        Description copied from interface: Selectable
        Does this selectable represent a formula?true indicates it is a formula;false indicates it is a physical column
        Specified by:
        isFormula in interface Selectable
      • getText

        public String getText​(Dialect dialect)
        Description copied from interface: Selectable
        The selectable's text representation accounting for the Dialect's quoting, if quoted
        Specified by:
        getText in interface Selectable
      • getText

        public String getText()
        Description copied from interface: Selectable
        The selectable's "canonical" text representation
        Specified by:
        getText in interface Selectable
      • getPrecision

        public Integer getPrecision()
      • setPrecision

        public void setPrecision​(Integer precision)
      • getScale

        public Integer getScale()
      • setScale

        public void setScale​(Integer scale)
      • getTemporalPrecision

        public Integer getTemporalPrecision()
      • setTemporalPrecision

        public void setTemporalPrecision​(Integer temporalPrecision)
      • getComment

        public String getComment()
      • setComment

        public void setComment​(String comment)
      • getCollation

        public String getCollation()
      • setCollation

        public void setCollation​(String collation)
      • getDefaultValue

        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • getGeneratedAs

        public String getGeneratedAs()
      • setGeneratedAs

        public void setGeneratedAs​(String generatedAs)
      • getAssignmentExpression

        public String getAssignmentExpression()
      • setAssignmentExpression

        public void setAssignmentExpression​(String assignmentExpression)
      • getCustomWrite

        public String getCustomWrite()
      • setCustomWrite

        public void setCustomWrite​(String customWrite)
      • getCustomRead

        public String getCustomRead()
      • setResolvedCustomRead

        public void setResolvedCustomRead​(String customRead)
      • 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