Interface ColumnSource
-
- All Superinterfaces:
RelationalValueSource
public interface ColumnSource extends RelationalValueSource
Contract for source information pertaining to a physical column definition specific to a particular attribute context. Conceptual note: this really describes a column from the perspective of its binding to an attribute, not necessarily the column itself.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.boot.model.source.spi.RelationalValueSource
RelationalValueSource.Nature
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCheckCondition()Obtain the specified check constraint conditionjava.lang.StringgetComment()Obtain the specified SQL commentJdbcDataTypegetDatatype()The deduced (and dialect convertible) type for this columnjava.lang.StringgetDefaultValue()Obtain a specified default value for the columnjava.util.Set<java.lang.String>getIndexConstraintNames()java.lang.StringgetName()Obtain the name of the column.java.lang.StringgetReadFragment()A SQL fragment to apply to the column value on read.SizeSourcegetSizeSource()Obtain the source for the specified column size.java.lang.StringgetSqlType()Obtain the free-hand definition of the column's type.java.util.Set<java.lang.String>getUniqueKeyConstraintNames()java.lang.StringgetWriteFragment()A SQL fragment to apply to the column value on write.TruthValueisNullable()Is this column nullable?booleanisUnique()Is this column unique?-
Methods inherited from interface org.hibernate.boot.model.source.spi.RelationalValueSource
getContainingTableName, getNature
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Obtain the name of the column.- Returns:
- The name of the column. Can be
null, in which case a naming strategy is applied.
-
getReadFragment
java.lang.String getReadFragment()
A SQL fragment to apply to the column value on read.- Returns:
- The SQL read fragment
-
getWriteFragment
java.lang.String getWriteFragment()
A SQL fragment to apply to the column value on write.- Returns:
- The SQL write fragment
-
isNullable
TruthValue isNullable()
Is this column nullable?- Returns:
trueindicates it is nullable;falsenon-nullable.
-
getDefaultValue
java.lang.String getDefaultValue()
Obtain a specified default value for the column- Returns:
- THe column default
-
getSqlType
java.lang.String getSqlType()
Obtain the free-hand definition of the column's type.- Returns:
- The free-hand column type
-
getDatatype
JdbcDataType getDatatype()
The deduced (and dialect convertible) type for this column- Returns:
- The column's SQL data type.
-
getSizeSource
SizeSource getSizeSource()
Obtain the source for the specified column size.- Returns:
- The source for the column size.
-
isUnique
boolean isUnique()
Is this column unique?- Returns:
trueindicates it is unique;falsenon-unique.
-
getCheckCondition
java.lang.String getCheckCondition()
Obtain the specified check constraint condition- Returns:
- Check constraint condition
-
getComment
java.lang.String getComment()
Obtain the specified SQL comment- Returns:
- SQL comment
-
getIndexConstraintNames
java.util.Set<java.lang.String> getIndexConstraintNames()
-
getUniqueKeyConstraintNames
java.util.Set<java.lang.String> getUniqueKeyConstraintNames()
-
-