Class ColumnInformationImpl
java.lang.Object
org.hibernate.tool.schema.extract.internal.ColumnInformationImpl
- All Implemented Interfaces:
ColumnInformation,ColumnTypeInformation
JDBC column metadata
-
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, Boolean 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, Boolean 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:ColumnTypeInformationThe JDBC type-code.- Specified by:
getTypeCodein interfaceColumnTypeInformation- Returns:
- JDBC type-code
-
getTypeName
Description copied from interface:ColumnTypeInformationThe database specific type name.- Specified by:
getTypeNamein interfaceColumnTypeInformation- Returns:
- Type name
-
getColumnSize
public int getColumnSize()Description copied from interface:ColumnTypeInformationThe column size (length).- Specified by:
getColumnSizein interfaceColumnTypeInformation- Returns:
- The column length
-
getDecimalDigits
public int getDecimalDigits()Description copied from interface:ColumnTypeInformationThe precision, for numeric types- Specified by:
getDecimalDigitsin interfaceColumnTypeInformation- Returns:
- The numeric precision
-
getNullable
Description copied from interface:ColumnTypeInformationIs the column nullable?The database is allowed to report unknown, hence the use of
Boolean.- Specified by:
getNullablein interfaceColumnTypeInformation- Returns:
- nullability, if known
-
toString
-