com.objectwave.persist.broker
Class ObjectPoolQuery

java.lang.Object
  |
  +--com.objectwave.persist.broker.ObjectQuerySupport
        |
        +--com.objectwave.persist.broker.ObjectPoolQuery
All Implemented Interfaces:
java.lang.Cloneable

public class ObjectPoolQuery
extends ObjectQuerySupport

Used to search an object pool. Works exactly like a relational database would.

Version:
$Id: ObjectPoolQuery.java,v 2.0 2001/06/11 16:00:03 dave_hoag Exp $
Author:
Dave Hoag

Nested Class Summary
 
Nested classes inherited from class com.objectwave.persist.broker.ObjectQuerySupport
ObjectQuerySupport.Test
 
Field Summary
 
Fields inherited from class com.objectwave.persist.broker.ObjectQuerySupport
defaultFormatter
 
Constructor Summary
ObjectPoolQuery()
          Without this instance being initialized with a pool and a query, nothing good can be done with this class.
ObjectPoolQuery(SQLQuery q, ObjectPool p)
           
 
Method Summary
 java.lang.Object clone()
          Create an almost copy.
protected  java.util.Iterator getListOfObjects(Persistence expectedType)
          Query the object pool for all objects that are of the expected type.
 void initialize(SQLQuery q, ObjectPool p)
           
 
Methods inherited from class com.objectwave.persist.broker.ObjectQuerySupport
checkAttributeValues, checkConstrainedColumns, checkForeignValues, checkInstanceValues, find, getAttributeData, getCollectionAdapter, getFieldForName, getReferenceAdapter, initDataElements, initialize, initializeSubject, isConsideredEqual, isMatch, isMatch, isPersistentReferenceValid, isPrimaryKeyMatch, satisfyingConstraint, setSqlQuery, sortOnField, sortResult
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPoolQuery

public ObjectPoolQuery()
Without this instance being initialized with a pool and a query, nothing good can be done with this class.


ObjectPoolQuery

public ObjectPoolQuery(SQLQuery q,
                       ObjectPool p)
Parameters:
q - The object specifying the query
p - The pool to search upon
Method Detail

initialize

public void initialize(SQLQuery q,
                       ObjectPool p)
Parameters:
q -
p -

clone

public java.lang.Object clone()
Description copied from class: ObjectQuerySupport
Create an almost copy. The transient data is not copied.

Overrides:
clone in class ObjectQuerySupport
Returns:

getListOfObjects

protected java.util.Iterator getListOfObjects(Persistence expectedType)
Query the object pool for all objects that are of the expected type.

Specified by:
getListOfObjects in class ObjectQuerySupport
Parameters:
expectedType - The type of object specified in the query.
Returns:
The ListOfObjects value