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 | Interface and Description |
---|---|
interface |
DomainObject
Domain objects define the domain over which a query operates.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDomainObject
Domain Object is a path expression over which query is evaluated.
|
class |
EntryExpression
Denotes ENTRY(e) on a path.
|
class |
FetchPath
Denotes a path used in fetch join.
|
class |
JoinPath
Path resulting by joining from a parent path via an attribute.
|
class |
KeyExpression
Denotes KEY(e) Expression.
|
class |
OperatorPath
A path resulting from KEY() or VALUE() operation on an existing path.
|
class |
RootPath
Denotes root domain instance representing a persistent type.
|
class |
ValueExpression
Denotes VALUE(e) Expression.
|
Modifier and Type | Method and Description |
---|---|
PathExpression |
AbstractDomainObject.get(String attr)
Derives a path from this path by navigating through the given field.
|
PathExpression |
PathExpression.get(String attributeName)
Return a path expression corresponding to the referenced attribute.
|
PathExpression |
AbstractDomainObject.key()
Derives by KEY() operation on this path.
|
PathExpression |
DomainObject.key()
Return a path expression corresponding to the key of a map-valued
association or element collection.
|
PathExpression |
AbstractDomainObject.value()
Derives a path by VALUE() operation on this path.
|
PathExpression |
DomainObject.value()
Return a path expression corresponding to the value of a map-valued
association or element collection.
|
Modifier and Type | Method and Description |
---|---|
DomainObject |
QueryDefinitionImpl.addSubqueryRoot(PathExpression path) |
DomainObject |
AbstractDomainObject.addSubqueryRoot(PathExpression path)
Adding a query root adds a subquery to the owning query.
|
DomainObject |
QueryDefinition.addSubqueryRoot(PathExpression path)
Add a root derived from a domain object of the containing query
definition to a query definition used as a subquery.
|
DomainObject |
QueryBuilder.createSubqueryDefinition(PathExpression path)
Create a query definition object whose root is derived from a domain
object of the containing query.
|
DomainObject |
QueryBuilderImpl.createSubqueryDefinition(PathExpression path)
Creates a QueryDefinition that can be used a correlated subquery
with the given path as domain.
|
QueryDefinition |
QueryDefinitionImpl.groupBy(PathExpression... pathExprs) |
QueryDefinition |
AbstractDomainObject.groupBy(PathExpression... pathExprs) |
QueryDefinition |
QueryDefinition.groupBy(PathExpression... pathExprs)
Specify the items that are used to form groups over the query results.
|
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.
|
Modifier and Type | Method and Description |
---|---|
QueryDefinition |
QueryDefinitionImpl.groupBy(List<PathExpression> pathExprList) |
QueryDefinition |
AbstractDomainObject.groupBy(List<PathExpression> pathExprList) |
QueryDefinition |
QueryDefinition.groupBy(List<PathExpression> pathExprList)
Specify the items that are used to form groups over the query results.
|
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.