Class ColumnInformationImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.ColumnInformationImpl
-
- All Implemented Interfaces:
ColumnInformation,ColumnTypeInformation
public class ColumnInformationImpl extends Object implements ColumnInformation
JDBC column metadata
-
-
Field Summary
-
Fields inherited from interface org.hibernate.tool.schema.extract.spi.ColumnTypeInformation
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiergetColumnIdentifier()The simple (not qualified) column name.intgetColumnSize()The column size (length).TableInformationgetContainingTableInformation()Access to the containing table.intgetDecimalDigits()The precision, for numeric typesTruthValuegetNullable()Is the column nullable.intgetTypeCode()The JDBC type-code.StringgetTypeName()The database specific type name.StringtoString()
-
-
-
Constructor Detail
-
ColumnInformationImpl
public ColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable)
-
-
Method Detail
-
getContainingTableInformation
public TableInformation getContainingTableInformation()
Description copied from interface:ColumnInformationAccess to the containing table.- Specified by:
getContainingTableInformationin interfaceColumnInformation- Returns:
- The containing table information
-
getColumnIdentifier
public Identifier 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
public String 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
public TruthValue 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.
-
-