org.hibernate.action
Class CollectionAction

java.lang.Object
  extended by org.hibernate.action.CollectionAction
All Implemented Interfaces:
Serializable, Comparable, Executable
Direct Known Subclasses:
CollectionRecreateAction, CollectionRemoveAction, CollectionUpdateAction

public abstract class CollectionAction
extends Object
implements Executable, Serializable, Comparable

Any action relating to insert/update/delete of a collection

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
CollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SessionImplementor session)
           
 
Method Summary
 void beforeExecutions()
          Called before executing any actions.
 int compareTo(Object other)
           
protected  void evict()
           
 AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
          Get the after-transaction-completion process, if any, for this action.
 BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
          Get the before-transaction-completion process, if any, for this action.
protected  PersistentCollection getCollection()
           
protected  Serializable getKey()
           
protected  CollectionPersister getPersister()
           
 Serializable[] getPropertySpaces()
          What spaces (tables) are affected by this action?
protected  SessionImplementor getSession()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.hibernate.action.Executable
execute
 

Constructor Detail

CollectionAction

public CollectionAction(CollectionPersister persister,
                        PersistentCollection collection,
                        Serializable key,
                        SessionImplementor session)
                 throws CacheException
Throws:
CacheException
Method Detail

getCollection

protected PersistentCollection getCollection()

beforeExecutions

public final void beforeExecutions()
                            throws CacheException
Description copied from interface: Executable
Called before executing any actions. Gives actions a chance to perform any preparation.

Specified by:
beforeExecutions in interface Executable
Throws:
CacheException

getBeforeTransactionCompletionProcess

public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Description copied from interface: Executable
Get the before-transaction-completion process, if any, for this action.

Specified by:
getBeforeTransactionCompletionProcess in interface Executable
Returns:
The before-transaction-completion process, or null if we have no before-transaction-completion process

getAfterTransactionCompletionProcess

public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Description copied from interface: Executable
Get the after-transaction-completion process, if any, for this action.

Specified by:
getAfterTransactionCompletionProcess in interface Executable
Returns:
The after-transaction-completion process, or null if we have no after-transaction-completion process

getPropertySpaces

public Serializable[] getPropertySpaces()
Description copied from interface: Executable
What spaces (tables) are affected by this action?

Specified by:
getPropertySpaces in interface Executable
Returns:
The spaces affected by this action.

getPersister

protected final CollectionPersister getPersister()

getKey

protected final Serializable getKey()

getSession

protected final SessionImplementor getSession()

evict

protected final void evict()
                    throws CacheException
Throws:
CacheException

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.