Package org.hibernate.sql.model
Interface TableMapping
-
- All Superinterfaces:
TableDetails
- All Known Implementing Classes:
CollectionTableMapping
,EntityTableMapping
public interface TableMapping extends TableDetails
Describes a table as far as Hibernate understands it from mapping details Includes basic details, in addition to details about the table in relation to a particularMutationTarget
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TableMapping.MutationDetails
Details for the mutation of a table-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.TableDetails
TableDetails.KeyColumn, TableDetails.KeyColumnConsumer, TableDetails.KeyDetails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
containsTableName(String tableName)
TableMapping.MutationDetails
getDeleteDetails()
Details for deleting from this tableTableMapping.MutationDetails
getInsertDetails()
Details for insertion into this tableint
getRelativePosition()
The position of the table relative to others for theMutationTarget
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
isOptional()
Whether the table is mapped as optional-
Methods inherited from interface org.hibernate.metamodel.mapping.TableDetails
getKeyDetails
-
-
-
-
Method Detail
-
getTableName
String getTableName()
The name of the mapped table- Specified by:
getTableName
in interfaceTableDetails
-
containsTableName
default boolean containsTableName(String tableName)
-
getRelativePosition
int getRelativePosition()
The position of the table relative to others for theMutationTarget
-
isOptional
boolean isOptional()
Whether the table is mapped as optional
-
isInverse
boolean isInverse()
Whether the table is mapped as inverse
-
isIdentifierTable
boolean isIdentifierTable()
Whether this table holds the identifier for theMutationTarget
- Specified by:
isIdentifierTable
in interfaceTableDetails
-
getInsertDetails
TableMapping.MutationDetails getInsertDetails()
Details for insertion into this table
-
getUpdateDetails
TableMapping.MutationDetails getUpdateDetails()
Details for updating this table
-
isCascadeDeleteEnabled
boolean isCascadeDeleteEnabled()
Whether deletions are cascaded to this table at the database level.- See Also:
OnDelete
- API Note:
- When
true
,isIdentifierTable()
will generally befalse
-
getDeleteDetails
TableMapping.MutationDetails getDeleteDetails()
Details for deleting from this table
-
-