Class EntityTableMapping.KeyColumn
- java.lang.Object
-
- org.hibernate.persister.entity.mutation.EntityTableMapping.KeyColumn
-
- All Implemented Interfaces:
SelectableMapping,SqlTypedMapping,TableDetails.KeyColumn
- Enclosing class:
- EntityTableMapping
public static class EntityTableMapping.KeyColumn extends Object implements SelectableMapping, TableDetails.KeyColumn
-
-
Constructor Summary
Constructors Constructor Description KeyColumn(String tableName, String columnName, String writeExpression, boolean formula, JdbcMapping jdbcMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnDefinition()StringgetColumnName()The name of the columnStringgetContainingTableExpression()The name of the table to which this selectable is mappedStringgetCustomReadExpression()The selection's read expression accounting for formula treatment as well asColumnTransformer.read()StringgetCustomWriteExpression()The selection's write expression accountingColumnTransformer.write()JdbcMappinggetJdbcMapping()Describes the mapping between object and relational for this columnLonggetLength()IntegergetPrecision()IntegergetScale()StringgetSelectionExpression()The selection's expression.StringgetWriteExpression()booleanisFormula()Is the mapping a formula instead of a physical column?booleanisInsertable()booleanisNullable()Is the mapping considered nullable?booleanisPartitioned()booleanisUpdateable()-
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.SelectableMapping
getSelectableName, getSelectablePath
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
isLob
-
-
-
-
Constructor Detail
-
KeyColumn
public KeyColumn(String tableName, String columnName, String writeExpression, boolean formula, JdbcMapping jdbcMapping)
-
-
Method Detail
-
getColumnName
public String getColumnName()
Description copied from interface:TableDetails.KeyColumnThe name of the column- Specified by:
getColumnNamein interfaceTableDetails.KeyColumn
-
getContainingTableExpression
public String getContainingTableExpression()
Description copied from interface:SelectableMappingThe name of the table to which this selectable is mapped- Specified by:
getContainingTableExpressionin interfaceSelectableMapping
-
getWriteExpression
public String getWriteExpression()
- Specified by:
getWriteExpressionin interfaceSelectableMapping
-
getSelectionExpression
public String getSelectionExpression()
Description copied from interface:SelectableMappingThe selection's expression. This is the column name or formula- Specified by:
getSelectionExpressionin interfaceSelectableMapping
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
Description copied from interface:TableDetails.KeyColumnDescribes the mapping between object and relational for this column- Specified by:
getJdbcMappingin interfaceSqlTypedMapping- Specified by:
getJdbcMappingin interfaceTableDetails.KeyColumn
-
isFormula
public boolean isFormula()
Description copied from interface:SelectableMappingIs the mapping a formula instead of a physical column?- Specified by:
isFormulain interfaceSelectableMapping
-
isNullable
public boolean isNullable()
Description copied from interface:SelectableMappingIs the mapping considered nullable?- Specified by:
isNullablein interfaceSelectableMapping
-
isInsertable
public boolean isInsertable()
- Specified by:
isInsertablein interfaceSelectableMapping
-
isUpdateable
public boolean isUpdateable()
- Specified by:
isUpdateablein interfaceSelectableMapping
-
isPartitioned
public boolean isPartitioned()
- Specified by:
isPartitionedin interfaceSelectableMapping
-
getColumnDefinition
public String getColumnDefinition()
- Specified by:
getColumnDefinitionin interfaceSqlTypedMapping
-
getLength
public Long getLength()
- Specified by:
getLengthin interfaceSqlTypedMapping
-
getPrecision
public Integer getPrecision()
- Specified by:
getPrecisionin interfaceSqlTypedMapping
-
getScale
public Integer getScale()
- Specified by:
getScalein interfaceSqlTypedMapping
-
getCustomReadExpression
public String getCustomReadExpression()
Description copied from interface:SelectableMappingThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()- Specified by:
getCustomReadExpressionin interfaceSelectableMapping
-
getCustomWriteExpression
public String getCustomWriteExpression()
Description copied from interface:SelectableMappingThe selection's write expression accountingColumnTransformer.write()- Specified by:
getCustomWriteExpressionin interfaceSelectableMapping
-
-