Class AbstractDomainObject
java.lang.Object
org.apache.openjpa.persistence.query.AbstractDomainObject
- All Implemented Interfaces:
Serializable
,DomainObject
,Expression
,OrderByItem
,PathExpression
,PredicateOperand
,QueryDefinition
,SelectItem
,Subquery
,Visitable
- Direct Known Subclasses:
FetchPath
,JoinPath
,OperatorPath
,RootPath
Domain Object is a path expression over which query is evaluated.
Domain object acts as a proxy for a QueryDefinition via delegation.
- Author:
- Pinaki Poddar
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PathOperator
protected final QueryDefinitionImpl
protected final org.apache.openjpa.persistence.query.AbstractPath
protected final Object
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDomainObject
(QueryDefinitionImpl owner, org.apache.openjpa.persistence.query.AbstractPath parent, PathOperator op, Object part2) -
Method Summary
Modifier and TypeMethodDescriptionabs()
Absolute value.Adding a root adds a root domain to the owning query.Adding a query root adds a subquery to the owning query.all()
Derives this path as ALL(subquery) to its owning query.any()
Adds this path as ANY(subquery) to its owning query.asc()
Return an OrderByItem referencing the SelectItem and specifying ascending ordering.asExpression
(org.apache.openjpa.persistence.query.AliasContext ctx) Get a JPQL fragment as used in WHERE clause.asJoinable
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in FROM clause.asProjection
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in SELECT projection.avg()
Specify that the avg operation is to be applied.Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(Number arg1, PredicateOperand arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(String arg1, PredicateOperand arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(Calendar arg1, PredicateOperand arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(Date arg1, PredicateOperand arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(PredicateOperand arg1, Number arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(PredicateOperand arg1, String arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(PredicateOperand arg1, Calendar arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(PredicateOperand arg1, Date arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.between
(PredicateOperand arg1, PredicateOperand arg2) Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.coalesce
(Expression... exp) coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.Concatenate a string with other string(s).concat
(Expression... exprs) Concatenate a string with other string(s).count()
Specify that the count operation is to be applied.Create an Expression corresponding to the current date on the database server at the time of query execution.Create an Expression corresponding to the current time on the database server at the time of query execution.Create an Expression corresponding to the current timestamp on the database server at the time of query execution.desc()
Return an OrderByItem referencing the SelectItem and specifying descending ordering.Division.dividedBy
(Expression expr) Division.entry()
Derives by ENTRY() operation on this path.equal
(boolean arg) Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.Create a predicate for testing equality with the specified argument.equal
(PredicateOperand arg) Create a predicate for testing equality with the specified argument.exists()
Adds this path as EXISTS(subquery) to its owning query.Create an empty general case expression.Derives a path from this path by navigating through the given field.getAliasHint
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the hint to be used while creating alias.Gets the last segment of this path.Gets operator that derived this receiver from its parent.org.apache.openjpa.persistence.query.AbstractPath
Gets the parent from which this receiver has been derived.greaterEqual
(Number arg) Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.greaterEqual
(String arg) Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.greaterEqual
(Calendar arg) Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.greaterEqual
(Date arg) Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.greaterThan
(Number arg) Create a predicate for testing whether the PredicateOperand is greater than the argument.greaterThan
(String arg) Create a predicate for testing whether the PredicateOperand is greater than the argument.greaterThan
(Calendar arg) Create a predicate for testing whether the PredicateOperand is greater than the argument.greaterThan
(Date arg) Create a predicate for testing whether the PredicateOperand is greater than the argument.Create a predicate for testing whether the PredicateOperand is greater than the argument.groupBy
(List<PathExpression> pathExprList) Specify the items that are used to form groups over the query results.groupBy
(PathExpression... pathExprs) Specify the items that are used to form groups over the query results.Specify the restrictions over the groups of a query.Create a predicate for testing whether the expression value is a member of the argument list.Create a predicate for testing whether the expression value is a member of the argument list.Create a predicate for testing whether the expression value is a member of the argument list.Create a predicate for testing whether the expression value is a member of the argument list.in
(Expression... params) Create a predicate for testing whether the expression value is a member of the argument list.Create a predicate for testing whether the expression value is a member of a subquery result.index()
Derives by INDEX() operation on this path.isEmpty()
Add a restriction that the path expression must correspond to an association or element collection that is empty (has no elements).isNull()
Create a predicate for testing whether the value of the expression is null.Derives a path from this path by joining the given field.Derives a path from this path by fetch joining the given field.key()
Derives by KEY() operation on this path.Derives a path from this path by outer joining the given field.leftJoinFetch
(String attr) Derives a path from this path by fetch joining the given field.length()
String length This method must be invoked on an expression corresponding to a string.Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.Create a predicate for testing whether the PredicateOperand is less than the argument.Create a predicate for testing whether the PredicateOperand is less than the argument.Create a predicate for testing whether the PredicateOperand is less than the argument.Create a predicate for testing whether the PredicateOperand is less than the argument.lessThan
(PredicateOperand arg) Create a predicate for testing whether the PredicateOperand is less than the argument.Create a predicate for testing whether the PredicateOperand satisfies the given pattern.Create a predicate for testing whether the PredicateOperand satisfies the given pattern.like
(String pattern, PredicateOperand escapeChar) Create a predicate for testing whether the PredicateOperand satisfies the given pattern.like
(PredicateOperand pattern) Create a predicate for testing whether the PredicateOperand satisfies the given pattern.like
(PredicateOperand pattern, char escapeChar) Create a predicate for testing whether the PredicateOperand satisfies the given pattern.like
(PredicateOperand pattern, PredicateOperand escChar) Create a predicate for testing whether the PredicateOperand satisfies the given pattern.literal
(boolean b) Create an Expression corresponding to a boolean value.literal
(char c) Create an Expression corresponding to a character value.Create an Expression corresponding to an entity class.Create an Expression corresponding to an enum.Create an Expression corresponding to a numeric value.Create an Expression corresponding to a String value.Create an Expression corresponding to a Calendar value.Create an Expression corresponding to a Date value.Locate a string contained within the string corresponding to the expression on which the method was invoked.Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position.locate
(String str, Expression position) Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position.locate
(Expression expr) Locate a string contained within the string corresponding to the expression on which the method was invoked.locate
(Expression str, int position) Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position.locate
(Expression str, Expression position) Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position.lower()
Convert string to lowercase.max()
Specify that the max operation is to be applied.member
(PathExpression arg) Create a predicate for testing whether the expression is a member of the association or element collection denoted by the path expression.min()
Specify that the min operation is to be applied.minus()
Unary minus.Subtraction.minus
(Expression expr) Subtraction.mod
(int num) Modulo operation.mod
(Expression expr) Modulo operation.newInstance
(Class cls, SelectItem... args) Specify that a constructor for the given class is to be applied to the corresponding query results after the query is executed.notEqual
(boolean arg) Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.Create a predicate for testing inequality with the specified argument.notEqual
(PredicateOperand arg) Create a predicate for testing inequality with the specified argument.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.nullif
(Expression exp1, Expression exp2) nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.Create an Expression corresponding to a null value.orderBy
(List<OrderByItem> orderByItemList) Specify the items of the select list that are used in ordering the query results.orderBy
(OrderByItem... orderByItems) Specify the items of the select list that are used in ordering the query results.Specify use of a parameter of the given name.Addition.plus
(Expression expr) Addition.predicate
(boolean b) Create a predicate value from the given boolean.select
(List<SelectItem> selectItemList) Specify the objects / values to be returned.select
(SelectItem... selectItems) Specify the objects / values to be returned.selectDistinct
(List<SelectItem> selectItemList) Specify the objects / values to be returned.selectDistinct
(SelectItem... selectItems) Specify the objects / values to be returned.simpleCase
(Class caseOperand) Create a simple case expression with the given case operand.simpleCase
(Enum<?> caseOperand) Create a simple case expression with the given case operand.simpleCase
(Number caseOperand) Create a simple case expression with the given case operand.simpleCase
(String caseOperand) Create a simple case expression with the given case operand.simpleCase
(Calendar caseOperand) Create a simple case expression with the given case operand.simpleCase
(Date caseOperand) Create a simple case expression with the given case operand.simpleCase
(Expression caseOperand) Create a simple case expression with the given case operand.size()
Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression.some()
Adds this path as SOME(subquery) to its owning query.sqrt()
Square root.substring
(int start) Extract a substring starting at specified position through to the end of the string.substring
(int start, int len) Extract a substring.substring
(int start, Expression len) Extract a substring.substring
(Expression start) Extract a substring starting at specified position through to the end of the string.substring
(Expression start, int len) Extract a substring.substring
(Expression start, Expression len) Extract a substring.sum()
Specify that the sum operation is to be applied.Multiplication.times
(Expression expr) Multiplication.trim()
Trim leading and trailing blanks.trim
(char c) Trim leading and trailing occurrences of character from the string.Trim occurrences of the character from leading or trailing (or both) positions of the string, as specified by trim spec.trim
(Expression expr) Trim leading and trailing occurrences of character specified by the expression argument from the string.trim
(Expression expr, TrimSpec spec) Trim occurrences of the character specified by the expression argument from leading or trailing (or both) positions of the string, as specified by trim spec.Trim leading, trailing blanks (or both) as specified by trim spec.type()
Return an expression that corresponds to the type of the entity.upper()
Convert string to uppercase.value()
Derives a path by VALUE() operation on this path.Modifies the query definition to restrict the result of the query according to the specified predicate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.openjpa.persistence.query.Expression
abs, concat, concat, dividedBy, dividedBy, in, in, in, in, in, in, isNull, length, locate, locate, locate, locate, locate, locate, lower, member, minus, minus, minus, mod, mod, plus, plus, sqrt, substring, substring, substring, substring, substring, substring, times, times, trim, trim, trim, trim, trim, trim, upper
Methods inherited from interface org.apache.openjpa.persistence.query.PathExpression
avg, count, isEmpty, max, min, size, sum, type
Methods inherited from interface org.apache.openjpa.persistence.query.PredicateOperand
between, between, between, between, between, between, between, between, between, between, between, between, between, equal, equal, equal, equal, equal, equal, equal, equal, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessThan, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, like, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual
Methods inherited from interface org.apache.openjpa.persistence.query.SelectItem
asc, desc
Methods inherited from interface org.apache.openjpa.persistence.query.Visitable
asExpression, asJoinable, asProjection
-
Field Details
-
_parent
protected final org.apache.openjpa.persistence.query.AbstractPath _parent -
_part2
-
_operator
-
_owner
-
SPACE
- See Also:
-
OPEN_BRACE
- See Also:
-
CLOSE_BRACE
- See Also:
-
COMMA
- See Also:
-
EMPTY
- See Also:
-
-
Constructor Details
-
AbstractDomainObject
protected AbstractDomainObject(QueryDefinitionImpl owner, org.apache.openjpa.persistence.query.AbstractPath parent, PathOperator op, Object part2)
-
-
Method Details
-
addRoot
Adding a root adds a root domain to the owning query.- Specified by:
addRoot
in interfaceQueryDefinition
- Parameters:
cls
- - an entity class- Returns:
- DomainObject corresponding to the specified entity class.
-
addSubqueryRoot
Adding a query root adds a subquery to the owning query.- Specified by:
addSubqueryRoot
in interfaceQueryDefinition
- Parameters:
path
- - path expression corresponding to the domain object used to derive the subquery root.- Returns:
- the subquery DomainObject
-
get
Derives a path from this path by navigating through the given field.- Specified by:
get
in interfacePathExpression
- Parameters:
attr
- - name of the referenced attribute- Returns:
- path expression
-
join
Derives a path from this path by joining the given field. Also the joined path becomes a domain of the owning query.- Specified by:
join
in interfaceDomainObject
- Parameters:
attr
- - name of the attribute that references the target of the join- Returns:
- the new DomainObject that is added for the target of the join
-
leftJoin
Derives a path from this path by outer joining the given field. Also the joined path becomes a domain of the owning query.- Specified by:
leftJoin
in interfaceDomainObject
- Parameters:
attr
- - name of the attribute that references the target of the join- Returns:
- the new DomainObject that is added for the target of the join
-
joinFetch
Derives a path from this path by fetch joining the given field.- Specified by:
joinFetch
in interfaceDomainObject
- Parameters:
attr
- - name of the attribute that references the target of the join- Returns:
- the FetchJoinObject that is added for the target of the join
-
leftJoinFetch
Derives a path from this path by fetch joining the given field.- Specified by:
leftJoinFetch
in interfaceDomainObject
- Parameters:
attr
- - name of the attribute that references the target of the join- Returns:
- the FetchJoinObject that is added for the target of the join
-
key
Derives by KEY() operation on this path.- Specified by:
key
in interfaceDomainObject
- Returns:
- PathExpression corresponding to the map key
-
entry
Derives by ENTRY() operation on this path.- Specified by:
entry
in interfaceDomainObject
- Returns:
- SelectItem corresponding to the map entry
-
index
Derives by INDEX() operation on this path.- Specified by:
index
in interfaceDomainObject
- Returns:
- Expression denoting the index
-
value
Derives a path by VALUE() operation on this path.- Specified by:
value
in interfaceDomainObject
- Returns:
- PathExpression corresponding to the map value
-
all
Derives this path as ALL(subquery) to its owning query.- Specified by:
all
in interfaceQueryDefinition
- Returns:
- the resulting Subquery
-
any
Adds this path as ANY(subquery) to its owning query.- Specified by:
any
in interfaceQueryDefinition
- Returns:
- the resulting Subquery
-
some
Adds this path as SOME(subquery) to its owning query.- Specified by:
some
in interfaceQueryDefinition
- Returns:
- the resulting Subquery
-
exists
Adds this path as EXISTS(subquery) to its owning query.- Specified by:
exists
in interfaceQueryDefinition
- Returns:
- the resulting predicate
-
coalesce
Description copied from interface:QueryDefinition
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.- Specified by:
coalesce
in interfaceQueryDefinition
- Parameters:
exp
- - expressions to be used for testing against null- Returns:
- Expression corresponding to the given coalesce expression
-
coalesce
Description copied from interface:QueryDefinition
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.- Specified by:
coalesce
in interfaceQueryDefinition
- Parameters:
exp
- - expressions to be used for testing against null- Returns:
- Expression corresponding to the given coalesce expression
-
coalesce
Description copied from interface:QueryDefinition
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.- Specified by:
coalesce
in interfaceQueryDefinition
- Parameters:
exp
- - expressions to be used for testing against null- Returns:
- Expression corresponding to the given coalesce expression
-
coalesce
Description copied from interface:QueryDefinition
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.- Specified by:
coalesce
in interfaceQueryDefinition
- Parameters:
exp
- - expressions to be used for testing against null- Returns:
- Expression corresponding to the given coalesce expression
-
currentDate
Description copied from interface:QueryDefinition
Create an Expression corresponding to the current date on the database server at the time of query execution.- Specified by:
currentDate
in interfaceQueryDefinition
- Returns:
- the corresponding Expression
-
currentTime
Description copied from interface:QueryDefinition
Create an Expression corresponding to the current time on the database server at the time of query execution.- Specified by:
currentTime
in interfaceQueryDefinition
- Returns:
- the corresponding Expression
-
currentTimestamp
Description copied from interface:QueryDefinition
Create an Expression corresponding to the current timestamp on the database server at the time of query execution.- Specified by:
currentTimestamp
in interfaceQueryDefinition
- Returns:
- the corresponding Expression
-
generalCase
Description copied from interface:QueryDefinition
Create an empty general case expression. A general case expression is of the form: generalCase() .when(conditional-predicate).then(scalar-expression) .when(conditional-predicate).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
generalCase
in interfaceQueryDefinition
- Returns:
- empty general case expression
-
groupBy
Description copied from interface:QueryDefinition
Specify the items that are used to form groups over the query results. Replaces the previous group-by list, if any.- Specified by:
groupBy
in interfaceQueryDefinition
- Returns:
- the modified QueryDefinition instance
-
groupBy
Description copied from interface:QueryDefinition
Specify the items that are used to form groups over the query results. Replaces the previous group-by list, if any.- Specified by:
groupBy
in interfaceQueryDefinition
- Returns:
- the modified QueryDefinition instance
-
having
Description copied from interface:QueryDefinition
Specify the restrictions over the groups of a query. Replaces the previous having restriction(s), if any.- Specified by:
having
in interfaceQueryDefinition
- Returns:
- the modified QueryDefinition Instance
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a String value.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
s
- - string value- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a numeric value.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
n
- - numeric value- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a boolean value.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
b
- - boolean value- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a Calendar value.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
c
- - Calendar value- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a Date value.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
d
- - Date value- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to a character value.- Specified by:
literal
in interfaceQueryDefinition
- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to an entity class.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
cls
- - entity class- Returns:
- the corresponding Expression literal
-
literal
Description copied from interface:QueryDefinition
Create an Expression corresponding to an enum.- Specified by:
literal
in interfaceQueryDefinition
- Parameters:
e
- - enum- Returns:
- the corresponding Expression literal
-
newInstance
Description copied from interface:QueryDefinition
Specify that a constructor for the given class is to be applied to the corresponding query results after the query is executed. The class must have a constructor that accepts the Java argument types corresponding to the given select items.- Specified by:
newInstance
in interfaceQueryDefinition
- Parameters:
cls
- - a class with the correponding constructorargs
- - select items that correspond to result types that are valid as arguments to the constructor
-
nullLiteral
Description copied from interface:QueryDefinition
Create an Expression corresponding to a null value.- Specified by:
nullLiteral
in interfaceQueryDefinition
- Returns:
- the corresponding Expression literal
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
arg2
- Criteria API Java Persistence 2.0, Public Review Draft Criteria API Interfaces 10/31/08 158 JSR-317 Public Review Draft Sun Microsystems, Inc.- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
nullif
Description copied from interface:QueryDefinition
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullif
in interfaceQueryDefinition
- Returns:
- Expression corresponding to the given nullif expression
-
orderBy
Description copied from interface:QueryDefinition
Specify the items of the select list that are used in ordering the query results. Replaces the previous order-by list, if any.- Specified by:
orderBy
in interfaceQueryDefinition
- Parameters:
orderByItems
- - one or more OrderByItem instances- Returns:
- the modified QueryDefinition instance
-
orderBy
Description copied from interface:QueryDefinition
Specify the items of the select list that are used in ordering the query results. Replaces the previous order-by list, if any.- Specified by:
orderBy
in interfaceQueryDefinition
- Parameters:
orderByItemList
- - a list containing one or more OrderByItem instances- Returns:
- the modified QueryDefinition instance
-
param
Description copied from interface:QueryDefinition
Specify use of a parameter of the given name.- Specified by:
param
in interfaceQueryDefinition
- Returns:
- an Expression corresponding to a named parameter
-
predicate
Description copied from interface:QueryDefinition
Create a predicate value from the given boolean.- Specified by:
predicate
in interfaceQueryDefinition
- Parameters:
b
- boolean value- Returns:
- a true or false predicate
-
select
Description copied from interface:QueryDefinition
Specify the objects / values to be returned. Replaces the previous select list, if any. If no select items are specified and there is only one query root, the root entity is assumed to be the result.- Specified by:
select
in interfaceQueryDefinition
- Parameters:
selectItems
- - one or more SelectItem instances- Returns:
- the modified query definition instance
-
select
Description copied from interface:QueryDefinition
Specify the objects / values to be returned. Replaces the previous select list, if any. If no select items are specified and there is only one query root, the root entity is assumed to be the result.- Specified by:
select
in interfaceQueryDefinition
- Parameters:
selectItemList
- - a list containing one or more SelectItem instances- Returns:
- the modified query definition instance
-
selectDistinct
Description copied from interface:QueryDefinition
Specify the objects / values to be returned. Duplicate results will be eliminated. Replaces the previous select list, if any. If no select items are specified and there is only one query root, the root entity is assumed to be the result.- Specified by:
selectDistinct
in interfaceQueryDefinition
- Parameters:
selectItems
- - one or more SelectItem instances- Returns:
- the modified query definition instance
-
selectDistinct
Description copied from interface:QueryDefinition
Specify the objects / values to be returned. Duplicate results will be eliminated. Replaces the previous select list, if any. If no select items are specified, and there is only one query root, the root entity is assumed to be the result. is assumed to be the result.- Specified by:
selectDistinct
in interfaceQueryDefinition
- Parameters:
selectItemList
- - a list containing one or more SelectItem instances- Returns:
- the modified query definition instance
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - expression used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - numeric value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
simpleCase
Description copied from interface:QueryDefinition
Create a simple case expression with the given case operand. A simple case expression is of the form: simpleCase(case-operand) .when(scalar-expression).then(scalar-expression) .when(scalar-expression).then(scalar-expression) ... .elseCase(scalar-expression)- Specified by:
simpleCase
in interfaceQueryDefinition
- Parameters:
caseOperand
- - value used for testing against the when scalar expressions- Returns:
- case expression with the given case operand
-
where
Description copied from interface:QueryDefinition
Modifies the query definition to restrict the result of the query according to the specified predicate. Replaces the previously added restriction(s), if any.- Specified by:
where
in interfaceQueryDefinition
- Parameters:
predicate
- - a simple or compound conditional predicate- Returns:
- the modified QueryDefinition instance
-
getParent
public org.apache.openjpa.persistence.query.AbstractPath getParent()Gets the parent from which this receiver has been derived. Can be null for a root path. -
getOperator
Gets operator that derived this receiver from its parent. -
getLastSegment
Gets the last segment of this path. Concrete implementation should return a covariant type. -
avg
Description copied from interface:PathExpression
Specify that the avg operation is to be applied. The path expression must correspond to an attribute of a numeric type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.- Specified by:
avg
in interfacePathExpression
- Returns:
- the resulting aggregate
-
count
Description copied from interface:PathExpression
Specify that the count operation is to be applied. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.- Specified by:
count
in interfacePathExpression
- Returns:
- the resulting aggregate
-
isEmpty
Description copied from interface:PathExpression
Add a restriction that the path expression must correspond to an association or element collection that is empty (has no elements). This method can only be invoked on a path expression that corresponds to a multi-valued association or to an element collection.- Specified by:
isEmpty
in interfacePathExpression
- Returns:
- predicate corresponding to the restriction
-
max
Description copied from interface:PathExpression
Specify that the max operation is to be applied. The path expression must correspond to an attribute of an orderable type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.- Specified by:
max
in interfacePathExpression
- Returns:
- the resulting aggregate
-
min
Description copied from interface:PathExpression
Specify that the min operation is to be applied. The path expression must correspond to an attribute of an orderable type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.- Specified by:
min
in interfacePathExpression
- Returns:
- the resulting aggregate
-
size
Description copied from interface:PathExpression
Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression. This method can only be invoked on a path expression that corresponds to a multi-valued association or to an element collection.- Specified by:
size
in interfacePathExpression
- Returns:
- expression denoting the size
-
sum
Description copied from interface:PathExpression
Specify that the sum operation is to be applied. The path expression must correspond to an attribute of a numeric type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.- Specified by:
sum
in interfacePathExpression
- Returns:
- the resulting aggregate
-
type
Description copied from interface:PathExpression
Return an expression that corresponds to the type of the entity. This method can only be invoked on a path expression corresponding to an entity. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association.- Specified by:
type
in interfacePathExpression
- Returns:
- expression denoting the entity's type
-
abs
Description copied from interface:Expression
Absolute value. This method must be invoked on an expression corresponding to a number.- Specified by:
abs
in interfaceExpression
- Returns:
- expression corresponding to the absolute value
-
concat
Description copied from interface:Expression
Concatenate a string with other string(s). This method must be invoked on an expression corresponding to a string.- Specified by:
concat
in interfaceExpression
- Parameters:
str
- - string(s)- Returns:
- expression denoting the concatenation of the strings, starting with the string corresponding to the expression on which the method was invoked.
-
concat
Description copied from interface:Expression
Concatenate a string with other string(s). This method must be invoked on an expression corresponding to a string.- Specified by:
concat
in interfaceExpression
- Parameters:
exprs
- - expression(s) corresponding to string(s)- Returns:
- expression denoting the concatenation of the strings, starting with the string corresponding to the expression on which the method was invoked.
-
dividedBy
Description copied from interface:Expression
Division. This method must be invoked on an expression corresponding to a number.- Specified by:
dividedBy
in interfaceExpression
- Parameters:
num
- - divisor- Returns:
- expression denoting the result of dividing the number corresponding to the expression on which the method was invoked by the argument
-
dividedBy
Description copied from interface:Expression
Division. This method must be invoked on an expression corresponding to a number.- Specified by:
dividedBy
in interfaceExpression
- Parameters:
expr
- - expression corresponding to the divisor- Returns:
- expression denoting the result of dividing the number corresponding to the expression on which the method was invoked by the number denoted by the argument
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of the argument list.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of the argument list.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of the argument list.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of the argument list.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of the argument list.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
in
Description copied from interface:Expression
Create a predicate for testing whether the expression value is a member of a subquery result.- Specified by:
in
in interfaceExpression
- Returns:
- conditional predicate
-
isNull
Description copied from interface:Expression
Create a predicate for testing whether the value of the expression is null.- Specified by:
isNull
in interfaceExpression
- Returns:
- conditional predicate
-
length
Description copied from interface:Expression
String length This method must be invoked on an expression corresponding to a string.- Specified by:
length
in interfaceExpression
- Returns:
- expression denoting the length of the string.
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked. The search is started at position 1 (first string position). This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
str
- - string to be located- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked. The search is started at position 1 (first string position). This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
expr
- - expression corresponding to the string to be located- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
str
- - string to be locatedposition
- - position at which to start the search- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
str
- - string to be locatedposition
- - expression corresponding to position at which to start the search- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
str
- - expression corresponding to the string to be locatedposition
- - position at which to start the search- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
locate
Description copied from interface:Expression
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. This method must be invoked on an expression corresponding to a string.- Specified by:
locate
in interfaceExpression
- Parameters:
str
- - expression corresponding to the string to be locatedposition
- - expression corresponding to position at which to start the search- Returns:
- expression denoting the first position at which the string was found or expression denoting 0 if the string was not found
-
lower
Description copied from interface:Expression
Convert string to lowercase. This method must be invoked on an expression corresponding to a string.- Specified by:
lower
in interfaceExpression
- Returns:
- expression denoting the string in lowercase
-
member
Description copied from interface:Expression
Create a predicate for testing whether the expression is a member of the association or element collection denoted by the path expression. The argument must correspond to a collection-valued association or element collection of like type.- Specified by:
member
in interfaceExpression
- Parameters:
arg
- - a path expression that specifies a collection-valued association or an element collection- Returns:
- conditional predicate
-
minus
Description copied from interface:Expression
Unary minus. This method must be invoked on an expression corresponding to a number.- Specified by:
minus
in interfaceExpression
- Returns:
- expression denoting the unary minus of the expression
-
minus
Description copied from interface:Expression
Subtraction. This method must be invoked on an expression corresponding to a number.- Specified by:
minus
in interfaceExpression
- Parameters:
num
- - subtrahend- Returns:
- expression denoting the result of subtracting the argument from the number corresponding to the expression on which the method was invoked.
-
minus
Description copied from interface:Expression
Subtraction. This method must be invoked on an expression corresponding to a number.- Specified by:
minus
in interfaceExpression
- Parameters:
expr
- - expression corresponding to subtrahend- Returns:
- expression denoting the result of subtracting the number denoted by the argument from the number corresponding to the expression on which the method was invoked.
-
mod
Description copied from interface:Expression
Modulo operation. This must be invoked on an expression corresponding to an integer value- Specified by:
mod
in interfaceExpression
- Parameters:
num
- - integer divisor- Returns:
- expression corresponding to the integer remainder of the division of the integer corresponding to the expression on which the method was invoked by the argument.
-
mod
Description copied from interface:Expression
Modulo operation. This must be invoked on an expression corresponding to an integer value- Specified by:
mod
in interfaceExpression
- Parameters:
expr
- - expression corresponding to integer divisor- Returns:
- expression corresponding to the integer remainder of the division of the integer corresponding to the expression on which the method was invoked by the argument.
-
plus
Description copied from interface:Expression
Addition. This method must be invoked on an expression corresponding to a number.- Specified by:
plus
in interfaceExpression
- Parameters:
num
- - number to be added- Returns:
- expression denoting the sum
-
plus
Description copied from interface:Expression
Addition. This method must be invoked on an expression corresponding to a number.- Specified by:
plus
in interfaceExpression
- Parameters:
expr
- - expression corresponding to number to be added- Returns:
- expression denoting the sum
-
sqrt
Description copied from interface:Expression
Square root. This method must be invoked on an expression corresponding to a number.- Specified by:
sqrt
in interfaceExpression
- Returns:
- expression corresponding to the square root
-
substring
Description copied from interface:Expression
Extract a substring starting at specified position through to the end of the string. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - start position (1 indicates first position)- Returns:
- expression denoting the extracted substring
-
substring
Description copied from interface:Expression
Extract a substring starting at specified position through to the end of the string. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - expression denoting start position (1 indicates first position)- Returns:
- expression denoting the extracted substring
-
substring
Description copied from interface:Expression
Extract a substring. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - start position (1 indicates first position)len
- - length of the substring to be returned- Returns:
- expression denoting the extracted substring
-
substring
Description copied from interface:Expression
Extract a substring. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - start position (1 indicates first position)len
- - expression denoting length of the substring to return- Returns:
- expression denoting the extracted substring
-
substring
Description copied from interface:Expression
Extract a substring. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - expression denoting start position (1 indicates first position)len
- - length of the substring to return- Returns:
- expression denoting the extracted substring
-
substring
Description copied from interface:Expression
Extract a substring. This method must be invoked on an expression corresponding to a string.- Specified by:
substring
in interfaceExpression
- Parameters:
start
- - expression denoting start position (1 indicates first position)len
- - expression denoting length of the substring to return- Returns:
- expression denoting the extracted substring
-
times
Description copied from interface:Expression
Multiplication. This method must be invoked on an expression corresponding to a number.- Specified by:
times
in interfaceExpression
- Parameters:
num
- - multiplier- Returns:
- expression denoting the result of multiplying the argument with the number corresponding to the expression on which the method was invoked.
-
times
Description copied from interface:Expression
Multiplication. This method must be invoked on an expression corresponding to a number.- Specified by:
times
in interfaceExpression
- Parameters:
expr
- - expression corresponding to the multiplier- Returns:
- expression denoting the result of multiplying the number denoted by the argument with the number corresponding to the expression on which the method was invoked.
-
trim
Description copied from interface:Expression
Trim leading and trailing blanks. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Returns:
- expression denoting trimmed string
-
trim
Description copied from interface:Expression
Trim leading, trailing blanks (or both) as specified by trim spec. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Parameters:
spec
- - trim specification- Returns:
- expression denoting trimmed string
-
trim
Description copied from interface:Expression
Trim leading and trailing occurrences of character from the string. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Parameters:
c
- - character to be trimmed- Returns:
- expression denoting trimmed string
-
trim
Description copied from interface:Expression
Trim occurrences of the character from leading or trailing (or both) positions of the string, as specified by trim spec. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Parameters:
c
- - character to be trimmedspec
- - trim specification- Returns:
- expression denoting trimmed string
-
trim
Description copied from interface:Expression
Trim leading and trailing occurrences of character specified by the expression argument from the string. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Parameters:
expr
- - expression corresponding to the character to be trimmed- Returns:
- expression denoting trimmed string
-
trim
Description copied from interface:Expression
Trim occurrences of the character specified by the expression argument from leading or trailing (or both) positions of the string, as specified by trim spec. This method must be invoked on an expression corresponding to a string.- Specified by:
trim
in interfaceExpression
- Parameters:
expr
- - expression corresponding to the character to be trimmedspec
- - trim specification- Returns:
- expression denoting trimmed string
-
upper
Description copied from interface:Expression
Convert string to uppercase. This method must be invoked on an expression corresponding to a string.- Specified by:
upper
in interfaceExpression
- Returns:
- expression denoting the string in uppercase
-
asc
Description copied from interface:SelectItem
Return an OrderByItem referencing the SelectItem and specifying ascending ordering. The SelectItem must correspond to an orderable value.- Specified by:
asc
in interfaceSelectItem
- Returns:
- order-by item
-
desc
Description copied from interface:SelectItem
Return an OrderByItem referencing the SelectItem and specifying descending ordering. The SelectItem must correspond to an orderable value.- Specified by:
desc
in interfaceSelectItem
- Returns:
- order-by item
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - PredicateOperand instance or parameterarg2
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - PredicateOperand instance or parameterarg2
- - numeric- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - numericarg2
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - numericarg2
- - numeric- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - PredicateOperand instance or parameterarg2
- - string- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - stringarg2
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - stringarg2
- - string- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - PredicateOperand instance or parameterarg2
- - date- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - datearg2
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - datearg2
- - date- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - PredicateOperand instance or parameterarg2
- - calendar- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - calendararg2
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
between
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand lies between (inclusive) the two arguments.- Specified by:
between
in interfacePredicateOperand
- Parameters:
arg1
- - calendararg2
- - calendar- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
cls
- - entity class- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - numeric- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - string value- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - boolean value- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
equal
Description copied from interface:PredicateOperand
Create a predicate for testing equality with the specified argument.- Specified by:
equal
in interfacePredicateOperand
- Parameters:
e
- - enum- Returns:
- conditional predicate
-
greaterEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Specified by:
greaterEqual
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
greaterEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Specified by:
greaterEqual
in interfacePredicateOperand
- Parameters:
arg
- - numeric- Returns:
- conditional predicate
-
greaterEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Specified by:
greaterEqual
in interfacePredicateOperand
- Parameters:
arg
- - string- Returns:
- conditional predicate
-
greaterEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Specified by:
greaterEqual
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
greaterEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than or equal to the argument.- Specified by:
greaterEqual
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
greaterThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Specified by:
greaterThan
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
greaterThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Specified by:
greaterThan
in interfacePredicateOperand
- Parameters:
arg
- - numeric- Returns:
- conditional predicate
-
greaterThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Specified by:
greaterThan
in interfacePredicateOperand
- Parameters:
arg
- - string- Returns:
- conditional predicate
-
greaterThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Specified by:
greaterThan
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
greaterThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is greater than the argument.- Specified by:
greaterThan
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
lessEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Specified by:
lessEqual
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
lessEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Specified by:
lessEqual
in interfacePredicateOperand
- Parameters:
arg
- - numeric- Returns:
- conditional predicate
-
lessEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Specified by:
lessEqual
in interfacePredicateOperand
- Parameters:
arg
- - string- Returns:
- conditional predicate
-
lessEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Specified by:
lessEqual
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
lessEqual
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than or equal to the argument.- Specified by:
lessEqual
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
lessThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than the argument.- Specified by:
lessThan
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
lessThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than the argument.- Specified by:
lessThan
in interfacePredicateOperand
- Parameters:
arg
- - numeric- Returns:
- conditional predicate
-
lessThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than the argument.- Specified by:
lessThan
in interfacePredicateOperand
- Parameters:
arg
- - string- Returns:
- conditional predicate
-
lessThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than the argument.- Specified by:
lessThan
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
lessThan
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand is less than the argument.- Specified by:
lessThan
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
like
Description copied from interface:PredicateOperand
Create a predicate for testing whether the PredicateOperand satisfies the given pattern.- Specified by:
like
in interfacePredicateOperand
- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - PredicateOperand instance or parameter- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
cls
- - entity class- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - numberic value- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - string value- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - boolean value- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - date- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
arg
- - calendar- Returns:
- conditional predicate
-
notEqual
Description copied from interface:PredicateOperand
Create a predicate for testing inequality with the specified argument.- Specified by:
notEqual
in interfacePredicateOperand
- Parameters:
e
- - enum- Returns:
- conditional predicate
-
getAliasHint
Description copied from interface:Visitable
Gets the hint to be used while creating alias.- Specified by:
getAliasHint
in interfaceVisitable
-
asExpression
Description copied from interface:Visitable
Get a JPQL fragment as used in WHERE clause.- Specified by:
asExpression
in interfaceVisitable
-
asProjection
Description copied from interface:Visitable
Gets the string representation in SELECT projection.- Specified by:
asProjection
in interfaceVisitable
-
asJoinable
Description copied from interface:Visitable
Gets the string representation in FROM clause.- Specified by:
asJoinable
in interfaceVisitable
-