Class CollectionTableMapping
- java.lang.Object
-
- org.hibernate.persister.collection.mutation.CollectionTableMapping
-
- All Implemented Interfaces:
TableDetails,TableMapping
public class CollectionTableMapping extends Object implements TableMapping
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.TableDetails
TableDetails.KeyColumn, TableDetails.KeyColumnConsumer, TableDetails.KeyDetails
-
Nested classes/interfaces inherited from interface org.hibernate.sql.model.TableMapping
TableMapping.MutationDetails
-
-
Constructor Summary
Constructors Constructor Description CollectionTableMapping(String tableName, String[] spaces, boolean isJoinTable, boolean isInverse, TableMapping.MutationDetails insertDetails, TableMapping.MutationDetails updateDetails, boolean cascadeDeleteEnabled, TableMapping.MutationDetails deleteAllDetails, TableMapping.MutationDetails deleteRowDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsTableName(String tableName)TableMapping.MutationDetailsgetDeleteDetails()Details for deleting from this tableTableMapping.MutationDetailsgetDeleteRowDetails()TableMapping.MutationDetailsgetInsertDetails()Details for insertion into this tableTableDetails.KeyDetailsgetKeyDetails()Details about the primary-key of this tableintgetRelativePosition()The position of the table relative to others for theMutationTargetString[]getSpaces()StringgetTableName()The name of the mapped tableTableMapping.MutationDetailsgetUpdateDetails()Details for updating this tablebooleanisCascadeDeleteEnabled()Whether deletions are cascaded to this table at the database level.booleanisIdentifierTable()Whether this table holds the identifier for theMutationTargetbooleanisInverse()Whether the table is mapped as inversebooleanisJoinTable()booleanisOptional()Whether the table is mapped as optional
-
-
-
Constructor Detail
-
CollectionTableMapping
public CollectionTableMapping(String tableName, String[] spaces, boolean isJoinTable, boolean isInverse, TableMapping.MutationDetails insertDetails, TableMapping.MutationDetails updateDetails, boolean cascadeDeleteEnabled, TableMapping.MutationDetails deleteAllDetails, TableMapping.MutationDetails deleteRowDetails)
-
-
Method Detail
-
getTableName
public String getTableName()
Description copied from interface:TableMappingThe name of the mapped table- Specified by:
getTableNamein interfaceTableDetails- Specified by:
getTableNamein interfaceTableMapping
-
getSpaces
public String[] getSpaces()
-
containsTableName
public boolean containsTableName(String tableName)
- Specified by:
containsTableNamein interfaceTableMapping
-
getKeyDetails
public TableDetails.KeyDetails getKeyDetails()
Description copied from interface:TableDetailsDetails about the primary-key of this table- Specified by:
getKeyDetailsin interfaceTableDetails
-
isJoinTable
public boolean isJoinTable()
-
getRelativePosition
public int getRelativePosition()
Description copied from interface:TableMappingThe position of the table relative to others for theMutationTarget- Specified by:
getRelativePositionin 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
-
getInsertDetails
public TableMapping.MutationDetails getInsertDetails()
Description copied from interface:TableMappingDetails for insertion into this table- Specified by:
getInsertDetailsin interfaceTableMapping
-
getUpdateDetails
public TableMapping.MutationDetails getUpdateDetails()
Description copied from interface:TableMappingDetails for updating this table- Specified by:
getUpdateDetailsin interfaceTableMapping
-
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:
OnDelete
-
getDeleteDetails
public TableMapping.MutationDetails getDeleteDetails()
Description copied from interface:TableMappingDetails for deleting from this table- Specified by:
getDeleteDetailsin interfaceTableMapping
-
getDeleteRowDetails
public TableMapping.MutationDetails getDeleteRowDetails()
-
-