Interface ColumnInformation
- All Superinterfaces:
ColumnTypeInformation
- All Known Implementing Classes:
ColumnInformationImpl
Provides access to information about existing table columns
- Author:
- Christoph Sturm, Steve Ebersole
-
Field Summary
Fields inherited from interface org.hibernate.tool.schema.extract.spi.ColumnTypeInformation
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionThe simple (not qualified) column name.intThe column size (length).Access to the containing table.intThe precision, for numeric typesIs the column nullable.intThe JDBC type-code.The database specific type name.
-
Method Details
-
getContainingTableInformation
TableInformation getContainingTableInformation()Access to the containing table.- Returns:
- The containing table information
-
getColumnIdentifier
Identifier getColumnIdentifier()The simple (not qualified) column name.- Returns:
- The column simple identifier.
-
getNullable
TruthValue getNullable()Is the column nullable. The database is allowed to report unknown, hence the use of TruthValue- Specified by:
getNullablein interfaceColumnTypeInformation- Returns:
- nullability.
-
getTypeCode
int getTypeCode()The JDBC type-code.- Specified by:
getTypeCodein interfaceColumnTypeInformation- Returns:
- JDBC type-code
-
getTypeName
String getTypeName()The database specific type name.- Specified by:
getTypeNamein interfaceColumnTypeInformation- Returns:
- Type name
-
getColumnSize
int getColumnSize()The column size (length).- Specified by:
getColumnSizein interfaceColumnTypeInformation- Returns:
- The column length
-
getDecimalDigits
int getDecimalDigits()The precision, for numeric types- Specified by:
getDecimalDigitsin interfaceColumnTypeInformation- Returns:
- The numeric precision
-