org.apache.ojb.soda
Class ObjectSetImpl

java.lang.Object
  extended by org.apache.ojb.soda.ObjectSetImpl
All Implemented Interfaces:
ObjectSet

public class ObjectSetImpl
extends Object
implements ObjectSet

Version:
$Id: ObjectSetImpl.java,v 1.1 2007-08-24 22:17:42 ewestfal Exp $

Field Summary
protected  Vector elements
           
protected  int length
           
protected  Iterator ojbIterator
           
protected  int position
           
protected  boolean resultSetClosed
           
protected  int scrolled
           
 
Constructor Summary
ObjectSetImpl(PersistenceBroker broker, Query query, int limit)
          Constructor for ObjectSetImpl.
 
Method Summary
 boolean hasNext()
          returns true if the ObjectSet has more elements.
 boolean isResultSetClosed()
          Gets the resultSetClosed.
 Object next()
          returns the next object in the ObjectSet.
protected  void releaseJdbcResources()
           
 void reset()
          resets the ObjectSet cursor before the first element.
 void setResultSetClosed(boolean resultSetClosed)
          Sets the resultSetClosed.
 int size()
          returns the number of elements in the ObjectSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ojbIterator

protected Iterator ojbIterator

length

protected int length

elements

protected Vector elements

position

protected int position

scrolled

protected int scrolled

resultSetClosed

protected boolean resultSetClosed
Constructor Detail

ObjectSetImpl

public ObjectSetImpl(PersistenceBroker broker,
                     Query query,
                     int limit)
Constructor for ObjectSetImpl. Builds up an ObjectSet from an OJB Query object

Method Detail

hasNext

public boolean hasNext()
Description copied from interface: ObjectSet
returns true if the ObjectSet has more elements.

Specified by:
hasNext in interface ObjectSet
Returns:
boolean true if the ObjectSet has more elements.

releaseJdbcResources

protected void releaseJdbcResources()

next

public Object next()
Description copied from interface: ObjectSet
returns the next object in the ObjectSet.

Specified by:
next in interface ObjectSet
Returns:
the next object in the ObjectSet.

reset

public void reset()
Description copied from interface: ObjectSet
resets the ObjectSet cursor before the first element.

A subsequent call to next() will return the first element.

Specified by:
reset in interface ObjectSet

size

public int size()
Description copied from interface: ObjectSet
returns the number of elements in the ObjectSet.

Specified by:
size in interface ObjectSet
Returns:
the number of elements in the ObjectSet.

isResultSetClosed

public boolean isResultSetClosed()
Gets the resultSetClosed.

Returns:
Returns a boolean

setResultSetClosed

public void setResultSetClosed(boolean resultSetClosed)
Sets the resultSetClosed.

Parameters:
resultSetClosed - The resultSetClosed to set


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.