Class EntityTableMappingImpl
java.lang.Object
org.hibernate.persister.entity.mutation.EntityTableMappingImpl
- All Implemented Interfaces:
TableDetails, EntityTableMapping, TableMapping
Descriptor for the mapping of a table relative to an entity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic interfacestatic classNested classes/interfaces inherited from interface TableDetails
TableDetails.KeyColumnConsumer, TableDetails.KeyDetailsNested classes/interfaces inherited from interface TableMapping
TableMapping.MutationDetails -
Constructor Summary
ConstructorsConstructorDescriptionEntityTableMappingImpl(String tableName, int relativePosition, EntityTableMappingImpl.KeyMapping keyMapping, boolean isOptional, boolean isInverse, boolean isIdentifierTable, boolean isSecondaryTable, int[] attributeIndexes, Expectation insertExpectation, String insertCustomSql, boolean insertCallable, Expectation updateExpectation, String updateCustomSql, boolean updateCallable, boolean cascadeDeleteEnabled, Expectation deleteExpectation, String deleteCustomSql, boolean deleteCallable, boolean dynamicUpdate, boolean dynamicInsert) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAttributeColumns(int attributeIndex) booleanint[]Details for deleting from this tableDetails for insertion into this tableDetails about the primary-key of this tableThe name of the mapped tableDetails for updating this tablebooleaninthashCode()booleanWhether deletions are cascaded to this table at the database level.booleanbooleanWhether this table holds the identifier for theMutationTargetbooleanbooleanWhether the table is mapped as inversebooleanWhether the table is mapped as optionalbooleanbooleanintThe position of the table relative to others for theMutationTargettoString()Methods inherited from interface TableMapping
containsTableName
-
Constructor Details
-
EntityTableMappingImpl
public EntityTableMappingImpl(String tableName, int relativePosition, EntityTableMappingImpl.KeyMapping keyMapping, boolean isOptional, boolean isInverse, boolean isIdentifierTable, boolean isSecondaryTable, int[] attributeIndexes, Expectation insertExpectation, String insertCustomSql, boolean insertCallable, Expectation updateExpectation, String updateCustomSql, boolean updateCallable, boolean cascadeDeleteEnabled, Expectation deleteExpectation, String deleteCustomSql, boolean deleteCallable, boolean dynamicUpdate, boolean dynamicInsert)
-
-
Method Details
-
getTableName
Description copied from interface:TableMappingThe name of the mapped table- Specified by:
getTableNamein interfaceTableDetails- Specified by:
getTableNamein interfaceTableMapping
-
getKeyDetails
Description copied from interface:TableDetailsDetails about the primary-key of this table- Specified by:
getKeyDetailsin interfaceTableDetails
-
relativePosition
public int relativePosition()Description copied from interface:TableMappingThe position of the table relative to others for theMutationTarget- Specified by:
relativePositionin interfaceTableMapping
-
isOptional
public boolean isOptional()Description copied from interface:TableMappingWhether the table is mapped as optional- Specified by:
isOptionalin interfaceTableMapping
-
isInverse
public boolean isInverse()Description copied from interface:TableMappingWhether the table is mapped as inverse- Specified by:
isInversein interfaceTableMapping
-
isIdentifierTable
public boolean isIdentifierTable()Description copied from interface:TableMappingWhether this table holds the identifier for theMutationTarget- Specified by:
isIdentifierTablein interfaceTableDetails- Specified by:
isIdentifierTablein interfaceTableMapping
-
isSecondaryTable
public boolean isSecondaryTable()- Specified by:
isSecondaryTablein interfaceEntityTableMapping
-
getKeyMapping
- Specified by:
getKeyMappingin interfaceEntityTableMapping
-
hasColumns
public boolean hasColumns()- Specified by:
hasColumnsin interfaceEntityTableMapping
-
containsAttributeColumns
public boolean containsAttributeColumns(int attributeIndex) - Specified by:
containsAttributeColumnsin interfaceEntityTableMapping
-
getAttributeIndexes
public int[] getAttributeIndexes()- Specified by:
getAttributeIndexesin interfaceEntityTableMapping
-
getInsertDetails
Description copied from interface:TableMappingDetails for insertion into this table- Specified by:
getInsertDetailsin interfaceTableMapping
-
getInsertExpectation
- Specified by:
getInsertExpectationin interfaceEntityTableMapping
-
getInsertCustomSql
- Specified by:
getInsertCustomSqlin interfaceEntityTableMapping
-
isInsertCallable
public boolean isInsertCallable()- Specified by:
isInsertCallablein interfaceEntityTableMapping
-
getUpdateDetails
Description copied from interface:TableMappingDetails for updating this table- Specified by:
getUpdateDetailsin interfaceTableMapping
-
getUpdateExpectation
- Specified by:
getUpdateExpectationin interfaceEntityTableMapping
-
getUpdateCustomSql
- Specified by:
getUpdateCustomSqlin interfaceEntityTableMapping
-
isUpdateCallable
public boolean isUpdateCallable()- Specified by:
isUpdateCallablein interfaceEntityTableMapping
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()Description copied from interface:TableMappingWhether deletions are cascaded to this table at the database level.- Specified by:
isCascadeDeleteEnabledin interfaceTableMapping- See Also:
-
getDeleteDetails
Description copied from interface:TableMappingDetails for deleting from this table- Specified by:
getDeleteDetailsin interfaceTableMapping
-
getDeleteExpectation
- Specified by:
getDeleteExpectationin interfaceEntityTableMapping
-
getDeleteCustomSql
- Specified by:
getDeleteCustomSqlin interfaceEntityTableMapping
-
isDeleteCallable
public boolean isDeleteCallable()- Specified by:
isDeleteCallablein interfaceEntityTableMapping
-
equals
-
hashCode
-
toString
-