SRJRCFrames
v0.1.296

de.schwarzrot.data.transaction.support
Class AbstractTransactionalOperation<E extends Entity>

java.lang.Object
  extended by de.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
Type Parameters:
E - - the entity this operation is related to
All Implemented Interfaces:
TransactionalOperation<E>
Direct Known Subclasses:
AbstractConditionTransactionalOperation, TOClear, TOContextOperation, TOSave

public abstract class AbstractTransactionalOperation<E extends Entity>
extends Object
implements TransactionalOperation<E>

base class for descriptive elements, that declare an operation, that should be bound by a transaction. A transaction holds a number of operation declarations, which will be executed at transaction execution time.

A transaction operation is always bound to an Entity, no matter, whether that Entity is used as entry parameter or will be the result of the operation.

Author:
Reinhard Mantey

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schwarzrot.data.transaction.TransactionalOperation
TransactionalOperation.DataDirection
 
Constructor Summary
protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir)
           
protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir, Class<E> entityType)
           
 
Method Summary
 TransactionalOperation.DataDirection getDataDirection()
           
 Class<E> getEntityType()
           
 Object getOperationProperty(String key)
          access method for the transaction operation to read passed parameters
 TransactionResource<?> getResource()
           
 Transaction getTransaction()
           
protected  void setEntityType(Class<E> entityType)
           
 void setOperationProperty(String key, Object value)
          if any transaction operation needs configuration beyond the parameters, arbitrary parameters can be transferred via properties
 void setResource(TransactionResource<?> resource)
           
 void setTransaction(Transaction t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTransactionalOperation

protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir)

AbstractTransactionalOperation

protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir,
                                         Class<E> entityType)
Method Detail

getDataDirection

public TransactionalOperation.DataDirection getDataDirection()
Specified by:
getDataDirection in interface TransactionalOperation<E extends Entity>

getEntityType

public final Class<E> getEntityType()
Specified by:
getEntityType in interface TransactionalOperation<E extends Entity>

getOperationProperty

public final Object getOperationProperty(String key)
access method for the transaction operation to read passed parameters

Specified by:
getOperationProperty in interface TransactionalOperation<E extends Entity>

getResource

public final TransactionResource<?> getResource()
Specified by:
getResource in interface TransactionalOperation<E extends Entity>

getTransaction

public Transaction getTransaction()
Specified by:
getTransaction in interface TransactionalOperation<E extends Entity>

setOperationProperty

public final void setOperationProperty(String key,
                                       Object value)
if any transaction operation needs configuration beyond the parameters, arbitrary parameters can be transferred via properties

Specified by:
setOperationProperty in interface TransactionalOperation<E extends Entity>

setResource

public final void setResource(TransactionResource<?> resource)
Specified by:
setResource in interface TransactionalOperation<E extends Entity>

setTransaction

public void setTransaction(Transaction t)
Specified by:
setTransaction in interface TransactionalOperation<E extends Entity>

setEntityType

protected final void setEntityType(Class<E> entityType)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.