| org.jpox.store.query.Queryable
All known Subclasses: org.jpox.sco.LinkedList, org.jpox.sco.ArrayList, org.jpox.sco.LinkedHashSet, org.jpox.sco.Map, org.jpox.sco.SortedMap, org.jpox.sco.Set, org.jpox.sco.List, org.jpox.sco.Properties, org.jpox.sco.Hashtable, org.jpox.store.query.CollectionCandidates, org.jpox.sco.HashSet, org.jpox.sco.PriorityQueue, org.jpox.sco.Collection, org.jpox.sco.TreeSet, org.jpox.sco.Stack, org.jpox.sco.LinkedHashMap, org.jpox.sco.Queue, org.jpox.sco.SortedSet, org.jpox.sco.Vector, org.jpox.sco.TreeMap, org.jpox.sco.HashMap,
Queryable | public interface Queryable (Code) | | Indicates an object that can be queried, such as an Extent or persistent collection.
version: $Revision: 1.8 $ |
isEmpty | boolean isEmpty()(Code) | | Returns true if this collection contains no elements.
true if this collection contains no elements. |
newQueryStatement | QueryExpression newQueryStatement()(Code) | | Returns a proto-typical query statement over the underlying collection.
The returned query statement selects all applicable rows from the
relevant base table(s) and the column that represents the element or element ID.
The statement can then be modified to join additional tables, select more columns, add WHERE conditions, etc.
The new prototypical query statement. |
newQueryStatement | QueryExpression newQueryStatement(Class candidateClass, DatastoreIdentifier candidateAlias)(Code) | | Returns a prototypical query statement over the underlying collection,
pre-filtered to include only objects of the specified class.
Parameters: candidateClass - Candidate class Parameters: candidateAlias - Alias to use for the candidate in the query (if the native query supports it) The new prototypical query statement. exception: org.jpox.exceptions.JPOXUserException - If candidateClass is not the same as or a subclass of the defined element type for this collection. |
newResultObjectFactory | ResultObjectFactory newResultObjectFactory(QueryExpression stmt, boolean ignoreCache, Class resultClass, boolean useFetchPlan)(Code) | | Returns a suitable query result factory for results produced by the specified query.
The stmt argument must have been obtained by a previous call
to newQueryStatement() on the same Queryable.
Parameters: stmt - The query statement Parameters: ignoreCache - Whether to ignore the cache Parameters: resultClass - Create objects of a particular type Parameters: useFetchPlan - whether to use the fetch plan to retrieve fields in the same query A factory for creating PersistenceCapable objects from query results. |
|
|