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.int
The column size (length).Access to the containing table.int
The precision, for numeric typesIs the column nullable?int
The 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:ColumnInformation
Access to the containing table.- Specified by:
getContainingTableInformation
in interfaceColumnInformation
- Returns:
- The containing table information
-
getColumnIdentifier
Description copied from interface:ColumnInformation
The simple (not qualified) column name.- Specified by:
getColumnIdentifier
in interfaceColumnInformation
- Returns:
- The column simple identifier.
-
getTypeCode
public int getTypeCode()Description copied from interface:ColumnTypeInformation
The JDBC type-code.- Specified by:
getTypeCode
in interfaceColumnTypeInformation
- Returns:
- JDBC type-code
-
getTypeName
Description copied from interface:ColumnTypeInformation
The database specific type name.- Specified by:
getTypeName
in interfaceColumnTypeInformation
- Returns:
- Type name
-
getColumnSize
public int getColumnSize()Description copied from interface:ColumnTypeInformation
The column size (length).- Specified by:
getColumnSize
in interfaceColumnTypeInformation
- Returns:
- The column length
-
getDecimalDigits
public int getDecimalDigits()Description copied from interface:ColumnTypeInformation
The precision, for numeric types- Specified by:
getDecimalDigits
in interfaceColumnTypeInformation
- Returns:
- The numeric precision
-
getNullable
Description copied from interface:ColumnTypeInformation
Is the column nullable?The database is allowed to report unknown, hence the use of
Boolean
.- Specified by:
getNullable
in interfaceColumnTypeInformation
- Returns:
- nullability, if known
-
toString
-