接口 ColumnSource
-
- 所有超级接口:
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.- 作者:
- Steve Ebersole
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.boot.model.source.spi.RelationalValueSource
RelationalValueSource.Nature
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetCheckCondition()Obtain the specified check constraint conditionStringgetComment()Obtain the specified SQL commentJdbcDataTypegetDatatype()The deduced (and dialect convertible) type for this columnStringgetDefaultValue()Obtain a specified default value for the columnSet<String>getIndexConstraintNames()StringgetName()Obtain the name of the column.StringgetReadFragment()A SQL fragment to apply to the column value on read.SizeSourcegetSizeSource()Obtain the source for the specified column size.StringgetSqlType()Obtain the free-hand definition of the column's type.Set<String>getUniqueKeyConstraintNames()StringgetWriteFragment()A SQL fragment to apply to the column value on write.TruthValueisNullable()Is this column nullable?booleanisUnique()Is this column unique?-
从接口继承的方法 org.hibernate.boot.model.source.spi.RelationalValueSource
getContainingTableName, getNature
-
-
-
-
方法详细资料
-
getName
String getName()
Obtain the name of the column.- 返回:
- The name of the column. Can be
null, in which case a naming strategy is applied.
-
getReadFragment
String getReadFragment()
A SQL fragment to apply to the column value on read.- 返回:
- The SQL read fragment
-
getWriteFragment
String getWriteFragment()
A SQL fragment to apply to the column value on write.- 返回:
- The SQL write fragment
-
isNullable
TruthValue isNullable()
Is this column nullable?- 返回:
trueindicates it is nullable;falsenon-nullable.
-
getDefaultValue
String getDefaultValue()
Obtain a specified default value for the column- 返回:
- THe column default
-
getSqlType
String getSqlType()
Obtain the free-hand definition of the column's type.- 返回:
- The free-hand column type
-
getDatatype
JdbcDataType getDatatype()
The deduced (and dialect convertible) type for this column- 返回:
- The column's SQL data type.
-
getSizeSource
SizeSource getSizeSource()
Obtain the source for the specified column size.- 返回:
- The source for the column size.
-
isUnique
boolean isUnique()
Is this column unique?- 返回:
trueindicates it is unique;falsenon-unique.
-
getCheckCondition
String getCheckCondition()
Obtain the specified check constraint condition- 返回:
- Check constraint condition
-
getComment
String getComment()
Obtain the specified SQL comment- 返回:
- SQL comment
-
-