|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.data.transaction.support.AbstractTransactionalOperation<E>
de.schwarzrot.data.transaction.support.AbstractConditionTransactionalOperation<E>
de.schwarzrot.data.transaction.TORemove<E>
E - - the entity of the instance(s) to removepublic class TORemove<E extends Entity>
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.
| 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 |
|---|
public TORemove(Class<E> entityType,
ConditionElement arg)
entityType - - the type of the instances to removearg - - condition, the instances must match
public TORemove(Class<E> entityType,
List<ConditionElement> args)
entityType - - the type of the instances to removeargs - - condition, the instances must matchpublic TORemove(E instance)
instance - - the instance to remove
public TORemove(Entity instance,
Class<E> childType)
childType
instance - - the parent of the children to removechildType - - type of the children to removepublic TORemove(List<E> instances)
instances - - the instances to remove| Method Detail |
|---|
public final void addInstance2Remove(E instance)
public final List<E> getInstances2Remove()
public final void setInstances2Remove(List<E> instances2Remove)
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||