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 String
getColumnDefinition()
String
getColumnName()
The name of the columnString
getContainingTableExpression()
The name of the table to which this selectable is mappedString
getCustomReadExpression()
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
String
getCustomWriteExpression()
The selection's write expression accountingColumnTransformer.write()
JdbcMapping
getJdbcMapping()
Describes the mapping between object and relational for this columnLong
getLength()
Integer
getPrecision()
Integer
getScale()
String
getSelectionExpression()
The selection's expression.String
getWriteExpression()
boolean
isFormula()
Is the mapping a formula instead of a physical column?boolean
isInsertable()
boolean
isNullable()
Is the mapping considered nullable?boolean
isPartitioned()
boolean
isUpdateable()
-
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.KeyColumn
The name of the column- Specified by:
getColumnName
in interfaceTableDetails.KeyColumn
-
getContainingTableExpression
public String getContainingTableExpression()
Description copied from interface:SelectableMapping
The name of the table to which this selectable is mapped- Specified by:
getContainingTableExpression
in interfaceSelectableMapping
-
getWriteExpression
public String getWriteExpression()
- Specified by:
getWriteExpression
in interfaceSelectableMapping
-
getSelectionExpression
public String getSelectionExpression()
Description copied from interface:SelectableMapping
The selection's expression. This is the column name or formula- Specified by:
getSelectionExpression
in interfaceSelectableMapping
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
Description copied from interface:TableDetails.KeyColumn
Describes the mapping between object and relational for this column- Specified by:
getJdbcMapping
in interfaceSqlTypedMapping
- Specified by:
getJdbcMapping
in interfaceTableDetails.KeyColumn
-
isFormula
public boolean isFormula()
Description copied from interface:SelectableMapping
Is the mapping a formula instead of a physical column?- Specified by:
isFormula
in interfaceSelectableMapping
-
isNullable
public boolean isNullable()
Description copied from interface:SelectableMapping
Is the mapping considered nullable?- Specified by:
isNullable
in interfaceSelectableMapping
-
isInsertable
public boolean isInsertable()
- Specified by:
isInsertable
in interfaceSelectableMapping
-
isUpdateable
public boolean isUpdateable()
- Specified by:
isUpdateable
in interfaceSelectableMapping
-
isPartitioned
public boolean isPartitioned()
- Specified by:
isPartitioned
in interfaceSelectableMapping
-
getColumnDefinition
public String getColumnDefinition()
- Specified by:
getColumnDefinition
in interfaceSqlTypedMapping
-
getLength
public Long getLength()
- Specified by:
getLength
in interfaceSqlTypedMapping
-
getPrecision
public Integer getPrecision()
- Specified by:
getPrecision
in interfaceSqlTypedMapping
-
getScale
public Integer getScale()
- Specified by:
getScale
in interfaceSqlTypedMapping
-
getCustomReadExpression
public String getCustomReadExpression()
Description copied from interface:SelectableMapping
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
- Specified by:
getCustomReadExpression
in interfaceSelectableMapping
-
getCustomWriteExpression
public String getCustomWriteExpression()
Description copied from interface:SelectableMapping
The selection's write expression accountingColumnTransformer.write()
- Specified by:
getCustomWriteExpression
in interfaceSelectableMapping
-
-