org.jpox.store.query
Class AbstractIteratorStatement

java.lang.Object
  extended byorg.jpox.store.query.AbstractIteratorStatement
Direct Known Subclasses:
DiscriminatorIteratorStatement, UnionIteratorStatement

public abstract class AbstractIteratorStatement
extends java.lang.Object

Abstract representation of a statement that is used for iterating through a list of objects of a class, possibly including subclasses.

Version:
$Revision: 1.10 $

Field Summary
protected  java.lang.String candidateFullClassName
          full class name for the candidate class
protected  DatastoreClass candidateTable
          Table where the candidate objects are stored.
protected  ClassLoaderResolver clr
          ClassLoader resolver.
protected  DatastoreAdapter dba
          Datastore adapter
protected  boolean includeSubclasses
          Whether to include iteration through subclasses of the candidate.
protected static Localiser LOCALISER
          Localisation or messages.
protected  StoreManager storeMgr
          Manager for the Store.
 
Constructor Summary
AbstractIteratorStatement(java.lang.Class type, ClassLoaderResolver clr, boolean subclasses, StoreManager storeMgr)
          Constructor.
 
Method Summary
abstract  QueryExpression getQueryStatement()
          Accessor for the QueryStatement that will return the objects of the candidate type and its subclasses (if required).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Localisation or messages.


includeSubclasses

protected final boolean includeSubclasses
Whether to include iteration through subclasses of the candidate.


storeMgr

protected final StoreManager storeMgr
Manager for the Store.


dba

protected final DatastoreAdapter dba
Datastore adapter


candidateFullClassName

protected final java.lang.String candidateFullClassName
full class name for the candidate class


candidateTable

protected DatastoreClass candidateTable
Table where the candidate objects are stored.


clr

protected final ClassLoaderResolver clr
ClassLoader resolver.

Constructor Detail

AbstractIteratorStatement

public AbstractIteratorStatement(java.lang.Class type,
                                 ClassLoaderResolver clr,
                                 boolean subclasses,
                                 StoreManager storeMgr)
Constructor.

Parameters:
type - Class that we are querying for as our base.
clr - ClassLoaderResolver
subclasses - Whether to include subclasses in the iteration.
storeMgr - Manager for the store
Method Detail

getQueryStatement

public abstract QueryExpression getQueryStatement()
Accessor for the QueryStatement that will return the objects of the candidate type and its subclasses (if required).

Returns:
The QueryExpression


Copyright © -2007 . All Rights Reserved.