atg.svc.repository.service
Class CollectionRunner

java.lang.Object
  extended by atg.svc.repository.service.CollectionRunner
All Implemented Interfaces:
TransactionRunner
Direct Known Subclasses:
RepositoryService.SaveCollectionRunner

public abstract class CollectionRunner
extends java.lang.Object
implements TransactionRunner

Callback interface used for run a method within a transaction that operates on a collection of objects.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
CollectionRunner(java.util.Collection pObjectsToSave)
          Creates a save runner with a collection of objects to save.
 
Method Summary
 void runTransaction()
          Runs a series of transactions inside a single transaction.
abstract  void runTransaction(java.lang.Object pObject)
          Runs a transaction with the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

CollectionRunner

public CollectionRunner(java.util.Collection pObjectsToSave)
Creates a save runner with a collection of objects to save.

Parameters:
pObjectsToSave - The objects to save.
Method Detail

runTransaction

public void runTransaction()
                    throws TransactionException
Runs a series of transactions inside a single transaction.

Specified by:
runTransaction in interface TransactionRunner
Throws:
TransactionException

runTransaction

public abstract void runTransaction(java.lang.Object pObject)
                             throws TransactionException
Runs a transaction with the given object.

Throws:
TransactionException - If an exception occurs in the overriding method call.