|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.query.CollectionCandidates
public class CollectionCandidates
Collection for candidates passed to the query by setCandidates(collection user), and the user collection is not queryable
Field Summary | |
---|---|
protected static Localiser |
LOCALISER
|
Constructor Summary | |
---|---|
CollectionCandidates(PersistenceManager pm,
java.lang.Class candidateClass,
java.util.Collection candidates)
Constructor. |
Method Summary | |
---|---|
javax.jdo.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)
Creates a QueryStatement The elements that are ALLOWED to be returned after quering the database are the set of elements contained in the candidate collection. |
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. |
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(PersistenceManager pm, java.lang.Class candidateClass, java.util.Collection candidates)
pm
- Persistence ManagercandidateClass
- the Class candidatecandidates
- The candidatesMethod Detail |
---|
public java.util.Collection getUserCandidates()
public javax.jdo.FetchPlan getFetchPlan()
public QueryExpression newQueryStatement()
newQueryStatement
in interface Queryable
public QueryExpression newQueryStatement(java.lang.Class candidateClass)
newQueryStatement
in interface Queryable
Queryable.newQueryStatement(java.lang.Class)
public Query.ResultObjectFactory newResultObjectFactory(QueryExpression stmt, boolean ignoreCache, java.lang.Class resultClass, boolean useFetchPlan)
Queryable
The stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory
in interface Queryable
stmt
- 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 |