public interface IQueryBuilder
| Modifier and Type | Field and Description |
|---|---|
static int |
QUERY_TYPE_ALL |
static int |
QUERY_TYPE_AND |
static int |
QUERY_TYPE_IN |
static int |
QUERY_TYPE_KEY_VALUE |
static int |
QUERY_TYPE_OR |
static int |
QUERY_TYPE_RANGE |
| Modifier and Type | Method and Description |
|---|---|
IQueryBuilder |
allQuery()
Create a get all query
|
IQueryBuilder |
and(IQuery... queries)
Sets an AND between two queries
|
IQuery |
build()
Builds the
IQuery from the given parameters |
IQueryBuilder |
column(EAttribute attribute)
Sets the name of the column as
EAttribute |
IQueryBuilder |
endValue(java.lang.Object endValue)
Sets the end index
|
IQueryBuilder |
endValue(java.lang.Object endValue,
boolean include)
Sets the end index
|
IQueryBuilder |
in(java.util.List<java.lang.Object> valueList)
Creates a in-query
|
IQueryBuilder |
in(java.lang.Object... values)
Creates a in-query
|
IQueryBuilder |
limit(long maxEntries)
Limits the result set to the given values.
|
IQueryBuilder |
or(IQuery... queries)
Sets an OR between two queries
|
IQueryBuilder |
projectionPath(EStructuralFeature... referencePath)
Sets a reference path for the projection
|
IQueryBuilder |
rangeQuery()
Create a range query
|
IQueryBuilder |
simpleValue(java.lang.Object value)
Sets the value
|
IQueryBuilder |
skip(long skipEntries)
Limits the result set to start with given skip'th element.
|
IQueryBuilder |
sort(EAttribute field,
SortType sortType)
Provides sorting for the given attribute
|
IQueryBuilder |
startValue(java.lang.Object startValue)
Sets the start index
|
IQueryBuilder |
startValue(java.lang.Object startValue,
boolean include)
Sets the start index
|
static final int QUERY_TYPE_ALL
static final int QUERY_TYPE_RANGE
static final int QUERY_TYPE_AND
static final int QUERY_TYPE_OR
static final int QUERY_TYPE_KEY_VALUE
static final int QUERY_TYPE_IN
IQuery build()
IQuery from the given parametersIQuery from the given parametersIQueryBuilder limit(long maxEntries)
maxEntries - the number of entriesIQueryBuilder instanceIQueryBuilder skip(long skipEntries)
skipEntries - the number of entries to skipIQueryBuilder instanceIQueryBuilder sort(EAttribute field, SortType sortType)
field - the attribute to be sortedsortType - ASCENDING or DESCENDINGIQueryBuilder instanceIQueryBuilder rangeQuery()
IQueryBuilder instanceIQueryBuilder allQuery()
IQueryBuilder instanceIQueryBuilder column(EAttribute attribute)
EAttributeattribute - the column name to setIQueryBuilder instanceIQueryBuilder startValue(java.lang.Object startValue)
startValue - the start indexIQueryBuilder instanceIQueryBuilder startValue(java.lang.Object startValue, boolean include)
startValue - the start indexinclude - should the value also be part of the rangeIQueryBuilder instanceIQueryBuilder endValue(java.lang.Object endValue)
endValue - the end indexIQueryBuilder instanceIQueryBuilder endValue(java.lang.Object endValue, boolean include)
endValue - the end indexinclude - should the value also be part of the rangeIQueryBuilder instanceIQueryBuilder simpleValue(java.lang.Object value)
value - the value of this attributeIQueryBuilder instanceIQueryBuilder and(IQuery... queries)
queries - the IQuery instancesIQueryBuilder instanceIQueryBuilder or(IQuery... queries)
queries - the IQuery instancesIQueryBuilder instanceIQueryBuilder in(java.util.List<java.lang.Object> valueList)
valueList - list with valuesIQueryBuilder instanceIQueryBuilder in(java.lang.Object... values)
values - array with valuesIQueryBuilder instanceIQueryBuilder projectionPath(EStructuralFeature... referencePath)
queries - the IQuery instancesIQueryBuilder instanceData In Motion Consulting