Package | Description |
---|---|
org.apache.openjpa.persistence.query |
OpenJPA Dynamic Query
This package provides dynamic query construction that are similar to weakly-typed Criteria API.
|
Modifier and Type | Class and Description |
---|---|
class |
AndPredicate
Denotes (e1 AND e2) predicate.
|
class |
BetweenExpression
Denotes e1 BETWEEN(e2 AND e3) Expression.
|
class |
EqualExpression
Denotes e1 = e2 Expression.
|
class |
ExistsExpression
Denotes EXISTS(SubQuery) Expression.
|
class |
GreaterEqualExpression
Denotes e1 >= e2 Expression.
|
class |
GreaterThanExpression
Denotes e1 > e2 Expression.
|
class |
InExpression
Denotes e1 IN (e2) Expression.
|
class |
IsEmptyExpression |
class |
IsNullExpression
Denotes e IS NULL Expression.
|
class |
LessEqualExpression
Denotes e1 <= e2 Expression.
|
class |
LessThanExpression
Denotes e1 < e2 Expression.
|
class |
LikeExpression
Denotes e1 LIKE e2 Expression.
|
class |
LogicalPredicate
Logical Predicate combines two predicates with a logical operator.
|
class |
MemberOfExpression
Denotes e1 MEMBER OF e2 Expression.
|
class |
NotEqualExpression
Denotes (e1 !
|
class |
OrPredicate
Denotes (e1 OR e2) predicate.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
LogicalPredicate.and(Predicate predicate) |
Predicate |
Predicate.and(Predicate predicate)
Creates an AND of the predicate with the argument.
|
Predicate |
PredicateOperand.between(Calendar arg1,
Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(Calendar arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(Date arg1,
Date arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(Date arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(Number arg1,
Number arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(Number arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(PredicateOperand arg1,
Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(PredicateOperand arg1,
Date arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(PredicateOperand arg1,
Number arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(PredicateOperand arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(PredicateOperand arg1,
String arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(String arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.between(String arg1,
String arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
PredicateOperand.equal(boolean arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(Calendar arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(Class cls)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(Date arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(Enum<?> e)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(Number arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(PredicateOperand arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
PredicateOperand.equal(String arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
QueryDefinitionImpl.exists() |
Predicate |
AbstractDomainObject.exists()
Adds this path as EXISTS(subquery) to its owning query.
|
Predicate |
QueryDefinition.exists()
Use the query definition instance as a subquery in an exists predicate.
|
Predicate |
PredicateOperand.greaterEqual(Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
PredicateOperand.greaterEqual(Date arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
PredicateOperand.greaterEqual(Number arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
PredicateOperand.greaterEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
PredicateOperand.greaterEqual(String arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
PredicateOperand.greaterThan(Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
PredicateOperand.greaterThan(Date arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
PredicateOperand.greaterThan(Number arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
PredicateOperand.greaterThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
PredicateOperand.greaterThan(String arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
Expression.in(Class... classes)
Create a predicate for testing whether the expression value is a member
of the argument list.
|
Predicate |
Expression.in(Enum<?>... enums)
Create a predicate for testing whether the expression value is a member
of the argument list.
|
Predicate |
Expression.in(Expression... params)
Create a predicate for testing whether the expression value is a member
of the argument list.
|
Predicate |
Expression.in(Number... nums)
Create a predicate for testing whether the expression value is a member
of the argument list.
|
Predicate |
Expression.in(String... strings)
Create a predicate for testing whether the expression value is a member
of the argument list.
|
Predicate |
Expression.in(Subquery subquery)
Create a predicate for testing whether the expression value is a member
of a subquery result.
|
Predicate |
PathExpression.isEmpty()
Add a restriction that the path expression must correspond to an
association or element collection that is empty (has no elements).
|
Predicate |
Expression.isNull()
Create a predicate for testing whether the value of the expression is
null.
|
Predicate |
PredicateOperand.lessEqual(Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
PredicateOperand.lessEqual(Date arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
PredicateOperand.lessEqual(Number arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
PredicateOperand.lessEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
PredicateOperand.lessEqual(String arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
PredicateOperand.lessThan(Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
PredicateOperand.lessThan(Date arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
PredicateOperand.lessThan(Number arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
PredicateOperand.lessThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
PredicateOperand.lessThan(String arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
PredicateOperand.like(PredicateOperand pattern)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
PredicateOperand.like(PredicateOperand pattern,
char escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
PredicateOperand.like(PredicateOperand pattern,
PredicateOperand escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
PredicateOperand.like(String pattern)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Predicate |
PredicateOperand.like(String pattern,
char escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Predicate |
PredicateOperand.like(String pattern,
PredicateOperand escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Predicate |
Expression.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.
|
Predicate |
LogicalPredicate.not() |
Predicate |
Predicate.not()
Creates a negation of the predicate with the argument.
|
Predicate |
PredicateOperand.notEqual(boolean arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(Calendar arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(Class cls)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(Date arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(Enum<?> e)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(Number arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(PredicateOperand arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
PredicateOperand.notEqual(String arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
LogicalPredicate.or(Predicate predicate) |
Predicate |
Predicate.or(Predicate predicate)
Creates an OR of the predicate with the argument.
|
Predicate |
QueryDefinitionImpl.predicate(boolean b) |
Predicate |
AbstractDomainObject.predicate(boolean b) |
Predicate |
QueryDefinition.predicate(boolean b)
Create a predicate value from the given boolean.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
LogicalPredicate.and(Predicate predicate) |
Predicate |
Predicate.and(Predicate predicate)
Creates an AND of the predicate with the argument.
|
void |
QueryDefinitionImpl.fillBuffer(String header,
StringBuilder buffer,
org.apache.openjpa.persistence.query.AliasContext ctx,
Predicate p) |
QueryDefinition |
QueryDefinitionImpl.having(Predicate predicate) |
QueryDefinition |
AbstractDomainObject.having(Predicate predicate) |
QueryDefinition |
QueryDefinition.having(Predicate predicate)
Specify the restrictions over the groups of a query.
|
Predicate |
LogicalPredicate.or(Predicate predicate) |
Predicate |
Predicate.or(Predicate predicate)
Creates an OR of the predicate with the argument.
|
CaseExpression |
CaseExpression.when(Predicate pred)
Add a when predicate clause to a general case expression.
|
CaseExpression |
CaseExpressionImpl.when(Predicate when) |
QueryDefinition |
QueryDefinitionImpl.where(Predicate predicate) |
QueryDefinition |
AbstractDomainObject.where(Predicate predicate) |
QueryDefinition |
QueryDefinition.where(Predicate predicate)
Modifies the query definition to restrict the result of the query
according to the specified predicate.
|
Constructor and Description |
---|
AndPredicate(Predicate p1,
Predicate p2) |
LogicalPredicate(Predicate p1,
ConditionalOperator op,
ConditionalOperator nop,
Predicate p2) |
OrPredicate(Predicate p1,
Predicate p2) |
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.