Interface SecondaryTableSource
- All Superinterfaces:
ForeignKeyContributingSource
-
Method Summary
Modifier and TypeMethodDescriptionObtain the custom SQL to be used for deletes for this entityObtain the custom SQL to be used for inserts for this entityObtain the custom SQL to be used for updates for this entityRetrieves the columns defines as making up this secondary tables primary key.Obtain the table being joined to.booleanIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?booleanbooleanMethods inherited from interface ForeignKeyContributingSource
createForeignKeyConstraint, getExplicitForeignKeyName
-
Method Details
-
getTableSource
TableSpecificationSource getTableSource()Obtain the table being joined to.- Returns:
- The joined table.
-
getPrimaryKeyColumnSources
List<ColumnSource> getPrimaryKeyColumnSources()Retrieves the columns defines as making up this secondary tables primary key. Each entry should have a corresponding entry in the foreign-key columns described by theForeignKeyContributingSourceaspect of this contract.- Returns:
- The columns defining the primary key for this secondary table
-
getLogicalTableNameForContainedColumns
String getLogicalTableNameForContainedColumns() -
getComment
String getComment() -
getFetchStyle
FetchStyle getFetchStyle() -
isInverse
boolean isInverse() -
isOptional
boolean isOptional() -
isCascadeDeleteEnabled
boolean isCascadeDeleteEnabled()Description copied from interface:ForeignKeyContributingSourceIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- Specified by:
isCascadeDeleteEnabledin interfaceForeignKeyContributingSource- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
getCustomSqlInsert
CustomSql getCustomSqlInsert()Obtain the custom SQL to be used for inserts for this entity- Returns:
- The custom insert SQL
-
getCustomSqlUpdate
CustomSql getCustomSqlUpdate()Obtain the custom SQL to be used for updates for this entity- Returns:
- The custom update SQL
-
getCustomSqlDelete
CustomSql getCustomSqlDelete()Obtain the custom SQL to be used for deletes for this entity- Returns:
- The custom delete SQL
-