org.hibernate.action

Class CollectionAction

Implemented Interfaces:
Comparable, Executable, Serializable
Known Direct Subclasses:
CollectionRecreateAction, CollectionRemoveAction, CollectionUpdateAction

public abstract class CollectionAction
extends java.lang.Object
implements Executable, Serializable, Comparable

Any action relating to insert/update/delete of a collection
Author:
Gavin King

Constructor Summary

CollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SessionImplementor session)

Method Summary

void
afterTransactionCompletion(boolean success)
void
beforeExecutions()
int
compareTo(Object other)
protected void
evict()
protected PersistentCollection
getCollection()
protected Serializable
getKey()
protected CollectionPersister
getPersister()
Serializable[]
getPropertySpaces()
protected SessionImplementor
getSession()
boolean
hasAfterTransactionCompletion()
String
toString()

Constructor Details

CollectionAction

public CollectionAction(CollectionPersister persister,
                        PersistentCollection collection,
                        Serializable key,
                        SessionImplementor session)
            throws CacheException

Method Details

afterTransactionCompletion

public void afterTransactionCompletion(boolean success)
            throws CacheException
Specified by:
afterTransactionCompletion in interface Executable

beforeExecutions

public final void beforeExecutions()
            throws CacheException
Specified by:
beforeExecutions in interface Executable

compareTo

public int compareTo(Object other)

evict

protected final void evict()
            throws CacheException

getCollection

protected PersistentCollection getCollection()

getKey

protected final Serializable getKey()

getPersister

protected final CollectionPersister getPersister()

getPropertySpaces

public Serializable[] getPropertySpaces()
Specified by:
getPropertySpaces in interface Executable

getSession

protected final SessionImplementor getSession()

hasAfterTransactionCompletion

public boolean hasAfterTransactionCompletion()
Specified by:
hasAfterTransactionCompletion in interface Executable

toString

public String toString()