Interface EntityMutationTarget
-
- All Superinterfaces:
MutationTarget<EntityTableMapping>
- All Known Subinterfaces:
DeprecatedEntityStuff
,EntityPersister
,Loadable
,Lockable
,OuterJoinLoadable
,PostInsertIdentityPersister
,Queryable
,SQLLoadable
,UniqueKeyLoadable
- All Known Implementing Classes:
AbstractEntityPersister
,JoinedSubclassEntityPersister
,MockEntityPersister
,ProcessorSessionFactory.EntityPersister
,SingleTableEntityPersister
,UnionSubclassEntityPersister
@Incubating public interface EntityMutationTarget extends MutationTarget<EntityTableMapping>
Anything that can be the target of mutations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ModelPart
getIdentifierDescriptor()
The ModelPart describing the identifier/key for this targetEntityTableMapping
getIdentifierTableMapping()
The descriptor for the table containing the identifier for the targetdefault InsertGeneratedIdentifierDelegate
getIdentityInsertDelegate()
Deprecated, for removal: This API element is subject to removal in a future version.usegetInsertDelegate()
insteadGeneratedValuesMutationDelegate
getInsertDelegate()
default GeneratedValuesMutationDelegate
getMutationDelegate(MutationType mutationType)
EntityMappingType
getTargetPart()
The ModelPart describing the mutation targetGeneratedValuesMutationDelegate
getUpdateDelegate()
boolean
hasSkippableTables()
Whether this target defines any potentially skippable tables.-
Methods inherited from interface org.hibernate.sql.model.MutationTarget
forEachMutableTable, forEachMutableTableReverse, getIdentifierTableName, getNavigableRole, getRolePath
-
-
-
-
Method Detail
-
getTargetPart
EntityMappingType getTargetPart()
Description copied from interface:MutationTarget
The ModelPart describing the mutation target- Specified by:
getTargetPart
in interfaceMutationTarget<EntityTableMapping>
-
getIdentifierTableMapping
EntityTableMapping getIdentifierTableMapping()
Description copied from interface:MutationTarget
The descriptor for the table containing the identifier for the target- Specified by:
getIdentifierTableMapping
in interfaceMutationTarget<EntityTableMapping>
-
getIdentifierDescriptor
ModelPart getIdentifierDescriptor()
The ModelPart describing the identifier/key for this target
-
hasSkippableTables
boolean hasSkippableTables()
Whether this target defines any potentially skippable tables.A table is considered potentially skippable if it is defined as inverse or as optional.
- See Also:
Table.inverse()
,Table.optional()
-
getIdentityInsertDelegate
@Deprecated(forRemoval=true, since="6.5") default InsertGeneratedIdentifierDelegate getIdentityInsertDelegate()
Deprecated, for removal: This API element is subject to removal in a future version.usegetInsertDelegate()
insteadThe delegate for executing inserts against the root table for targets defined using post-insert id generation
-
getInsertDelegate
GeneratedValuesMutationDelegate getInsertDelegate()
-
getUpdateDelegate
GeneratedValuesMutationDelegate getUpdateDelegate()
-
getMutationDelegate
default GeneratedValuesMutationDelegate getMutationDelegate(MutationType mutationType)
-
-