SRJRCFrames
v0.1.296

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

java.lang.Object
  extended by de.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
      extended by de.schwarzrot.data.transaction.support.AbstractConditionTransactionalOperation<E>
          extended by de.schwarzrot.data.transaction.TORemove<E>
Type Parameters:
E - - the entity of the instance(s) to remove
All Implemented Interfaces:
TransactionalOperation<E>

public class TORemove<E extends Entity>
extends AbstractConditionTransactionalOperation<E>

describes an operation, bound in a transaction, that is used to remove persistent instances of given Entity. The optional condition can be used to filter the instances, that should be removed.

Author:
Reinhard Mantey

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schwarzrot.data.transaction.TransactionalOperation
TransactionalOperation.DataDirection
 
Constructor Summary
TORemove(Class<E> entityType, ConditionElement arg)
          creates a transaction operation, that removes all persistent instances, that match given condition.
TORemove(Class<E> entityType, List<ConditionElement> args)
          creates a transaction operation, that removes all persistent instances, that match given condition.
TORemove(E instance)
          creates a transaction operation, that removes the given instance.
TORemove(Entity instance, Class<E> childType)
          creates a transaction operation, that removes all related children of given childType
TORemove(List<E> instances)
          creates a transaction operation, that removes all given instances.
 
Method Summary
 void addInstance2Remove(E instance)
           
 List<E> getInstances2Remove()
           
 void setInstances2Remove(List<E> instances2Remove)
           
 
Methods inherited from class de.schwarzrot.data.transaction.support.AbstractConditionTransactionalOperation
addCondition, clearCondition, getConditionArgs, setConditionArgs
 
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

TORemove

public TORemove(Class<E> entityType,
                ConditionElement arg)
creates a transaction operation, that removes all persistent instances, that match given condition. Related children will NOT be checked / removed, so be carefull when to use.

Parameters:
entityType - - the type of the instances to remove
arg - - condition, the instances must match

TORemove

public TORemove(Class<E> entityType,
                List<ConditionElement> args)
creates a transaction operation, that removes all persistent instances, that match given condition. Related children will NOT be checked / removed, so be carefull when to use.

Parameters:
entityType - - the type of the instances to remove
args - - condition, the instances must match

TORemove

public TORemove(E instance)
creates a transaction operation, that removes the given instance. Related children will be removed too.

Parameters:
instance - - the instance to remove

TORemove

public TORemove(Entity instance,
                Class<E> childType)
creates a transaction operation, that removes all related children of given childType

Parameters:
instance - - the parent of the children to remove
childType - - type of the children to remove

TORemove

public TORemove(List<E> instances)
creates a transaction operation, that removes all given instances. Related children will be removed too.

Parameters:
instances - - the instances to remove
Method Detail

addInstance2Remove

public final void addInstance2Remove(E instance)

getInstances2Remove

public final List<E> getInstances2Remove()

setInstances2Remove

public final void setInstances2Remove(List<E> instances2Remove)

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.