Class ColumnInformationImpl
java.lang.Object
org.hibernate.tool.schema.extract.internal.ColumnInformationImpl
- All Implemented Interfaces:
ColumnInformation,ColumnTypeInformation
JDBC column metadata
- Author:
- Christoph Sturm, Steve Ebersole
-
Field Summary
Fields inherited from interface org.hibernate.tool.schema.extract.spi.ColumnTypeInformation
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable) -
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.toString()
-
Constructor Details
-
ColumnInformationImpl
public ColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable)
-
-
Method Details
-
getContainingTableInformation
Description copied from interface:ColumnInformationAccess to the containing table.- Specified by:
getContainingTableInformationin interfaceColumnInformation- Returns:
- The containing table information
-
getColumnIdentifier
Description copied from interface:ColumnInformationThe simple (not qualified) column name.- Specified by:
getColumnIdentifierin interfaceColumnInformation- Returns:
- The column simple identifier.
-
getTypeCode
public int getTypeCode()Description copied from interface:ColumnInformationThe JDBC type-code.- Specified by:
getTypeCodein interfaceColumnInformation- Specified by:
getTypeCodein interfaceColumnTypeInformation- Returns:
- JDBC type-code
-
getTypeName
Description copied from interface:ColumnInformationThe database specific type name.- Specified by:
getTypeNamein interfaceColumnInformation- Specified by:
getTypeNamein interfaceColumnTypeInformation- Returns:
- Type name
-
getColumnSize
public int getColumnSize()Description copied from interface:ColumnInformationThe column size (length).- Specified by:
getColumnSizein interfaceColumnInformation- Specified by:
getColumnSizein interfaceColumnTypeInformation- Returns:
- The column length
-
getDecimalDigits
public int getDecimalDigits()Description copied from interface:ColumnInformationThe precision, for numeric types- Specified by:
getDecimalDigitsin interfaceColumnInformation- Specified by:
getDecimalDigitsin interfaceColumnTypeInformation- Returns:
- The numeric precision
-
getNullable
Description copied from interface:ColumnInformationIs the column nullable. The database is allowed to report unknown, hence the use of TruthValue- Specified by:
getNullablein interfaceColumnInformation- Specified by:
getNullablein interfaceColumnTypeInformation- Returns:
- nullability.
-
toString
-