Class DQLBuilder
java.lang.Object
com.emc.documentum.rest.dfc.query.DQLBuilder
Utility to build DQL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Get the final DQL statementBuildFROM
statementAdd the hint to the dqlAdd the hint list to the dqlBuildORDER BY
statementreturnRange
(int start, int end, List<SortOrder> sorts) BuildRETURN_RANGE
statementBuildSEARCH DOCUMENT CONTAINS
statementBuildSELECT
statement with attributesBuildSELECT
statement with attributesBuildSELECT
statement with attributes andAS
clauseSet select for valueBuildWHERE
statementBuildWHERE
statement
-
Constructor Details
-
DQLBuilder
public DQLBuilder()
-
-
Method Details
-
select
BuildSELECT
statement with attributes- Parameters:
attributes
- attributes to select- Returns:
- DQL with
SELECT
statement
-
select
BuildSELECT
statement with attributes- Parameters:
attributes
- attributes to select- Returns:
- DQL with
SELECT
statement
-
select
BuildSELECT
statement with attributes andAS
clause- Parameters:
attributes
- attributes to selectasClause
- as clause- Returns:
- DQL with
SELECT
statement andAS
clause
-
selectFor
Set select for value- Parameters:
selectFor
- for which the select is executed- Returns:
- this DQLBuilder object
-
from
BuildFROM
statement- Parameters:
table
- the source table to query- Returns:
- DQL with
FROM
statement
-
search
BuildSEARCH DOCUMENT CONTAINS
statement- Parameters:
search
- simple search expression- Returns:
- DQL with
SEARCH DOCUMENT CONTAINS
statement
-
where
BuildWHERE
statement- Parameters:
condition
-WHERE
condition- Returns:
- DQL with
WHERE
statement
-
where
BuildWHERE
statement- Parameters:
condition
-WHERE
conditionargs
- arguments inWHERE
statement- Returns:
- DQL with
WHERE
statement
-
order
BuildORDER BY
statement- Parameters:
sorts
- instances ofSortOrder
representing the sort strategies- Returns:
- DQL with
ORDER BY
statement
-
returnRange
BuildRETURN_RANGE
statement- Parameters:
start
- range startend
- range endsorts
- instances ofSortOrder
representing the sort strategies- Returns:
- DQL with
RETURN_RANGE
statement and OPTIMIZE_TOP N
-
hint
Add the hint to the dql- Parameters:
hint
- the hint to be added- Returns:
- the dql builder
-
hints
Add the hint list to the dql- Parameters:
hints
- the hint list- Returns:
- the dql builder
-
build
Get the final DQL statement- Returns:
- complete DQL statement
-