|
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.TORead<E>
E - entity of involved instancepublic class TORead<E extends Entity>
describes an operation, bound in a transaction, that is used to read
persistent instances of given Entity. The optional condition can be
used to filter the instances, that should be read.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.schwarzrot.data.transaction.TransactionalOperation |
|---|
TransactionalOperation.DataDirection |
| Constructor Summary | |
|---|---|
TORead(Class<E> entityType)
creates a transaction operation, that reads all persistent instances of the given entityType
Result of the read operation can be accessed using getResult() |
|
TORead(Class<E> entityType,
Collection<String> propertyNames)
creates a transaction operation, that partially reads all persistent instances of the given entityType, filtered by the given
condition. |
|
TORead(Class<E> entityType,
Collection<String> propertyNames,
boolean readUniq)
creates a transaction operation, that partially reads all persistent instances of the given entityType, filtered by the given
condition. |
|
TORead(Class<E> entityType,
ConditionElement arg)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by a single condition element. |
|
TORead(Class<E> entityType,
ConditionElement arg,
boolean readRelated)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by a single condition element. |
|
TORead(Class<E> entityType,
List<ConditionElement> args)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by the given condition. |
|
TORead(Class<E> entityType,
List<ConditionElement> args,
boolean readRelated)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by the given condition. |
|
TORead(Class<E> entityType,
List<ConditionElement> args,
Collection<String> propertyNames)
creates a transaction operation, that partially reads all persistent instances of the given entityType, filtered by the given
condition. |
|
TORead(Class<E> entityType,
List<ConditionElement> args,
int maxRows,
boolean readRelated)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by the given condition. |
|
TORead(E instance)
creates a transaction operation, that fully populates a partial read Entity instance. |
|
TORead(List<E> result,
Class<E> entityType)
creates a transaction operation, that reads all persistent instances of the given entityType. |
|
TORead(List<E> result,
Class<E> entityType,
ConditionElement arg)
|
|
TORead(List<E> result,
Class<E> entityType,
ConditionElement arg,
int maxRows,
boolean readRelated)
|
|
TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by the given condition. |
|
TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args,
Collection<String> propertyNames,
int maxRows,
boolean readUniq)
creates a transaction operation, that partially reads all persistent instances of the given entityType, filtered by the given
condition. |
|
TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args,
int maxRows,
boolean readRelated)
creates a transaction operation, that reads all persistent instances of the given entityType, filtered by the given condition. |
|
| Method Summary | |
|---|---|
void |
addOrder(String attrName)
|
void |
addOrder(String attrName,
boolean ascending)
|
void |
clearOrderSequence()
|
int |
getMaxRows()
|
Collection<SortInfo> |
getOrderSequence()
|
Collection<String> |
getPropertyNames()
|
List<E> |
getResult()
|
boolean |
isReadRelated()
|
boolean |
isReadUniq()
|
void |
setMaxRows(int maxRows)
|
void |
setPropertyNames(Collection<String> propertyNames)
|
void |
setReadRelated(boolean readRelated)
|
void |
setReadUniq(boolean readUniq)
|
void |
setResult(List<E> result)
|
| 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 TORead(Class<E> entityType)
entityType
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to read
public TORead(Class<E> entityType,
Collection<String> propertyNames)
entityType, filtered by the given
condition. Use propertyNames to specify the properties, that
should be read. This variant is used to read only small amount of
properties of big Entitys mainly for list, where lots of entries
should be displayed.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readpropertyNames - the property names, that should get read
public TORead(Class<E> entityType,
Collection<String> propertyNames,
boolean readUniq)
entityType, filtered by the given
condition. Use propertyNames to specify the properties, that
should be read. This variant is used to read only small amount of
properties of big Entitys mainly for list, where lots of entries
should be displayed.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readpropertyNames - the property names, that should get readreadUniq - if set to true, the result will contain no duplicates respect
to given propertyNames
public TORead(Class<E> entityType,
ConditionElement arg)
entityType, filtered by a single condition element.
Relations will not be resolved.
Result of the read operation can be accessed using getResult()
entityType - - the entity of the instances to readarg - - the condition that describes the pool of instances
public TORead(Class<E> entityType,
ConditionElement arg,
boolean readRelated)
entityType, filtered by a single condition element.
Relations will be resolved if parameter readRelated is set to
true.
Result of the read operation can be accessed using getResult()
entityType - - the entity of the instances to readarg - - the condition that describes the pool of instancesreadRelated - - flags whether to resolve relations
public TORead(Class<E> entityType,
List<ConditionElement> args)
entityType, filtered by the given condition.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readargs - condition, the instances to read must match
public TORead(Class<E> entityType,
List<ConditionElement> args,
boolean readRelated)
entityType, filtered by the given condition.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readargs - condition, the instances to read must matchreadRelated - - if true, the related instances will be resolvedfalse, they won't be resolved
public TORead(Class<E> entityType,
List<ConditionElement> args,
Collection<String> propertyNames)
entityType, filtered by the given
condition. Use propertyNames to specify the properties, that
should be read. This variant is used to read only small amount of
properties of big Entitys mainly for list, where lots of entries
should be displayed.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readargs - condition, the instances to read must matchpropertyNames - the property names, that should get read
public TORead(Class<E> entityType,
List<ConditionElement> args,
int maxRows,
boolean readRelated)
entityType, filtered by the given condition.
Result of the read operation can be accessed using getResult()
entityType - the type of the instances to readargs - condition, the instances to read must matchmaxRows - limit result to maxRows rows - 0 means unlimited
resultreadRelated - - if true, the related instances will be resolvedfalse, they won't be resolvedpublic TORead(E instance)
Entity instance. The given instance must have a valid
id, that corresponds to a persistent representation. This variant
will also resolve any declared relation.
instance - the instance to reread
public TORead(List<E> result,
Class<E> entityType)
entityType. The read instances will be added to the
given List. Use this variant to use an already existing lists or
use other list types as the internally created ArrayList.
result - the list to get populated by the read instancesentityType - the type of the instances to read
public TORead(List<E> result,
Class<E> entityType,
ConditionElement arg)
public TORead(List<E> result,
Class<E> entityType,
ConditionElement arg,
int maxRows,
boolean readRelated)
public TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args)
entityType, filtered by the given condition. The read
instances will be added to the given List. Use this variant to
use an already existing lists or use other list types as the internally
created ArrayList.
result - the list to get populated by the read instancesentityType - the type of the instances to readargs - condition, the instances to read must match
public TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args,
Collection<String> propertyNames,
int maxRows,
boolean readUniq)
entityType, filtered by the given
condition. Use propertyNames to specify the properties, that
should be read. This variant is used to read only small amount of
properties of big Entitys mainly for list, where lots of entries
should be displayed. The read instances will be added to the given
List. Use this variant to use an already existing lists or use
other list types as the internally created ArrayList.
result - the list to get populated by the read instancesentityType - the type of the instances to readargs - condition, the instances to read must matchpropertyNames - the property names, that should get readmaxRows - limit the result to maxRows - 0 means unlimited resultreadUniq - - if true, the related instances will be resolvedfalse, they won't be resolved
public TORead(List<E> result,
Class<E> entityType,
List<ConditionElement> args,
int maxRows,
boolean readRelated)
entityType, filtered by the given condition. The read
instances will be added to the given List. Use this variant to
use an already existing lists or use other list types as the internally
created ArrayList.
result - the list to get populated by the read instancesentityType - the type of the instances to readargs - condition, the instances to read must matchmaxRows - limit the result to maxRows - 0 means unlimited resultreadRelated - - if true, the related instances will be resolvedfalse, they won't be resolved| Method Detail |
|---|
public void addOrder(String attrName)
public void addOrder(String attrName,
boolean ascending)
public void clearOrderSequence()
public final int getMaxRows()
public final Collection<SortInfo> getOrderSequence()
public final Collection<String> getPropertyNames()
public final List<E> getResult()
public final boolean isReadRelated()
public final boolean isReadUniq()
public final void setMaxRows(int maxRows)
public final void setPropertyNames(Collection<String> propertyNames)
public final void setReadRelated(boolean readRelated)
public final void setReadUniq(boolean readUniq)
public final void setResult(List<E> result)
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||