public interface SelectorBuilderInterface<SelectorT>
Selector
objects.Modifier and Type | Method and Description |
---|---|
SelectorT |
build()
Builds a new Selector.
|
SelectorBuilderInterface<SelectorT> |
contains(EntityField field,
String propertyValue)
Adds the predicate contains to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
contains(String field,
String propertyValue)
Adds the predicate contains to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsAll(EntityField field,
String... values)
Adds the predicate contains all to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsAll(String field,
String... values)
Adds the predicate contains all to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsAny(EntityField field,
String... values)
Adds the predicate contains any to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsAny(String field,
String... values)
Adds the predicate contains any to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsIgnoreCase(EntityField field,
String propertyValue)
Adds the predicate contains ignore case to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsIgnoreCase(String field,
String propertyValue)
Adds the predicate contains ignore case to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsNone(EntityField field,
String... values)
Adds the predicate contains none to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
containsNone(String field,
String... values)
Adds the predicate contains none to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
doesNotContain(EntityField field,
String propertyValue)
Adds the predicate does not contain to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
doesNotContain(String field,
String propertyValue)
Adds the predicate does not contain to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
doesNotContainIgnoreCase(EntityField field,
String propertyValue)
Adds the predicate does not contain ignore case to the selector for the given field and
value.
|
SelectorBuilderInterface<SelectorT> |
doesNotContainIgnoreCase(String field,
String propertyValue)
Adds the predicate does not contain ignore case to the selector for the given field and
value.
|
SelectorBuilderInterface<SelectorT> |
equals(EntityField field,
String propertyValue)
Adds the predicate equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
equals(String field,
String propertyValue)
Adds the predicate equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
equalsId(Long id)
Adds the predicate equals to the selector for the entity Id and the given id value.
|
SelectorBuilderInterface<SelectorT> |
fields(EntityField... fields)
Chooses the set of fields that will be selected via the API.
|
SelectorBuilderInterface<SelectorT> |
fields(String... fields)
Chooses the set of fields that will be selected via the API.
|
SelectorBuilderInterface<SelectorT> |
forDateRange(org.joda.time.DateTime start,
org.joda.time.DateTime end)
Restricts the Selector by the date range.
|
SelectorBuilderInterface<SelectorT> |
greaterThan(EntityField field,
long propertyValue)
Adds the predicate greater than to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
greaterThan(String field,
long propertyValue)
Adds the predicate greater than to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
greaterThanEquals(EntityField field,
long propertyValue)
Adds the predicate greater than equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
greaterThanEquals(String field,
long propertyValue)
Adds the predicate greater than equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
in(EntityField field,
String... values)
Adds the predicate in to the selector for the given field and set of values.
|
SelectorBuilderInterface<SelectorT> |
in(String field,
String... values)
Adds the predicate in to the selector for the given field and set of values.
|
SelectorBuilderInterface<SelectorT> |
increaseOffsetBy(int additionalOffset)
Adds the given amount to the current offset.
|
SelectorBuilderInterface<SelectorT> |
lessThan(EntityField field,
long propertyValue)
Adds the predicate less than to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
lessThan(String field,
long propertyValue)
Adds the predicate less than to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
lessThanEquals(EntityField field,
long propertyValue)
Adds the predicate less than equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
lessThanEquals(String field,
long propertyValue)
Adds the predicate less than equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
limit(int limit)
Sets the limit amount of results that will be brought back.
|
SelectorBuilderInterface<SelectorT> |
notEquals(EntityField field,
String propertyValue)
Adds the predicate not equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
notEquals(String field,
String propertyValue)
Adds the predicate not equals to the selector for the given field and value.
|
SelectorBuilderInterface<SelectorT> |
notIn(EntityField field,
String... values)
Adds the predicate not in to the selector for the given field and set of values.
|
SelectorBuilderInterface<SelectorT> |
notIn(String field,
String... values)
Adds the predicate not in to the selector for the given field and set of values.
|
SelectorBuilderInterface<SelectorT> |
offset(int offset)
Sets the offset for the start point of the query.
|
SelectorBuilderInterface<SelectorT> |
orderAscBy(EntityField field)
Adds the order by the given field, on ASCENDING sort.
|
SelectorBuilderInterface<SelectorT> |
orderAscBy(String field)
Adds the order by the given field, on ASCENDING sort.
|
SelectorBuilderInterface<SelectorT> |
orderDescBy(EntityField field)
Adds the order by the given field, on DESCENDING sort.
|
SelectorBuilderInterface<SelectorT> |
orderDescBy(String field)
Adds the order by the given field, on DESCENDING sort.
|
SelectorBuilderInterface<SelectorT> |
removeLimitAndOffset()
Removes the offset and limit information from the selector.
|
SelectorBuilderInterface<SelectorT> |
removeOrderBy(EntityField field)
Removes the order that is associated with the given field.
|
SelectorBuilderInterface<SelectorT> |
removeOrderBy(String field)
Removes the order that is associated with the given field.
|
SelectorT build()
When a Selector is built by this method, the state of the builder doesn't change. If you need to clean the builder, the best way to do it, is by creating a new instance.
SelectorBuilderInterface<SelectorT> fields(String... fields)
Calling this method multiple times will overwrite the previous fields that were set.
fields
- the set of fields of the given entity.SelectorBuilderInterface<SelectorT> fields(EntityField... fields)
Calling this method multiple times will overwrite the previous fields that were set.
fields
- the set of fields of the given entity as Java Enums.SelectorBuilderInterface<SelectorT> increaseOffsetBy(int additionalOffset)
additionalOffset
- the amount that will be added to the offsetSelectorBuilderInterface<SelectorT> limit(int limit)
SelectorBuilderInterface<SelectorT> offset(int offset)
offset
- the offsetSelectorBuilderInterface<SelectorT> removeLimitAndOffset()
SelectorBuilderInterface<SelectorT> orderAscBy(String field)
SelectorBuilderInterface<SelectorT> orderAscBy(EntityField field)
SelectorBuilderInterface<SelectorT> orderDescBy(String field)
SelectorBuilderInterface<SelectorT> orderDescBy(EntityField field)
SelectorBuilderInterface<SelectorT> removeOrderBy(String field)
SelectorBuilderInterface<SelectorT> removeOrderBy(EntityField field)
SelectorBuilderInterface<SelectorT> forDateRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
SelectorBuilderInterface<SelectorT> equals(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> equals(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> notEquals(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> notEquals(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> contains(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> contains(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> containsIgnoreCase(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> containsIgnoreCase(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> doesNotContain(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> doesNotContain(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> doesNotContainIgnoreCase(String field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> doesNotContainIgnoreCase(EntityField field, String propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> greaterThan(String field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> greaterThan(EntityField field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> greaterThanEquals(String field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> greaterThanEquals(EntityField field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> lessThan(String field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> lessThan(EntityField field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> lessThanEquals(EntityField field, long propertyValue)
propertyValue
- the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarySelectorBuilderInterface<SelectorT> equalsId(Long id)
id
- the ID of the current entity. This field represents different values for different
entity typesSelectorBuilderInterface<SelectorT> in(String field, String... values)
SelectorBuilderInterface<SelectorT> in(EntityField field, String... values)
SelectorBuilderInterface<SelectorT> notIn(String field, String... values)
SelectorBuilderInterface<SelectorT> notIn(EntityField field, String... values)
SelectorBuilderInterface<SelectorT> containsAny(String field, String... values)
SelectorBuilderInterface<SelectorT> containsAny(EntityField field, String... values)
SelectorBuilderInterface<SelectorT> containsAll(String field, String... values)
SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values)
SelectorBuilderInterface<SelectorT> containsNone(String field, String... values)
SelectorBuilderInterface<SelectorT> containsNone(EntityField field, String... values)
Copyright © 2018. All Rights Reserved.