Search in sources :

Example 1 with TruthValue

use of org.hibernate.boot.model.TruthValue in project hibernate-orm by hibernate.

the class CheckForExistingForeignKeyTest method getColumnInformation.

private ColumnInformation getColumnInformation(String tableName, String columnName) {
    Name schemaName = new Name(new Identifier("-", false), new Identifier("-", false));
    TableInformation containingTableInformation = new TableInformationImpl(null, null, new QualifiedTableName(schemaName, new Identifier(tableName, false)), false, null);
    Identifier columnIdentifier = new Identifier(columnName, false);
    int typeCode = 0;
    String typeName = null;
    int columnSize = 0;
    int decimalDigits = 0;
    TruthValue nullable = null;
    ColumnInformationImpl columnInformation = new ColumnInformationImpl(containingTableInformation, columnIdentifier, typeCode, typeName, columnSize, decimalDigits, nullable);
    return columnInformation;
}
Also used : QualifiedTableName(org.hibernate.boot.model.relational.QualifiedTableName) Identifier(org.hibernate.boot.model.naming.Identifier) TableInformationImpl(org.hibernate.tool.schema.extract.internal.TableInformationImpl) TruthValue(org.hibernate.boot.model.TruthValue) TableInformation(org.hibernate.tool.schema.extract.spi.TableInformation) ColumnInformationImpl(org.hibernate.tool.schema.extract.internal.ColumnInformationImpl) Name(org.hibernate.boot.model.relational.Namespace.Name) QualifiedTableName(org.hibernate.boot.model.relational.QualifiedTableName)

Aggregations

TruthValue (org.hibernate.boot.model.TruthValue)1 Identifier (org.hibernate.boot.model.naming.Identifier)1 Name (org.hibernate.boot.model.relational.Namespace.Name)1 QualifiedTableName (org.hibernate.boot.model.relational.QualifiedTableName)1 ColumnInformationImpl (org.hibernate.tool.schema.extract.internal.ColumnInformationImpl)1 TableInformationImpl (org.hibernate.tool.schema.extract.internal.TableInformationImpl)1 TableInformation (org.hibernate.tool.schema.extract.spi.TableInformation)1