|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.mapped.query.CollectionCandidates
public class CollectionCandidates
Collection for candidates passed to the query by setCandidates(collection).
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
|
| Constructor Summary | |
|---|---|
CollectionCandidates(ObjectManager om,
java.lang.Class candidateClass,
java.util.Collection candidates)
Constructor. |
|
| Method Summary | |
|---|---|
FetchPlan |
getFetchPlan()
Accessor for the fetch plan |
java.util.Collection |
getUserCandidates()
|
boolean |
isEmpty()
Returns true if this collection contains no elements. |
QueryExpression |
newQueryStatement()
Accessor for a new Query statement. |
QueryExpression |
newQueryStatement(java.lang.Class candidateClass,
DatastoreIdentifier candidateAlias)
Creates a QueryStatement. |
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. |
| 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 CollectionCandidates(ObjectManager om,
java.lang.Class candidateClass,
java.util.Collection candidates)
om - Object ManagercandidateClass - the Class candidatecandidates - The candidates| Method Detail |
|---|
public java.util.Collection getUserCandidates()
public FetchPlan getFetchPlan()
public QueryExpression newQueryStatement()
newQueryStatement in interface Queryable
public QueryExpression newQueryStatement(java.lang.Class candidateClass,
DatastoreIdentifier candidateAlias)
newQueryStatement in interface QueryablecandidateClass - Candidate classcandidateAlias - Alias to use for the candidate in the query (if the native query supports it)
public 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 | |||||||||