Class EntityTableMapping
- java.lang.Object
-
- org.hibernate.persister.entity.mutation.EntityTableMapping
-
- All Implemented Interfaces:
TableDetails
,TableMapping
public class EntityTableMapping extends Object implements TableMapping
Descriptor for the mapping of a table relative to an entity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityTableMapping.KeyColumn
static class
EntityTableMapping.KeyMapping
static interface
EntityTableMapping.KeyValueConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.TableDetails
TableDetails.KeyColumnConsumer, TableDetails.KeyDetails
-
Nested classes/interfaces inherited from interface org.hibernate.sql.model.TableMapping
TableMapping.MutationDetails
-
-
Constructor Summary
Constructors Constructor Description EntityTableMapping(String tableName, int relativePosition, EntityTableMapping.KeyMapping keyMapping, boolean isOptional, boolean isInverse, boolean isIdentifierTable, int[] attributeIndexes, Expectation insertExpectation, String insertCustomSql, boolean insertCallable, Expectation updateExpectation, String updateCustomSql, boolean updateCallable, boolean cascadeDeleteEnabled, Expectation deleteExpectation, String deleteCustomSql, boolean deleteCallable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAttributeColumns(int attributeIndex)
boolean
equals(Object o)
int[]
getAttributeIndexes()
String
getDeleteCustomSql()
TableMapping.MutationDetails
getDeleteDetails()
Details for deleting from this tableExpectation
getDeleteExpectation()
String
getInsertCustomSql()
TableMapping.MutationDetails
getInsertDetails()
Details for insertion into this tableExpectation
getInsertExpectation()
TableDetails.KeyDetails
getKeyDetails()
Details about the primary-key of this tableEntityTableMapping.KeyMapping
getKeyMapping()
int
getRelativePosition()
The position of the table relative to others for theMutationTarget
String
getTableName()
The name of the mapped tableString
getUpdateCustomSql()
TableMapping.MutationDetails
getUpdateDetails()
Details for updating this tableExpectation
getUpdateExpectation()
boolean
hasColumns()
int
hashCode()
boolean
isCascadeDeleteEnabled()
Whether deletions are cascaded to this table at the database level.boolean
isDeleteCallable()
boolean
isIdentifierTable()
Whether this table holds the identifier for theMutationTarget
boolean
isInsertCallable()
boolean
isInverse()
Whether the table is mapped as inverseboolean
isOptional()
Whether the table is mapped as optionalboolean
isUpdateCallable()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.model.TableMapping
containsTableName
-
-
-
-
Constructor Detail
-
EntityTableMapping
public EntityTableMapping(String tableName, int relativePosition, EntityTableMapping.KeyMapping keyMapping, boolean isOptional, boolean isInverse, boolean isIdentifierTable, int[] attributeIndexes, Expectation insertExpectation, String insertCustomSql, boolean insertCallable, Expectation updateExpectation, String updateCustomSql, boolean updateCallable, boolean cascadeDeleteEnabled, Expectation deleteExpectation, String deleteCustomSql, boolean deleteCallable)
-
-
Method Detail
-
getTableName
public String getTableName()
Description copied from interface:TableMapping
The name of the mapped table- Specified by:
getTableName
in interfaceTableDetails
- Specified by:
getTableName
in interfaceTableMapping
-
getKeyDetails
public TableDetails.KeyDetails getKeyDetails()
Description copied from interface:TableDetails
Details about the primary-key of this table- Specified by:
getKeyDetails
in interfaceTableDetails
-
getRelativePosition
public int getRelativePosition()
Description copied from interface:TableMapping
The position of the table relative to others for theMutationTarget
- Specified by:
getRelativePosition
in interfaceTableMapping
-
isOptional
public boolean isOptional()
Description copied from interface:TableMapping
Whether the table is mapped as optional- Specified by:
isOptional
in interfaceTableMapping
-
isInverse
public boolean isInverse()
Description copied from interface:TableMapping
Whether the table is mapped as inverse- Specified by:
isInverse
in interfaceTableMapping
-
isIdentifierTable
public boolean isIdentifierTable()
Description copied from interface:TableMapping
Whether this table holds the identifier for theMutationTarget
- Specified by:
isIdentifierTable
in interfaceTableDetails
- Specified by:
isIdentifierTable
in interfaceTableMapping
-
getKeyMapping
public EntityTableMapping.KeyMapping getKeyMapping()
-
hasColumns
public boolean hasColumns()
-
containsAttributeColumns
public boolean containsAttributeColumns(int attributeIndex)
-
getAttributeIndexes
public int[] getAttributeIndexes()
-
getInsertDetails
public TableMapping.MutationDetails getInsertDetails()
Description copied from interface:TableMapping
Details for insertion into this table- Specified by:
getInsertDetails
in interfaceTableMapping
-
getInsertExpectation
public Expectation getInsertExpectation()
-
getInsertCustomSql
public String getInsertCustomSql()
-
isInsertCallable
public boolean isInsertCallable()
-
getUpdateDetails
public TableMapping.MutationDetails getUpdateDetails()
Description copied from interface:TableMapping
Details for updating this table- Specified by:
getUpdateDetails
in interfaceTableMapping
-
getUpdateExpectation
public Expectation getUpdateExpectation()
-
getUpdateCustomSql
public String getUpdateCustomSql()
-
isUpdateCallable
public boolean isUpdateCallable()
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
Description copied from interface:TableMapping
Whether deletions are cascaded to this table at the database level.- Specified by:
isCascadeDeleteEnabled
in interfaceTableMapping
- See Also:
OnDelete
-
getDeleteDetails
public TableMapping.MutationDetails getDeleteDetails()
Description copied from interface:TableMapping
Details for deleting from this table- Specified by:
getDeleteDetails
in interfaceTableMapping
-
getDeleteExpectation
public Expectation getDeleteExpectation()
-
getDeleteCustomSql
public String getDeleteCustomSql()
-
isDeleteCallable
public boolean isDeleteCallable()
-
-