Top Description Fields Constructors Methods
org.hibernate.tool.schema.extract.internal

public Class ColumnInformationImpl

extends Object
implements ColumnInformation
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.extract.spi.ColumnInformation
Imports
org.hibernate.boot.model.TruthValue, org.hibernate.boot.model.naming.Identifier, org.hibernate.tool.schema.extract.spi.ColumnInformation, .TableInformation

JDBC column metadata
Authors
Christoph Sturm, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Identifier
private final int
private final TableInformation
private final int
private final TruthValue
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
ColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable)

Method Summary

Modifier and TypeMethod and Description
public Identifier
public int
public TableInformation
public int
public TruthValue
public int
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnIdentifierback to summary
private final Identifier columnIdentifier
columnSizeback to summary
private final int columnSize
containingTableInformationback to summary
private final TableInformation containingTableInformation
decimalDigitsback to summary
private final int decimalDigits
nullableback to summary
private final TruthValue nullable
typeCodeback to summary
private final int typeCode
typeNameback to summary
private final String typeName

Constructor Detail

ColumnInformationImplback to summary
public ColumnInformationImpl(TableInformation containingTableInformation, Identifier columnIdentifier, int typeCode, String typeName, int columnSize, int decimalDigits, TruthValue nullable)

Method Detail

getColumnIdentifierback to summary
public Identifier getColumnIdentifier()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getColumnIdentifier.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getColumnIdentifier.

The simple (not qualified) column name.

Returns:Identifier

The column simple identifier.

Annotations
@Override
getColumnSizeback to summary
public int getColumnSize()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getColumnSize.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getColumnSize.

The column size (length).

Returns:int

The column length

Annotations
@Override
getContainingTableInformationback to summary
public TableInformation getContainingTableInformation()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getContainingTableInformation.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getContainingTableInformation.

Access to the containing table.

Returns:TableInformation

The containing table information

Annotations
@Override
getDecimalDigitsback to summary
public int getDecimalDigits()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getDecimalDigits.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getDecimalDigits.

The precision, for numeric types

Returns:int

The numeric precision

Annotations
@Override
getNullableback to summary
public TruthValue getNullable()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getNullable.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getNullable.

Is the column nullable. The database is allowed to report unknown, hence the use of TruthValue

Returns:TruthValue

nullability.

Annotations
@Override
getTypeCodeback to summary
public int getTypeCode()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getTypeCode.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getTypeCode.

The JDBC type-code.

Returns:int

JDBC type-code

Annotations
@Override
getTypeNameback to summary
public String getTypeName()

Implements org.hibernate.tool.schema.extract.spi.ColumnInformation.getTypeName.

Doc from org.hibernate.tool.schema.extract.spi.ColumnInformation.getTypeName.

The database specific type name.

Returns:String

Type name

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.