Interface SecondaryTableSource
-
- All Superinterfaces:
ForeignKeyContributingSource
public interface SecondaryTableSource extends ForeignKeyContributingSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getComment()
CustomSql
getCustomSqlDelete()
Obtain the custom SQL to be used for deletes for this entityCustomSql
getCustomSqlInsert()
Obtain the custom SQL to be used for inserts for this entityCustomSql
getCustomSqlUpdate()
Obtain the custom SQL to be used for updates for this entityFetchStyle
getFetchStyle()
java.lang.String
getLogicalTableNameForContainedColumns()
java.util.List<ColumnSource>
getPrimaryKeyColumnSources()
Retrieves the columns defines as making up this secondary tables primary key.TableSpecificationSource
getTableSource()
Obtain the table being joined to.boolean
isCascadeDeleteEnabled()
Is "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?boolean
isInverse()
boolean
isOptional()
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
createForeignKeyConstraint, getExplicitForeignKeyName
-
-
-
-
Method Detail
-
getTableSource
TableSpecificationSource getTableSource()
Obtain the table being joined to.- Returns:
- The joined table.
-
getPrimaryKeyColumnSources
java.util.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 theForeignKeyContributingSource
aspect of this contract.- Returns:
- The columns defining the primary key for this secondary table
-
getLogicalTableNameForContainedColumns
java.lang.String getLogicalTableNameForContainedColumns()
-
getComment
java.lang.String getComment()
-
getFetchStyle
FetchStyle getFetchStyle()
-
isInverse
boolean isInverse()
-
isOptional
boolean isOptional()
-
isCascadeDeleteEnabled
boolean isCascadeDeleteEnabled()
Description copied from interface:ForeignKeyContributingSource
Is "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:
isCascadeDeleteEnabled
in 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
-
-