Package org.hibernate.engine.spi
Class CascadingActions
- java.lang.Object
- org.hibernate.engine.spi.CascadingActions
public classCascadingActionsextendsObject
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCascadingActions.BaseCascadingAction<T>
Field Summary
Fields Modifier and Type Field Description staticCascadingAction<Void>CHECK_ON_FLUSHstaticCascadingAction<DeleteContext>DELETEDeprecated.UseREMOVEstaticCascadingAction<Void>EVICTstaticCascadingAction<LockOptions>LOCKstaticCascadingAction<MergeContext>MERGEstaticCascadingAction<PersistContext>PERSISTstaticCascadingAction<PersistContext>PERSIST_ON_FLUSHExecute persist during flush timestaticCascadingAction<RefreshContext>REFRESHstaticCascadingAction<DeleteContext>REMOVEstaticCascadingAction<ReplicationMode>REPLICATEstaticCascadingAction<PersistContext>SAVE_UPDATE
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description staticIterator<?>getAllElementsIterator(EventSource session,CollectionType collectionType,Object collection)Given a collection, get an iterator of all its children, loading them from the database if necessary.staticIterator<?>getLoadedElementsIterator(SharedSessionContractImplementor session,CollectionType collectionType,Object collection)Iterate just the elements of the collection that are already there.
Field Detail
REMOVE
public static final CascadingAction<DeleteContext> REMOVE
- See Also:
Session.remove(Object)
DELETE
@Deprecated(since="6.6")public static final CascadingAction<DeleteContext> DELETE
Deprecated.UseREMOVE- See Also:
Session.delete(Object)
LOCK
public static final CascadingAction<LockOptions> LOCK
- See Also:
Session.lock(Object, LockMode)
REFRESH
public static final CascadingAction<RefreshContext> REFRESH
- See Also:
Session.refresh(Object)
EVICT
public static final CascadingAction<Void> EVICT
- See Also:
Session.evict(Object)
SAVE_UPDATE
public static final CascadingAction<PersistContext> SAVE_UPDATE
- See Also:
Session.saveOrUpdate(Object)
MERGE
public static final CascadingAction<MergeContext> MERGE
- See Also:
Session.merge(Object)
PERSIST
public static final CascadingAction<PersistContext> PERSIST
- See Also:
Session.persist(Object)
PERSIST_ON_FLUSH
public static final CascadingAction<PersistContext> PERSIST_ON_FLUSH
Execute persist during flush time- See Also:
Session.persist(Object)
CHECK_ON_FLUSH
@Internalpublic static final CascadingAction<Void> CHECK_ON_FLUSH
REPLICATE
public static final CascadingAction<ReplicationMode> REPLICATE
Method Detail
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.
getLoadedElementsIterator
public static Iterator<?> getLoadedElementsIterator(SharedSessionContractImplementor session,CollectionType collectionType,Object collection)
Iterate just the elements of the collection that are already there. Don't load any new elements from the database.