public class CascadingActions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CascadingActions.BaseCascadingAction |
Modifier and Type | Field and Description |
---|---|
static CascadingAction |
DELETE |
static CascadingAction |
EVICT |
static CascadingAction |
LOCK |
static CascadingAction |
MERGE |
static CascadingAction |
PERSIST |
static CascadingAction |
PERSIST_ON_FLUSH
Execute persist during flush time
|
static CascadingAction |
REFRESH |
static CascadingAction |
REPLICATE |
static CascadingAction |
SAVE_UPDATE |
Modifier and Type | Method and Description |
---|---|
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.
|
static Iterator |
getLoadedElementsIterator(SharedSessionContractImplementor session,
CollectionType collectionType,
Object collection)
Iterate just the elements of the collection that are already there.
|
public static final CascadingAction DELETE
Session.delete(Object)
public static final CascadingAction LOCK
public static final CascadingAction REFRESH
Session.refresh(Object)
public static final CascadingAction EVICT
Session.evict(Object)
public static final CascadingAction SAVE_UPDATE
Session.saveOrUpdate(Object)
public static final CascadingAction MERGE
Session.merge(Object)
public static final CascadingAction PERSIST
Session.persist(Object)
public static final CascadingAction PERSIST_ON_FLUSH
Session.persist(Object)
public static final CascadingAction REPLICATE
public static Iterator getAllElementsIterator(EventSource session, CollectionType collectionType, Object collection)
session
- The session within which the cascade is occuring.collectionType
- The mapping type of the collection.collection
- The collection instance.public static Iterator getLoadedElementsIterator(SharedSessionContractImplementor session, CollectionType collectionType, Object collection)
Copyright © 2019 JBoss by Red Hat. All rights reserved.