Class DQLBuilder
java.lang.Object
com.emc.documentum.rest.dfc.query.DQLBuilder
Utility to build DQL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Get the final DQL statementBuildFROMstatementAdd the hint to the dqlAdd the hint list to the dqlBuildORDER BYstatementreturnRange(int start, int end, List<SortOrder> sorts) BuildRETURN_RANGEstatementBuildSEARCH DOCUMENT CONTAINSstatementBuildSELECTstatement with attributesBuildSELECTstatement with attributesBuildSELECTstatement with attributes andASclauseSet select for valueBuildWHEREstatementBuildWHEREstatement
-
Constructor Details
-
DQLBuilder
public DQLBuilder()
-
-
Method Details
-
select
BuildSELECTstatement with attributes- Parameters:
attributes- attributes to select- Returns:
- DQL with
SELECTstatement
-
select
BuildSELECTstatement with attributes- Parameters:
attributes- attributes to select- Returns:
- DQL with
SELECTstatement
-
select
BuildSELECTstatement with attributes andASclause- Parameters:
attributes- attributes to selectasClause- as clause- Returns:
- DQL with
SELECTstatement andASclause
-
selectFor
Set select for value- Parameters:
selectFor- for which the select is executed- Returns:
- this DQLBuilder object
-
from
BuildFROMstatement- Parameters:
table- the source table to query- Returns:
- DQL with
FROMstatement
-
search
BuildSEARCH DOCUMENT CONTAINSstatement- Parameters:
search- simple search expression- Returns:
- DQL with
SEARCH DOCUMENT CONTAINSstatement
-
where
BuildWHEREstatement- Parameters:
condition-WHEREcondition- Returns:
- DQL with
WHEREstatement
-
where
BuildWHEREstatement- Parameters:
condition-WHEREconditionargs- arguments inWHEREstatement- Returns:
- DQL with
WHEREstatement
-
order
BuildORDER BYstatement- Parameters:
sorts- instances ofSortOrderrepresenting the sort strategies- Returns:
- DQL with
ORDER BYstatement
-
returnRange
BuildRETURN_RANGEstatement- Parameters:
start- range startend- range endsorts- instances ofSortOrderrepresenting the sort strategies- Returns:
- DQL with
RETURN_RANGEstatement 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
-