public abstract class AbstractDomainQuery extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDomainQuery.IntAccess |
| Modifier and Type | Field and Description |
|---|---|
protected QueryExecutor |
queryExecutor |
| Constructor and Description |
|---|
AbstractDomainQuery(IDomainAccess domainAccess) |
| Modifier and Type | Method and Description |
|---|---|
TerminalResult |
BR_CLOSE()
Close a block, encapsulating predicate expressions
|
TerminalResult |
BR_OPEN()
Open a block, encapsulating predicate expressions
|
Collect |
COLLECT(JcProperty attribute)
Collect the specified attribute from all objects in a DomainObjectMatch
|
protected DomainObjectMatch<DomainObject> |
createGenMatchForInternal(List<DomainObject> domainObjects,
String domainObjectTypeName)
Create a match for a list of domain objects which were retrieved by another query.
|
<T> DomainObjectMatch<T> |
createMatchFor(T domainObject)
Create a match for a domain object which was retrieved by another query
|
protected <T> DomainObjectMatch<T> |
createMatchForInternal(List<T> domainObjects,
Class<T> domainObjectType)
Create a match for a list of domain objects which were retrieved by another query
|
<T> DomainObjectMatch<T> |
createMatchFrom(DomainObjectMatch<T> domainObjectMatch)
Create a match from a DomainObjectMatch specified in the context of another query
|
DomainQueryResult |
execute()
Execute the domain query
|
CountQueryResult |
executeCount()
Retrieve the count for every DomainObjectMatch of the query
in order to support pagination
|
RecordedQuery |
getRecordedQuery()
Answer the recorded query.
|
ReplayedQueryContext |
getReplayedQueryContext()
Answer the context containing DomainObjectMatch(es) of a replayed query.
|
<T> DomainObjectMatch<T> |
INTERSECTION(DomainObjectMatch<T>... set)
Build the intersection of the specified sets
|
TerminalResult |
OR()
Or two predicate expressions
|
Order |
ORDER(DomainObjectMatch<?> toOrder)
Define an order on a set of domain objects which are specified by
a DomainObjectMatch in the context of the domain query.
|
Parameter |
parameter(String name)
Get or create, if not exists, a query parameter.
|
<T> Select<T> |
REJECT_FROM(DomainObjectMatch<T> start)
Reject domain objects from a set of domain objects.
|
<T> Select<T> |
SELECT_FROM(DomainObjectMatch<T> start)
Select domain objects out of a set of other domain objects.
|
Traverse |
TRAVERSE_FROM(DomainObjectMatch<?> start)
Start traversing the graph of domain objects.
|
<T> DomainObjectMatch<T> |
UNION(DomainObjectMatch<T>... set)
Build the union of the specified sets
|
BooleanOperation |
WHERE(IPredicateOperand1 value)
Start formulating a predicate expression.
|
protected QueryExecutor queryExecutor
public AbstractDomainQuery(IDomainAccess domainAccess)
public <T> DomainObjectMatch<T> createMatchFrom(DomainObjectMatch<T> domainObjectMatch)
domainObjectMatch - a match specified in the context of another querypublic <T> DomainObjectMatch<T> createMatchFor(T domainObject)
domainObject - a domain object which was retrieved by another queryprotected <T> DomainObjectMatch<T> createMatchForInternal(List<T> domainObjects, Class<T> domainObjectType)
domainObjects - a list of domain objects which were retrieved by another querydomainObjectType - the type of those domain objectsprotected DomainObjectMatch<DomainObject> createGenMatchForInternal(List<DomainObject> domainObjects, String domainObjectTypeName)
domainObjects - a list of domain objects which were retrieved by another querydomainObjectTypeName - the type name of those domain objectspublic Parameter parameter(String name)
name - of the parameterpublic BooleanOperation WHERE(IPredicateOperand1 value)
value - the value(expression) to formulate the predicate expression upon.public TerminalResult OR()
public TerminalResult BR_OPEN()
public TerminalResult BR_CLOSE()
public Order ORDER(DomainObjectMatch<?> toOrder)
toOrder - the DomainObjectMatch
specifying the set of domain objects which should be orderedpublic Traverse TRAVERSE_FROM(DomainObjectMatch<?> start)
start - a DomainObjectMatch form where to start the traversal.public <T> Select<T> SELECT_FROM(DomainObjectMatch<T> start)
start - with a DomainObjectMatch representing the initial set.public <T> Select<T> REJECT_FROM(DomainObjectMatch<T> start)
start - with a DomainObjectMatch representing the initial set.public Collect COLLECT(JcProperty attribute)
attribute - public <T> DomainObjectMatch<T> UNION(DomainObjectMatch<T>... set)
set - public <T> DomainObjectMatch<T> INTERSECTION(DomainObjectMatch<T>... set)
set - public DomainQueryResult execute()
public CountQueryResult executeCount()
public ReplayedQueryContext getReplayedQueryContext()
public RecordedQuery getRecordedQuery()
Copyright © 2016. All rights reserved.