Package org.hibernate.dialect.temptable
Class TemporaryTableColumn
- java.lang.Object
-
- org.hibernate.dialect.temptable.TemporaryTableColumn
-
- All Implemented Interfaces:
SqlTypedMapping
- Direct Known Subclasses:
TemporaryTableSessionUidColumn
public class TemporaryTableColumn extends Object implements SqlTypedMapping
A column in a IdTable. As these columns mirror the entity id columns, we know a few things about it inherently, such as being non-nullable
-
-
Constructor Summary
Constructors Constructor Description TemporaryTableColumn(TemporaryTable containingTable, String columnName, JdbcMapping jdbcMapping, String sqlTypeName, Size size, boolean nullable)TemporaryTableColumn(TemporaryTable containingTable, String columnName, JdbcMapping jdbcMapping, String sqlTypeName, Size size, boolean nullable, boolean primaryKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetColumnDefinition()StringgetColumnName()TemporaryTablegetContainingTable()StringgetDefaultValue()JdbcMappinggetJdbcMapping()@Nullable LonggetLength()@Nullable IntegergetPrecision()@Nullable IntegergetScale()SizegetSize()StringgetSqlTypeDefinition()@Nullable IntegergetTemporalPrecision()booleanisNullable()booleanisPrimaryKey()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
isLob, toSize
-
-
-
-
Constructor Detail
-
TemporaryTableColumn
public TemporaryTableColumn(TemporaryTable containingTable, String columnName, JdbcMapping jdbcMapping, String sqlTypeName, Size size, boolean nullable)
-
TemporaryTableColumn
public TemporaryTableColumn(TemporaryTable containingTable, String columnName, JdbcMapping jdbcMapping, String sqlTypeName, Size size, boolean nullable, boolean primaryKey)
-
-
Method Detail
-
getContainingTable
public TemporaryTable getContainingTable()
-
getColumnName
public String getColumnName()
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMappingin interfaceSqlTypedMapping
-
getDefaultValue
public String getDefaultValue()
-
getSqlTypeDefinition
public String getSqlTypeDefinition()
-
getSize
public Size getSize()
-
isNullable
public boolean isNullable()
-
isPrimaryKey
public boolean isPrimaryKey()
-
getColumnDefinition
public @Nullable String getColumnDefinition()
- Specified by:
getColumnDefinitionin interfaceSqlTypedMapping
-
getLength
public @Nullable Long getLength()
- Specified by:
getLengthin interfaceSqlTypedMapping
-
getPrecision
public @Nullable Integer getPrecision()
- Specified by:
getPrecisionin interfaceSqlTypedMapping
-
getScale
public @Nullable Integer getScale()
- Specified by:
getScalein interfaceSqlTypedMapping
-
getTemporalPrecision
public @Nullable Integer getTemporalPrecision()
- Specified by:
getTemporalPrecisionin interfaceSqlTypedMapping
-
-