Package org.hibernate.sql.model
Interface TableMapping
- All Superinterfaces:
TableDetails
- All Known Implementing Classes:
CollectionTableMapping
,EntityTableMapping
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 particular
MutationTarget
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.TableDetails
TableDetails.KeyColumn, TableDetails.KeyColumnConsumer, TableDetails.KeyDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
containsTableName
(String tableName) Details for deleting from this tableDetails for insertion into this tableint
The position of the table relative to others for theMutationTarget
The name of the mapped tableDetails for updating this tableboolean
Whether deletions are cascaded to this table at the database level.boolean
Whether this table holds the identifier for theMutationTarget
boolean
Whether the table is mapped as inverseboolean
Whether the table is mapped as optionalMethods inherited from interface org.hibernate.metamodel.mapping.TableDetails
getKeyDetails
-
Method Details
-
getTableName
String getTableName()The name of the mapped table- Specified by:
getTableName
in interfaceTableDetails
-
containsTableName
-
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:
- API Note:
- When
true
,isIdentifierTable()
will generally befalse
-
getDeleteDetails
TableMapping.MutationDetails getDeleteDetails()Details for deleting from this table
-