Package org.hibernate.engine.spi
Class CascadingActions
java.lang.Object
org.hibernate.engine.spi.CascadingActions
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CascadingAction<Void>
static final CascadingAction<DeleteContext>
Deprecated.static final CascadingAction<Void>
static final CascadingAction<LockOptions>
static 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>
static final CascadingAction<PersistContext>
-
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.UseREMOVE
- See Also:
-
LOCK
- See Also:
-
REFRESH
- See Also:
-
EVICT
- See Also:
-
SAVE_UPDATE
- 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