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 booleancontainsTableName(String tableName) Details for deleting from this tableDetails for insertion into this tableintThe position of the table relative to others for theMutationTargetThe name of the mapped tableDetails for updating this tablebooleanWhether deletions are cascaded to this table at the database level.booleanWhether this table holds the identifier for theMutationTargetbooleanWhether the table is mapped as inversebooleanWhether 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:
getTableNamein 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:
isIdentifierTablein 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
-