SRJRCFrames
v0.1.296

de.schwarzrot.data.transaction
Class TOSave<E extends Entity>

java.lang.Object
  extended by de.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schwarzrot.data.transaction.TransactionalOperation
TransactionalOperation.DataDirection
 
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.
 
Method Summary
 void addInstance(E instance)
           
 List<E> getInstances()
           
 void setInstances(List<E> instances)
           
 
Methods inherited from class de.schwarzrot.data.transaction.support.AbstractTransactionalOperation
getDataDirection, getEntityType, getOperationProperty, getResource, getTransaction, setEntityType, setOperationProperty, setResource, setTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

addInstance

public final void addInstance(E instance)

getInstances

public final List<E> getInstances()

setInstances

public final void setInstances(List<E> instances)

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.