Class QueryExecutor
java.lang.Object
com.emc.documentum.rest.dfc.query.QueryExecutor
A DQL query executor to run a DQL with the given DFC session.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.documentum.fc.client.IDfTypedObject>Execute a DF_READ_QUERY type querystatic List<com.documentum.fc.client.IDfTypedObject>Execute a DQL querystatic List<com.documentum.fc.client.IDfTypedObject>run(com.documentum.fc.client.IDfSession session, String dql, QueryType queryType, int offset, int limit) Execute a DQL and return a paginated result setstatic CollectionResult<com.documentum.fc.client.IDfTypedObject>runPagedQuery(com.documentum.fc.client.IDfSession session, String dql, boolean isRanged, int offset, int limit) Execute a DF_READ_QUERY type query and return a paginated result set
-
Method Details
-
run
public static List<com.documentum.fc.client.IDfTypedObject> run(com.documentum.fc.client.IDfSession session, String dql, QueryType queryType) throws com.documentum.fc.common.DfException Execute a DQL query- Parameters:
session- the session to execute this querydql- the DQL statement to be executedqueryType- the query type to be used- Returns:
- a collection of result set
- Throws:
com.documentum.fc.common.DfException- when fails to execute the query
-
run
public static List<com.documentum.fc.client.IDfTypedObject> run(com.documentum.fc.client.IDfSession session, String dql, QueryType queryType, int offset, int limit) throws com.documentum.fc.common.DfException Execute a DQL and return a paginated result set- Parameters:
session- the session to execute this querydql- the DQL statement to be executedqueryType- the query type to be usedoffset- the number of items to be skippedlimit- the max number of items to be returned- Returns:
- a paginated collection of result set
- Throws:
com.documentum.fc.common.DfException- when query fails to run
-
run
public static List<com.documentum.fc.client.IDfTypedObject> run(com.documentum.fc.client.IDfSession session, String dql) throws com.documentum.fc.common.DfException Execute a DF_READ_QUERY type query- Parameters:
session- the session to execute this querydql- the DQL statement to be executed- Returns:
- a collection of result set
- Throws:
com.documentum.fc.common.DfException- when fails to execute the query
-
runPagedQuery
public static CollectionResult<com.documentum.fc.client.IDfTypedObject> runPagedQuery(com.documentum.fc.client.IDfSession session, String dql, boolean isRanged, int offset, int limit) throws com.documentum.fc.common.DfException Execute a DF_READ_QUERY type query and return a paginated result set- Parameters:
session- the session to execute this querydql- the DQL statement to be executedisRanged- indicate whether the dql is enabling ranged queryoffset- the number of items to be skippedlimit- the max number of items to be returned- Returns:
- a paginated collection of result set
- Throws:
com.documentum.fc.common.DfException- when query fails to run
-