public abstract class AbstractQueryBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractQueryBuilder.COMPARISON_TYPE
The Enum COMPARISON_TYPE function for query
|
static class |
AbstractQueryBuilder.LOGICAL
The Enum LOGICAL function for query
|
static class |
AbstractQueryBuilder.ORDERBY
The Enum ORDERBY function for query
|
static class |
AbstractQueryBuilder.PATH_TYPE
The Enum type of path constraints can be used in query statement
|
static class |
AbstractQueryBuilder.QueryTermHelper
The Class QueryTermHelper.
|
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
containsClause
The contains clause.
|
protected StringBuilder |
excerptClause
The excerpt clause.
|
protected StringBuilder |
fromClause
The from clause.
|
protected StringBuilder |
orderByClause
The order by clause.
|
protected StringBuilder |
pathClause
The path clause.
|
protected StringBuilder |
propertiesClause
The properties clause.
|
protected StringBuilder |
selectClause
The select clause.
|
protected StringBuilder |
spellCheckClause
The spell check clause.
|
| Constructor and Description |
|---|
AbstractQueryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
afterDate(String datePropertyName,
String date,
AbstractQueryBuilder.LOGICAL condition)
After date.
|
abstract void |
beforeDate(String datePropertyName,
String date,
AbstractQueryBuilder.LOGICAL condition)
Before date.
|
abstract void |
betweenDates(String datePropertyName,
String startDate,
String endDate,
AbstractQueryBuilder.LOGICAL condition)
Between dates.
|
abstract void |
closeGroup()
Close group.
|
abstract void |
contains(String scope,
String term,
AbstractQueryBuilder.LOGICAL condition)
Contains.
|
abstract String |
createQueryStatement()
Creates the query statement.
|
abstract void |
equal(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Equal.
|
abstract void |
excerpt(boolean enable)
Excerpt.
|
abstract void |
fromNodeTypes(String[] nodetypes)
From node types.
|
abstract void |
greaterOrEqual(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Greater or equal.
|
abstract void |
greaterThan(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Greater than.
|
abstract void |
isNotNull(String propertyName,
AbstractQueryBuilder.LOGICAL condition)
Checks a property is not null.
|
abstract void |
isNull(String propertyName,
AbstractQueryBuilder.LOGICAL condition)
Checks a property is null.
|
abstract void |
lessThan(String propertyName,
String value,
AbstractQueryBuilder.LOGICAL condition)
compare less than
|
abstract void |
lessThanOrEqual(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Less than or equal.
|
abstract void |
like(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Like.
|
abstract void |
merge(AbstractQueryBuilder other)
Merge.
|
abstract void |
notContains(String scope,
String term,
AbstractQueryBuilder.LOGICAL condition)
Not contains.
|
abstract void |
notEqual(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Not equal.
|
abstract void |
openGroup(AbstractQueryBuilder.LOGICAL logical)
Open group condition for where clause
|
abstract void |
orderBy(String properyName,
AbstractQueryBuilder.ORDERBY orderby)
Order by.
|
abstract void |
reference(String propName,
String value,
AbstractQueryBuilder.LOGICAL condition)
Reference.
|
abstract void |
selectTypes(String[] returnTypes)
Select types.
|
abstract void |
setQueryPath(String path,
AbstractQueryBuilder.PATH_TYPE pathtype)
Sets the query path.
|
abstract void |
spellCheck(String term)
Spell check.
|
protected StringBuilder fromClause
protected StringBuilder propertiesClause
protected StringBuilder pathClause
protected StringBuilder orderByClause
protected StringBuilder selectClause
protected StringBuilder containsClause
protected StringBuilder spellCheckClause
protected StringBuilder excerptClause
public abstract void isNull(String propertyName, AbstractQueryBuilder.LOGICAL condition)
propertyName - the property namecondition - the conditionpublic abstract void isNotNull(String propertyName, AbstractQueryBuilder.LOGICAL condition)
propertyName - the property namecondition - the conditionpublic abstract void lessThan(String propertyName, String value, AbstractQueryBuilder.LOGICAL condition)
propertyName - the property namevalue - the valuecondition - the conditionpublic abstract void greaterThan(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void lessThanOrEqual(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void greaterOrEqual(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void equal(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void notEqual(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void like(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void reference(String propName, String value, AbstractQueryBuilder.LOGICAL condition)
propName - the prop namevalue - the valuecondition - the conditionpublic abstract void beforeDate(String datePropertyName, String date, AbstractQueryBuilder.LOGICAL condition)
datePropertyName - the date property namedate - the datecondition - the conditionpublic abstract void afterDate(String datePropertyName, String date, AbstractQueryBuilder.LOGICAL condition)
datePropertyName - the date property namedate - the datecondition - the conditionpublic abstract void betweenDates(String datePropertyName, String startDate, String endDate, AbstractQueryBuilder.LOGICAL condition)
datePropertyName - the date property namestartDate - the start dateendDate - the end datecondition - the conditionpublic abstract void setQueryPath(String path, AbstractQueryBuilder.PATH_TYPE pathtype)
path - the pathpathtype - the pathtypepublic abstract void contains(String scope, String term, AbstractQueryBuilder.LOGICAL condition)
scope - the scopeterm - the termcondition - the conditionpublic abstract void notContains(String scope, String term, AbstractQueryBuilder.LOGICAL condition)
scope - the scopeterm - the termcondition - the conditionpublic abstract void excerpt(boolean enable)
enable - the enablepublic abstract void spellCheck(String term)
term - the termpublic abstract void orderBy(String properyName, AbstractQueryBuilder.ORDERBY orderby)
properyName - the propery nameorderby - the orderbypublic abstract void selectTypes(String[] returnTypes)
returnTypes - the return typespublic abstract void fromNodeTypes(String[] nodetypes)
nodetypes - the nodetypespublic abstract void openGroup(AbstractQueryBuilder.LOGICAL logical)
logical - the logicalpublic abstract void closeGroup()
public abstract String createQueryStatement()
public abstract void merge(AbstractQueryBuilder other)
other - the otherCopyright © 2003–2019 eXo Platform SAS. All rights reserved.