|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jpox.store.query.ResultExpressionsQueryable
Result expressions to be returned by the query. The results might be fields of persistent instances, instances of classes other than the candidate class, or aggregates of fields.
| Field Summary | |
protected static Localiser |
LOCALISER
|
| Constructor Summary | |
ResultExpressionsQueryable(PersistenceManager pm,
java.lang.Class candidateClass,
boolean subclasses)
Constructor. |
|
ResultExpressionsQueryable(PersistenceManager pm,
java.lang.Class candidateClass,
java.util.Collection userCandidates,
boolean subclasses)
Constructor. |
|
| Method Summary | |
ScalarExpression[] |
getResultExpressions()
|
boolean |
hasAggregatedExpressionsOnly()
Whether only aggregated expressions are returned |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
QueryExpression |
newQueryStatement()
Create a new query to search for the candidate classes etc. |
QueryExpression |
newQueryStatement(java.lang.Class candidateClass)
Create a query to search for the candidateClass and subclasses if true |
Query.ResultObjectFactory |
newResultObjectFactory(QueryExpression stmt,
boolean ignoreCache,
java.lang.Class resultClass,
boolean useFetchPlan)
Returns a suitable query result factory for results produced by the specified query. |
void |
setResultExpressions(ScalarExpression[] expressions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Localiser LOCALISER
| Constructor Detail |
public ResultExpressionsQueryable(PersistenceManager pm,
java.lang.Class candidateClass,
boolean subclasses)
pm - Persistence ManagercandidateClass - The candidatesubclasses - Whether to include subclasses
public ResultExpressionsQueryable(PersistenceManager pm,
java.lang.Class candidateClass,
java.util.Collection userCandidates,
boolean subclasses)
pm - Persistence ManagercandidateClass - The candidateuserCandidates - The users candidatessubclasses - Whether to include subclasses| Method Detail |
public QueryExpression newQueryStatement()
newQueryStatement in interface Queryablepublic void setResultExpressions(ScalarExpression[] expressions)
expressions - The expressions to set.public ScalarExpression[] getResultExpressions()
public boolean hasAggregatedExpressionsOnly()
public QueryExpression newQueryStatement(java.lang.Class candidateClass)
newQueryStatement in interface QueryablecandidateClass - The candidate
Queryable.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryExpression stmt,
boolean ignoreCache,
java.lang.Class resultClass,
boolean useFetchPlan)
QueryableThe stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory in interface Queryablestmt - The query statementignoreCache - Whether to ignore the cacheresultClass - Create objects of a particular typeuseFetchPlan - whether to use the fetch plan to retrieve fields in the same query
public boolean isEmpty()
isEmpty in interface Queryable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||