wt.epm.util
Class EPMQueryUtility

java.lang.Object
  extended bywt.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
           
 
Constructor Summary
EPMQueryUtility()
           
 
Method Summary
private static void addHint(Class iterationClass, QuerySpec select)
           
static QueryResult find(QuerySpec querySpec, Class objectClass, String attribute, long[] values)
          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.
static QueryResult findIterationsOf(List masterIds, ConfigSpec configSpec)
           
private static List getIterationClasses(Class masterClass)
           
static List query(ObjectQuery query)
          Executes an ObjectQuery and returns ObjectIdentifier for each object found that matches the search criteria specified in the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIZE

private static int MAX_SIZE
Constructor Detail

EPMQueryUtility

public EPMQueryUtility()
Method Detail

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