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
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 |
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 queryp
- The pool to search upon
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