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