de.schwarzrot.data.transaction
Class TOSetProperty<E extends Entity>
java.lang.Object
de.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
de.schwarzrot.data.transaction.support.AbstractConditionTransactionalOperation<E>
de.schwarzrot.data.transaction.TOSetProperty<E>
- All Implemented Interfaces:
- TransactionalOperation<E>
public class TOSetProperty<E extends Entity>
- extends AbstractConditionTransactionalOperation<E>
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 operationpropertyNames
- the names of all properties, that should be changedarg
- 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 operationpropertyNames
- the names of all properties, that should be changedargs
- 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)
getPropertyNames
public Collection<String> getPropertyNames()
getValueHolder
public final E getValueHolder()
setPropertyNames
public void setPropertyNames(Collection<String> propertyNames)
setValueHolder
public final void setValueHolder(E valueHolder)
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.