Interface PredicateOperand
-
- All Known Subinterfaces:
Aggregate,DomainObject,Expression,PathExpression,QueryDefinition,Subquery
- All Known Implementing Classes:
AbsExpression,AbstractDomainObject,ArrayExpression,AverageExpression,BinaryOperatorExpression,ConcatExpression,CountExpression,CurrentTimeExpression,DistinctExpression,DividedByExpression,ElseExpression,EntryExpression,FetchPath,IndexExpression,JoinPath,KeyExpression,LengthExpression,LiteralExpression,LocateExpression,LowerExpression,MaxExpression,MinExpression,MinusExpression,OperatorPath,ParameterExpression,PlusExpression,QueryDefinitionImpl,RangeExpression,RootPath,SizeExpression,SquareRootExpression,SubStringExpression,SumExpression,TimesExpression,TrimExpression,TypeExpression,UnaryMinusExpression,UpperExpression,ValueExpression,VarArgsExpression
public interface PredicateOperandInterface for constructing where-clause and having-clause conditions. Instances of PredicateOperand are used in constructing predicates passed to the where or having methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Predicatebetween(java.lang.Number arg1, java.lang.Number arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.lang.Number arg1, PredicateOperand arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.lang.String arg1, java.lang.String arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.lang.String arg1, PredicateOperand arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.util.Calendar arg1, java.util.Calendar arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.util.Calendar arg1, PredicateOperand arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.util.Date arg1, java.util.Date arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(java.util.Date arg1, PredicateOperand arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(PredicateOperand arg1, java.lang.Number arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(PredicateOperand arg1, java.lang.String arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(PredicateOperand arg1, java.util.Calendar arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(PredicateOperand arg1, java.util.Date arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicatebetween(PredicateOperand arg1, PredicateOperand arg2)Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Predicateequal(boolean arg)Create a predicate for testing equality with the specified argument.Predicateequal(java.lang.Class cls)Create a predicate for testing equality with the specified argument.Predicateequal(java.lang.Enum<?> e)Create a predicate for testing equality with the specified argument.Predicateequal(java.lang.Number arg)Create a predicate for testing equality with the specified argument.Predicateequal(java.lang.String arg)Create a predicate for testing equality with the specified argument.Predicateequal(java.util.Calendar arg)Create a predicate for testing equality with the specified argument.Predicateequal(java.util.Date arg)Create a predicate for testing equality with the specified argument.Predicateequal(PredicateOperand arg)Create a predicate for testing equality with the specified argument.PredicategreaterEqual(java.lang.Number arg)Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.PredicategreaterEqual(java.lang.String arg)Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.PredicategreaterEqual(java.util.Calendar arg)Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.PredicategreaterEqual(java.util.Date arg)Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.PredicategreaterEqual(PredicateOperand arg)Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.PredicategreaterThan(java.lang.Number arg)Create a predicate for testing whether the PredicateOperand is greater than the argument.PredicategreaterThan(java.lang.String arg)Create a predicate for testing whether the PredicateOperand is greater than the argument.PredicategreaterThan(java.util.Calendar arg)Create a predicate for testing whether the PredicateOperand is greater than the argument.PredicategreaterThan(java.util.Date arg)Create a predicate for testing whether the PredicateOperand is greater than the argument.PredicategreaterThan(PredicateOperand arg)Create a predicate for testing whether the PredicateOperand is greater than the argument.PredicatelessEqual(java.lang.Number arg)Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.PredicatelessEqual(java.lang.String arg)Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.PredicatelessEqual(java.util.Calendar arg)Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.PredicatelessEqual(java.util.Date arg)Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.PredicatelessEqual(PredicateOperand arg)Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.PredicatelessThan(java.lang.Number arg)Create a predicate for testing whether the PredicateOperand is less than the argument.PredicatelessThan(java.lang.String arg)Create a predicate for testing whether the PredicateOperand is less than the argument.PredicatelessThan(java.util.Calendar arg)Create a predicate for testing whether the PredicateOperand is less than the argument.PredicatelessThan(java.util.Date arg)Create a predicate for testing whether the PredicateOperand is less than the argument.PredicatelessThan(PredicateOperand arg)Create a predicate for testing whether the PredicateOperand is less than the argument.Predicatelike(java.lang.String pattern)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Predicatelike(java.lang.String pattern, char escapeChar)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Predicatelike(java.lang.String pattern, PredicateOperand escapeChar)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Predicatelike(PredicateOperand pattern)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Predicatelike(PredicateOperand pattern, char escapeChar)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Predicatelike(PredicateOperand pattern, PredicateOperand escapeChar)Create a predicate for testing whether the PredicateOperand satisfies the given pattern.PredicatenotEqual(boolean arg)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.lang.Class cls)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.lang.Enum<?> e)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.lang.Number arg)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.lang.String arg)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.util.Calendar arg)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(java.util.Date arg)Create a predicate for testing inequality with the specified argument.PredicatenotEqual(PredicateOperand arg)Create a predicate for testing inequality with the specified argument.
-
-
-
Method Detail
-
equal
Predicate equal(PredicateOperand arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
equal
Predicate equal(java.lang.Class cls)
Create a predicate for testing equality with the specified argument.- Parameters:
cls- - entity class- Returns:
- conditional predicate
-
equal
Predicate equal(java.lang.Number arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - numeric- Returns:
- conditional predicate
-
equal
Predicate equal(java.lang.String arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - string value- Returns:
- conditional predicate
-
equal
Predicate equal(boolean arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - boolean value- Returns:
- conditional predicate
-
equal
Predicate equal(java.util.Date arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
equal
Predicate equal(java.util.Calendar arg)
Create a predicate for testing equality with the specified argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
equal
Predicate equal(java.lang.Enum<?> e)
Create a predicate for testing equality with the specified argument.- Parameters:
e- - enum- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(PredicateOperand arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.lang.Class cls)
Create a predicate for testing inequality with the specified argument.- Parameters:
cls- - entity class- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.lang.Number arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - numberic value- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.lang.String arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - string value- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(boolean arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - boolean value- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.util.Date arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.util.Calendar arg)
Create a predicate for testing inequality with the specified argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
notEqual
Predicate notEqual(java.lang.Enum<?> e)
Create a predicate for testing inequality with the specified argument.- Parameters:
e- - enum- Returns:
- conditional predicate
-
greaterThan
Predicate greaterThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
greaterThan
Predicate greaterThan(java.lang.Number arg)
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Parameters:
arg- - numeric- Returns:
- conditional predicate
-
greaterThan
Predicate greaterThan(java.lang.String arg)
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Parameters:
arg- - string- Returns:
- conditional predicate
-
greaterThan
Predicate greaterThan(java.util.Date arg)
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
greaterThan
Predicate greaterThan(java.util.Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
greaterEqual
Predicate greaterEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
greaterEqual
Predicate greaterEqual(java.lang.Number arg)
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Parameters:
arg- - numeric- Returns:
- conditional predicate
-
greaterEqual
Predicate greaterEqual(java.lang.String arg)
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Parameters:
arg- - string- Returns:
- conditional predicate
-
greaterEqual
Predicate greaterEqual(java.util.Date arg)
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
greaterEqual
Predicate greaterEqual(java.util.Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
lessThan
Predicate lessThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than the argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
lessThan
Predicate lessThan(java.lang.Number arg)
Create a predicate for testing whether the PredicateOperand is less than the argument.- Parameters:
arg- - numeric- Returns:
- conditional predicate
-
lessThan
Predicate lessThan(java.lang.String arg)
Create a predicate for testing whether the PredicateOperand is less than the argument.- Parameters:
arg- - string- Returns:
- conditional predicate
-
lessThan
Predicate lessThan(java.util.Date arg)
Create a predicate for testing whether the PredicateOperand is less than the argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
lessThan
Predicate lessThan(java.util.Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than the argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
lessEqual
Predicate lessEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Parameters:
arg- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
lessEqual
Predicate lessEqual(java.lang.Number arg)
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Parameters:
arg- - numeric- Returns:
- conditional predicate
-
lessEqual
Predicate lessEqual(java.lang.String arg)
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Parameters:
arg- - string- Returns:
- conditional predicate
-
lessEqual
Predicate lessEqual(java.util.Date arg)
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Parameters:
arg- - date- Returns:
- conditional predicate
-
lessEqual
Predicate lessEqual(java.util.Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Parameters:
arg- - calendar- Returns:
- conditional predicate
-
between
Predicate between(PredicateOperand arg1, PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - PredicateOperand instance or parameterarg2- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Predicate between(PredicateOperand arg1, java.lang.Number arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - PredicateOperand instance or parameterarg2- - numeric- Returns:
- conditional predicate
-
between
Predicate between(java.lang.Number arg1, PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - numericarg2- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Predicate between(java.lang.Number arg1, java.lang.Number arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - numericarg2- - numeric- Returns:
- conditional predicate
-
between
Predicate between(PredicateOperand arg1, java.lang.String arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - PredicateOperand instance or parameterarg2- - string- Returns:
- conditional predicate
-
between
Predicate between(java.lang.String arg1, PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - stringarg2- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Predicate between(java.lang.String arg1, java.lang.String arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - stringarg2- - string- Returns:
- conditional predicate
-
between
Predicate between(PredicateOperand arg1, java.util.Date arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - PredicateOperand instance or parameterarg2- - date- Returns:
- conditional predicate
-
between
Predicate between(java.util.Date arg1, PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - datearg2- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Predicate between(java.util.Date arg1, java.util.Date arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - datearg2- - date- Returns:
- conditional predicate
-
between
Predicate between(PredicateOperand arg1, java.util.Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - PredicateOperand instance or parameterarg2- - calendar- Returns:
- conditional predicate
-
between
Predicate between(java.util.Calendar arg1, PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - calendararg2- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Predicate between(java.util.Calendar arg1, java.util.Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Parameters:
arg1- - calendararg2- - calendar- Returns:
- conditional predicate
-
like
Predicate like(PredicateOperand pattern)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-- Returns:
- conditional predicate
-
like
Predicate like(PredicateOperand pattern, PredicateOperand escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-escapeChar-- Returns:
- conditional predicate
-
like
Predicate like(PredicateOperand pattern, char escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-escapeChar-- Returns:
- conditional predicate
-
like
Predicate like(java.lang.String pattern)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-- Returns:
- conditional predicate
-
like
Predicate like(java.lang.String pattern, PredicateOperand escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-escapeChar-- Returns:
- conditional predicate
-
like
Predicate like(java.lang.String pattern, char escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Parameters:
pattern-escapeChar-- Returns:
- conditional predicate
-
-