|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.persist.query.QueryRuntime
QueryRuntime creates Query instances and components of Query instances which the application programmer can then use to obtain entities from persistence by query. A Query instance consists of a Condition and (optionally) of a SortOrder instance. The application programmer will use QueryRuntime to first create a Condition instance, then optionally create a SortOrder instance and finally with these two (or only * with condition) create a Query instance. Condition instances as well as SortOrder instances can be nested.
| Method Summary | |
Condition |
createCondition(AttributeDescriptor attribute,
RelationalOperatorType relationalOperator,
java.lang.Object value)
Creates a Condition which is used to create a Query. |
Condition |
createCondition(Condition[] conditions,
LogicalOperatorType logicalOperator)
Creates a Condition which is used to create a Query. |
Query |
createQuery(java.lang.String classtype,
Condition condition)
Creates a Query out of a classtype (represented as a String) and a Condition |
Query |
createQuery(java.lang.String classtype,
Condition condition,
int maxCount)
Creates a Query out of a classtype (represented as a String), a Condition and a size-limitation of the result set. |
Query |
createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder)
Creates a Query out of a classtype (represented as a String), a Condition and a SortOrder |
Query |
createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder,
int maxCount)
Creates a Query out of a classtype (represented as a String), a Condition, a and a size-limitation of the result set |
Query |
createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder,
int startIdx,
int maxCount)
Creates a Query out of a classtype (represented as a String), a Condition, a and a size-limitation of the result set |
Query |
createQuery(java.lang.String classtype,
SortOrder sortOrder,
int startIdx,
int maxCount)
Creates a Query out of a classtype (represented as a String), a Condition and a size-limitation of the result set. |
SortOrder |
createSortOrder(AttributeDescriptor attrib,
boolean isAscending)
Creates a SortOrder instance. |
SortOrder |
createSortOrder(SortOrder[] sortOrders)
Creates a SortOrder instance out of multiple SingleSortOrder and / or MultipleSortOrder instances. |
static QueryRuntime |
getInstance()
Gets the QueryRuntime singleton |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static QueryRuntime getInstance()
public Condition createCondition(AttributeDescriptor attribute,
RelationalOperatorType relationalOperator,
java.lang.Object value)
createCondition in interface InternalQueryRuntimerelationalOperator - Description of the Parametervalue - Description of the Parameterattribute - Description of the Parameter
public Condition createCondition(Condition[] conditions,
LogicalOperatorType logicalOperator)
createCondition in interface InternalQueryRuntimeconditions - Description of the ParameterlogicalOperator - Description of the Parameter
public SortOrder createSortOrder(AttributeDescriptor attrib,
boolean isAscending)
createSortOrder in interface InternalQueryRuntimeisAscending - Description of the Parameterattrib - Description of the Parameter
public SortOrder createSortOrder(SortOrder[] sortOrders)
createSortOrder in interface InternalQueryRuntimesortOrders - Description of the Parameter
public Query createQuery(java.lang.String classtype,
Condition condition)
throws PersistenceException
createQuery in interface InternalQueryRuntimecondition - Description of the Parameterclasstype - Description of the Parameter
PersistenceException - Description of the Exception
public Query createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder)
throws PersistenceException
createQuery in interface InternalQueryRuntimecondition - Description of the ParametersortOrder - Description of the Parameterclasstype - Description of the Parameter
PersistenceException - Description of the Exception
public Query createQuery(java.lang.String classtype,
Condition condition,
int maxCount)
throws PersistenceException
createQuery in interface InternalQueryRuntimecondition - Description of the ParametermaxCount - Description of the Parameterclasstype - Description of the Parameter
PersistenceException - Description of the Exception
public Query createQuery(java.lang.String classtype,
SortOrder sortOrder,
int startIdx,
int maxCount)
throws PersistenceException
createQuery in interface InternalQueryRuntimemaxCount - Description of the Parameterclasstype - Description of the Parameter
PersistenceException - Description of the Exception
public Query createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder,
int maxCount)
throws PersistenceException
createQuery in interface InternalQueryRuntimecondition - Description of the ParametersortOrder - Description of the ParametermaxCount - Description of the Parameterclasstype - Description of the Parameter
PersistenceException - Description of the Exception
public Query createQuery(java.lang.String classtype,
Condition condition,
SortOrder sortOrder,
int startIdx,
int maxCount)
throws PersistenceException
createQuery in interface InternalQueryRuntimecondition - Description of the ParametersortOrder - Description of the ParametermaxCount - Description of the Parameterclasstype - Description of the ParameterstartIdx - Description of the Parameter
PersistenceException - Description of the Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||