wt.epm.util
Class EPMQueryUtility
java.lang.Object
wt.epm.util.EPMQueryUtility
- public class EPMQueryUtility
- extends Object
The EPMQueryUtiltiy is a server-side only class that queries for objects.
Supported API: false
Extendable: false
Field Summary |
private static int |
MAX_SIZE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_SIZE
private static int MAX_SIZE
EPMQueryUtility
public EPMQueryUtility()
query
public static List query(ObjectQuery query)
throws WTException
- Executes an ObjectQuery and returns ObjectIdentifier for each object
found that matches the search criteria specified in the query.
Supported API: false
- Returns:
- List of ObjectIdentifiers one for each object found
- Throws:
WTException
find
public static QueryResult find(QuerySpec querySpec,
Class objectClass,
String attribute,
long[] values)
throws WTException
- If the number of values exceeds the maximum number of elements allowed in an
IN clause, execute the query in chunks (if possible) and return the combined
results. If the given query spec has an order-by or group-by clause or is
supposed to return distinct results, this method will execute it as a single
query.
Supported API: false
- Returns:
- QueryResult of objects retrieved from the database
- Throws:
WTException
findIterationsOf
public static QueryResult findIterationsOf(List masterIds,
ConfigSpec configSpec)
throws WTException
- Throws:
WTException
getIterationClasses
private static List getIterationClasses(Class masterClass)
throws WTException
- Throws:
WTException
addHint
private static void addHint(Class iterationClass,
QuerySpec select)
throws WTException
- Throws:
WTException