de.schwarzrot.data.transaction.support
Class AbstractTransactionalOperation<E extends Entity>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTransactionalOperation
protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir)
AbstractTransactionalOperation
protected AbstractTransactionalOperation(TransactionalOperation.DataDirection dir,
Class<E> entityType)
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)
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.