org.hibernate.tool.schema.extract.spi.ColumnInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.tool.schema.extract.spi;
import org.hibernate.boot.model.TruthValue;
import org.hibernate.boot.model.naming.Identifier;
/**
* Provides access to information about existing table columns
*
* @author Christoph Sturm
* @author Steve Ebersole
*/
public interface ColumnInformation {
/**
* Access to the containing table.
*
* @return The containing table information
*/
public TableInformation getContainingTableInformation();
/**
* The simple (not qualified) column name.
*
* @return The column simple identifier.
*/
public Identifier getColumnIdentifier();
/**
* Is the column nullable. The database is allowed to report unknown, hence the use of TruthValue
*
* @return nullability.
*/
public TruthValue getNullable();
/**
* The JDBC type-code.
*
* @return JDBC type-code
*/
public int getTypeCode();
/**
* The database specific type name.
*
* @return Type name
*/
public String getTypeName();
// todo : wrap these in org.hibernate.metamodel.spi.relational.Size ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* The column size (length).
*
* @return The column length
*/
public int getColumnSize();
/**
* The precision, for numeric types
*
* @return The numeric precision
*/
public int getDecimalDigits();
}