Query DSL: Range - support lt/lte/gt/gte, closes #114.
This commit is contained in:
parent
5f7d0ce36e
commit
8262093a21
|
@ -89,6 +89,96 @@ public class RangeJsonFilterBuilder extends BaseJsonFilterBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gt(String from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gt(int from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gt(long from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gt(float from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gt(double from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gte(String from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gte(int from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gte(long from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gte(float from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder gte(double from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
|
@ -129,6 +219,96 @@ public class RangeJsonFilterBuilder extends BaseJsonFilterBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lt(String to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lt(int to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lt(long to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lt(float to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lt(double to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lte(String to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lte(int to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lte(long to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lte(float to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the filter query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonFilterBuilder lte(double to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should the lower bound be included or not. Defaults to <tt>true</tt>.
|
||||
*/
|
||||
|
|
|
@ -99,6 +99,114 @@ public class RangeJsonQueryBuilder extends BaseJsonQueryBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(String from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(Object from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(int from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(long from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(float from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gt(double from) {
|
||||
this.from = from;
|
||||
this.includeLower = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(String from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(Object from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(int from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(long from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(float from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The from part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder gte(double from) {
|
||||
this.from = from;
|
||||
this.includeLower = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
|
@ -147,6 +255,114 @@ public class RangeJsonQueryBuilder extends BaseJsonQueryBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(String to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(Object to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(int to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(long to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(float to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lt(double to) {
|
||||
this.to = to;
|
||||
this.includeUpper = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(String to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(Object to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(int to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(long to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(float to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The to part of the range query. Null indicates unbounded.
|
||||
*/
|
||||
public RangeJsonQueryBuilder lte(double to) {
|
||||
this.to = to;
|
||||
this.includeUpper = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should the lower bound be included or not. Defaults to <tt>true</tt>.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue