de.schwarzrot.data.transaction
Class TOSave<E extends Entity>
java.lang.Object
de.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
de.schwarzrot.data.transaction.TOSave<E>
- Type Parameters:
E
- - the entity of the instance(s) to save
- All Implemented Interfaces:
- TransactionalOperation<E>
public class TOSave<E extends Entity>
- extends AbstractTransactionalOperation<E>
describes an operation, bound in a transaction, that is used to save given
instances to persistence.
- Author:
- Reinhard Mantey
Constructor Summary |
TOSave(E instance)
creates a transaction operation, that saves the given instance. |
TOSave(List<E> list)
creates a transaction operation, that saves all given instances. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOSave
public TOSave(E instance)
- creates a transaction operation, that saves the given instance. Related
instances will be save too.
- Parameters:
instance
- - the instance to save
TOSave
public TOSave(List<E> list)
- creates a transaction operation, that saves all given instances. Related
instances will be save too.
- Parameters:
list
- - the instances to save
addInstance
public final void addInstance(E instance)
getInstances
public final List<E> getInstances()
setInstances
public final void setInstances(List<E> instances)
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.