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 boolean
containsTableName(String tableName)
TableMapping.MutationDetails
getDeleteDetails()
Details for deleting from this tableTableMapping.MutationDetails
getDeleteRowDetails()
TableMapping.MutationDetails
getInsertDetails()
Details for insertion into this tableTableDetails.KeyDetails
getKeyDetails()
Details about the primary-key of this tableint
getRelativePosition()
The position of the table relative to others for theMutationTarget
String[]
getSpaces()
String
getTableName()
The name of the mapped tableTableMapping.MutationDetails
getUpdateDetails()
Details for updating this tableboolean
isCascadeDeleteEnabled()
Whether deletions are cascaded to this table at the database level.boolean
isIdentifierTable()
Whether this table holds the identifier for theMutationTarget
boolean
isInverse()
Whether the table is mapped as inverseboolean
isJoinTable()
boolean
isOptional()
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:TableMapping
The name of the mapped table- Specified by:
getTableName
in interfaceTableDetails
- Specified by:
getTableName
in interfaceTableMapping
-
getSpaces
public String[] getSpaces()
-
containsTableName
public boolean containsTableName(String tableName)
- Specified by:
containsTableName
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
-
isJoinTable
public boolean isJoinTable()
-
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
-
getInsertDetails
public TableMapping.MutationDetails getInsertDetails()
Description copied from interface:TableMapping
Details for insertion into this table- Specified by:
getInsertDetails
in interfaceTableMapping
-
getUpdateDetails
public TableMapping.MutationDetails getUpdateDetails()
Description copied from interface:TableMapping
Details for updating this table- Specified by:
getUpdateDetails
in interfaceTableMapping
-
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
-
getDeleteRowDetails
public TableMapping.MutationDetails getDeleteRowDetails()
-
-