Package org.hibernate.engine.spi
Class CascadingActions
- java.lang.Object
-
- org.hibernate.engine.spi.CascadingActions
-
public class CascadingActions extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCascadingActions.BaseCascadingAction
-
Field Summary
Fields Modifier and Type Field Description static CascadingActionDELETEstatic CascadingActionEVICTstatic CascadingActionLOCKstatic CascadingActionMERGEstatic CascadingActionPERSISTstatic CascadingActionPERSIST_ON_FLUSHExecute persist during flush timestatic CascadingActionREFRESHstatic CascadingActionREPLICATEstatic CascadingActionSAVE_UPDATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IteratorgetAllElementsIterator(EventSource session, CollectionType collectionType, Object collection)Given a collection, get an iterator of all its children, loading them from the database if necessary.static IteratorgetLoadedElementsIterator(SharedSessionContractImplementor session, CollectionType collectionType, Object collection)Iterate just the elements of the collection that are already there.
-
-
-
Field Detail
-
DELETE
public static final CascadingAction DELETE
- See Also:
Session.delete(Object)
-
LOCK
public static final CascadingAction LOCK
-
REFRESH
public static final CascadingAction REFRESH
- See Also:
Session.refresh(Object)
-
EVICT
public static final CascadingAction EVICT
- See Also:
Session.evict(Object)
-
SAVE_UPDATE
public static final CascadingAction SAVE_UPDATE
- See Also:
Session.saveOrUpdate(Object)
-
MERGE
public static final CascadingAction MERGE
- See Also:
Session.merge(Object)
-
PERSIST
public static final CascadingAction PERSIST
- See Also:
Session.persist(Object)
-
PERSIST_ON_FLUSH
public static final CascadingAction PERSIST_ON_FLUSH
Execute persist during flush time- See Also:
Session.persist(Object)
-
REPLICATE
public static final CascadingAction 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 occuring.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.
-
-