Package org.hibernate.engine.spi
Class CascadingActions
java.lang.Object
org.hibernate.engine.spi.CascadingActions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CascadingAction<Void>
static final CascadingAction<DeleteContext>
Deprecated, for removal: This API element is subject to removal in a future version.static final CascadingAction<Void>
static final CascadingAction<LockOptions>
Deprecated, for removal: This API element is subject to removal in a future version.becauseCascadeType.LOCK
is deprecatedstatic final CascadingAction<MergeContext>
static final CascadingAction<PersistContext>
static final CascadingAction<PersistContext>
Execute persist during flush timestatic final CascadingAction<RefreshContext>
static final CascadingAction<DeleteContext>
static final CascadingAction<ReplicationMode>
-
Method Summary
Modifier and TypeMethodDescriptionstatic Iterator<?>
getAllElementsIterator
(EventSource session, CollectionType collectionType, Object collection) Given a collection, get an iterator of all its children, loading them from the database if necessary.static Iterator<?>
getLoadedElementsIterator
(SharedSessionContractImplementor session, CollectionType collectionType, Object collection) Iterate just the elements of the collection that are already there.
-
Field Details
-
REMOVE
- See Also:
-
DELETE
Deprecated, for removal: This API element is subject to removal in a future version.UseREMOVE
Used in legacySession#delete
method, which has been removed -
LOCK
Deprecated, for removal: This API element is subject to removal in a future version.becauseCascadeType.LOCK
is deprecated- See Also:
-
REFRESH
- See Also:
-
EVICT
- See Also:
-
MERGE
- See Also:
-
PERSIST
- See Also:
-
PERSIST_ON_FLUSH
Execute persist during flush time- See Also:
-
CHECK_ON_FLUSH
-
REPLICATE
-
-
Method Details
-
getAllElementsIterator
public static Iterator<?> getAllElementsIterator(EventSource session, CollectionType collectionType, Object collection) Given a collection, get an iterator of all its children, loading them from the database if necessary.- Parameters:
session
- The session within which the cascade is occurring.collectionType
- The mapping type of the collection.collection
- The collection instance.- Returns:
- The children iterator.
-
REMOVE