SRJRCFrames
v0.1.296

de.schwarzrot.data.transaction
Class TOSetProperty<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.TOSetProperty<E>
All Implemented Interfaces:
TransactionalOperation<E>

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schwarzrot.data.transaction.TransactionalOperation
TransactionalOperation.DataDirection
 
Constructor Summary
TOSetProperty(E valueHolder, Collection<String> propertyNames, ConditionElement arg)
          creates a transaction operation, that changes the given property names of all instances matching the given condition to the appropriate values from valueHolder.
TOSetProperty(E valueHolder, Collection<String> propertyNames, List<ConditionElement> args)
          creates a transaction operation, that changes the given property names of all instances matching the given condition to the appropriate values from valueHolder.
TOSetProperty(E valueHolder, String[] propertyNames, ConditionElement arg)
           
TOSetProperty(E valueHolder, String[] propertyNames, List<ConditionElement> args)
           
 
Method Summary
 Collection<String> getPropertyNames()
           
 E getValueHolder()
           
 void setPropertyNames(Collection<String> propertyNames)
           
 void setValueHolder(E valueHolder)
           
 
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

TOSetProperty

public TOSetProperty(E valueHolder,
                     Collection<String> propertyNames,
                     ConditionElement arg)
creates a transaction operation, that changes the given property names of all instances matching the given condition to the appropriate values from valueHolder. This constructor is for convenience, if the condition consists of a single ConditionElement only.

Parameters:
valueHolder - instance that holds the property values for this operation
propertyNames - the names of all properties, that should be changed
arg - condition the persistent instances must match to get changed

TOSetProperty

public TOSetProperty(E valueHolder,
                     Collection<String> propertyNames,
                     List<ConditionElement> args)
creates a transaction operation, that changes the given property names of all instances matching the given condition to the appropriate values from valueHolder.

Parameters:
valueHolder - instance that holds the property values for this operation
propertyNames - the names of all properties, that should be changed
args - condition the persistent instances must match to get changed

TOSetProperty

public TOSetProperty(E valueHolder,
                     String[] propertyNames,
                     ConditionElement arg)

TOSetProperty

public TOSetProperty(E valueHolder,
                     String[] propertyNames,
                     List<ConditionElement> args)
Method Detail

getPropertyNames

public Collection<String> getPropertyNames()

getValueHolder

public final E getValueHolder()

setPropertyNames

public void setPropertyNames(Collection<String> propertyNames)

setValueHolder

public final void setValueHolder(E valueHolder)

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.