public class BasicOperandImpl<T,U> extends Object implements BasicOperand<T>
Default implementation of the BasicOperand interface.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
BasicOperandImpl.InnerSelectReferenceValue
Inner select reference value used by the  
eq(Predicate) method to render the inner select statement with
the given parameter as the column name and the given predicate as the right operand. | 
| Modifier and Type | Method and Description | 
|---|---|
Predicate | 
eq(BasicOperand<T> operand,
  Predicate innerSelectPredicate)
Builds a predicate which tests that the value of the given operand is equal to a single match
of the given inner select predicate. 
 | 
Predicate | 
eq(Predicate innerSelectPredicate)
Builds a predicate which tests that the value is equal to a single match
of the given inner select predicate. 
 | 
Predicate | 
eq(T expectedValue)
Builds a predicate for a  
value == expectedValue comparison. | 
Predicate | 
exists()
Builds a predicate that checks if the value exists. 
 | 
QueryParameter | 
getQueryParameter()
Returns the query parameter defining the value to be queried. 
 | 
Predicate | 
in(BasicOperand<T> operand,
  Predicate innerSelectPredicate)
Builds a predicate which tests that the value of the given operand is contained in any of the given inner select predicate matches. 
 | 
Predicate | 
in(Collection<? extends T> possibleValues)
Builds a predicate which tests that the value is one of the possible values. 
 | 
Predicate | 
in(Predicate innerSelectPredicate)
Builds a predicate which tests that the value is contained in any of the given inner select predicate matches. 
 | 
Predicate | 
in(T possibleValue)
Builds a predicate which tests that the value is one of the possible values. 
 | 
Predicate | 
in(T possibleValue1,
  T possibleValue2)
Builds a predicate which tests that the value is one of the possible values. 
 | 
Predicate | 
in(T possibleValue1,
  T possibleValue2,
  T possibleValue3)
Builds a predicate which tests that the value is one of the possible values. 
 | 
Predicate | 
in(T possibleValue1,
  T possibleValue2,
  T possibleValue3,
  T... morePossibleValues)
Builds a predicate which tests that the value is one of the possible values. 
 | 
Predicate | 
isNotNull()
Builds a predicate for a  
value ! | 
Predicate | 
isNull()
Builds a predicate for a  
value == null comparison. | 
Predicate | 
notEq(T expectedValue)
Builds a predicate for a  
value ! | 
Predicate | 
notIn(Collection<? extends T> possibleValues)
Builds a predicate which tests that the value is not one of the possible values. 
 | 
Predicate | 
notIn(T possibleValue)
Builds a predicate which tests that the value is not one of the possible values. 
 | 
Predicate | 
notIn(T possibleValue1,
     T possibleValue2)
Builds a predicate which tests that the value is not one of the possible values. 
 | 
Predicate | 
notIn(T possibleValue1,
     T possibleValue2,
     T possibleValue3)
Builds a predicate which tests that the value is not one of the possible values. 
 | 
Predicate | 
notIn(T possibleValue1,
     T possibleValue2,
     T possibleValue3,
     T... morePossibleValues)
Builds a predicate which tests that the value is not one of the possible values. 
 | 
Ordering | 
orderAsc()
Builds an ordering criterion which sorts by the operand value in ascending order. 
 | 
Ordering | 
orderDesc()
Builds an ordering criterion which sorts by the operand value in descending order. 
 | 
public QueryParameter getQueryParameter()
BasicOperandReturns the query parameter defining the value to be queried.
getQueryParameter in interface BasicOperand<T>public Predicate exists()
BasicOperandBuilds a predicate that checks if the value exists.
For fields, this will always match. For variables it will match if a variable with the given name is present.
exists in interface BasicOperand<T>public final Predicate eq(T expectedValue)
BasicOperandBuilds a predicate for a value == expectedValue comparison.
eq in interface BasicOperand<T>expectedValue - the expected value of the comparisonpublic Predicate notEq(T expectedValue)
BasicOperandBuilds a predicate for a value != expectedValue comparison.
notEq in interface BasicOperand<T>expectedValue - the expected value of the comparisonpublic final Predicate eq(Predicate innerSelectPredicate)
BasicOperandBuilds a predicate which tests that the value is equal to a single match of the given inner select predicate.
eq in interface BasicOperand<T>innerSelectPredicate - the inner select predicatepublic final Predicate eq(BasicOperand<T> operand, Predicate innerSelectPredicate)
BasicOperandBuilds a predicate which tests that the value of the given operand is equal to a single match of the given inner select predicate.
eq in interface BasicOperand<T>operand - the operandinnerSelectPredicate - the inner select predicatepublic final Predicate isNull()
BasicOperandBuilds a predicate for a value == null comparison.
isNull in interface BasicOperand<T>public final Predicate isNotNull()
BasicOperandBuilds a predicate for a value != null comparison.
isNotNull in interface BasicOperand<T>public final Predicate in(T possibleValue)
BasicOperandBuilds a predicate which tests that the value is one of the possible values.
in in interface BasicOperand<T>possibleValue - the possible valuepublic Predicate notIn(T possibleValue)
BasicOperandBuilds a predicate which tests that the value is not one of the possible values.
notIn in interface BasicOperand<T>possibleValue - the possible valuepublic final Predicate in(T possibleValue1, T possibleValue2)
BasicOperandBuilds a predicate which tests that the value is one of the possible values.
in in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepublic Predicate notIn(T possibleValue1, T possibleValue2)
BasicOperandBuilds a predicate which tests that the value is not one of the possible values.
notIn in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepublic final Predicate in(T possibleValue1, T possibleValue2, T possibleValue3)
BasicOperandBuilds a predicate which tests that the value is one of the possible values.
in in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepossibleValue3 - the third possible valuepublic Predicate notIn(T possibleValue1, T possibleValue2, T possibleValue3)
BasicOperandBuilds a predicate which tests that the value is not one of the possible values.
notIn in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepossibleValue3 - the third possible value@SafeVarargs public final Predicate in(T possibleValue1, T possibleValue2, T possibleValue3, T... morePossibleValues)
BasicOperandBuilds a predicate which tests that the value is one of the possible values.
in in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepossibleValue3 - the third possible valuemorePossibleValues - more possible values@SafeVarargs public final Predicate notIn(T possibleValue1, T possibleValue2, T possibleValue3, T... morePossibleValues)
BasicOperandBuilds a predicate which tests that the value is not one of the possible values.
notIn in interface BasicOperand<T>possibleValue1 - the first possible valuepossibleValue2 - the second possible valuepossibleValue3 - the third possible valuemorePossibleValues - more possible valuespublic final Predicate in(Collection<? extends T> possibleValues)
BasicOperandBuilds a predicate which tests that the value is one of the possible values.
in in interface BasicOperand<T>possibleValues - a collection of possible valuespublic Predicate notIn(Collection<? extends T> possibleValues)
BasicOperandBuilds a predicate which tests that the value is not one of the possible values.
notIn in interface BasicOperand<T>possibleValues - a collection of possible valuespublic final Predicate in(Predicate innerSelectPredicate)
BasicOperandBuilds a predicate which tests that the value is contained in any of the given inner select predicate matches.
in in interface BasicOperand<T>innerSelectPredicate - the inner select predicatepublic final Predicate in(BasicOperand<T> operand, Predicate innerSelectPredicate)
BasicOperandBuilds a predicate which tests that the value of the given operand is contained in any of the given inner select predicate matches.
in in interface BasicOperand<T>operand - the operandinnerSelectPredicate - the inner select predicatepublic final Ordering orderAsc()
BasicOperandBuilds an ordering criterion which sorts by the operand value in ascending order.
orderAsc in interface BasicOperand<T>public final Ordering orderDesc()
BasicOperandBuilds an ordering criterion which sorts by the operand value in descending order.
orderDesc in interface BasicOperand<T>Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.