|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.extent.AbstractExtent
org.jpox.store.rdbms.extent.ClassTableExtent
An Extent of all persistent objects backed by a class table. There are 3 inheritance strategies, and each is handled by this class but in different ways.
Field Summary | |
protected static Localiser |
LOCALISER_RDBMS
Localised messages |
Fields inherited from class org.jpox.store.extent.AbstractExtent |
candidateClass, cmd, LOCALISER, pm, query, queryResultsByIterator, storeMgr, subclasses |
Constructor Summary | |
ClassTableExtent(PersistenceManager pm,
DatastoreClass[] tables,
java.lang.Class cls,
boolean subclasses)
Constructor. |
|
ClassTableExtent(PersistenceManager pm,
DatastoreClass table,
java.lang.Class cls,
boolean subclasses)
Constructor. |
Method Summary | |
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 instances of the candidateClass and its subclasses (if required). |
Query.ResultObjectFactory |
newResultObjectFactory(QueryExpression stmt,
boolean ignoreCache,
java.lang.Class resultClass,
boolean useFetchPlan)
Create a new factory for objects from the ResultSet. |
Methods inherited from class org.jpox.store.extent.AbstractExtent |
close, closeAll, getCandidateClass, getFetchPlan, getPersistenceManager, hasSubclasses, iterator, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final Localiser LOCALISER_RDBMS
Constructor Detail |
public ClassTableExtent(PersistenceManager pm, DatastoreClass table, java.lang.Class cls, boolean subclasses)
pm
- PersistenceManagertable
- Table representing the class whose extent we wantcls
- Candidate classsubclasses
- Whether to include subclasses of the class.public ClassTableExtent(PersistenceManager pm, DatastoreClass[] tables, java.lang.Class cls, boolean subclasses)
pm
- PersistenceManagertables
- Tables representing the class whose extent we wantcls
- Candidate classsubclasses
- Whether to include subclasses of the class.Method Detail |
public QueryExpression newQueryStatement()
newQueryStatement
in interface Queryable
public QueryExpression newQueryStatement(java.lang.Class candidateClass)
newQueryStatement
in interface Queryable
candidateClass
- The candidate class
Queryable.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryExpression stmt, boolean ignoreCache, java.lang.Class resultClass, boolean useFetchPlan)
newResultObjectFactory
in interface Queryable
stmt
- The Query StatementignoreCache
- Whether to ignore dirty objectsresultClass
- Whether to create objects of a particular classuseFetchPlan
- 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 |