ojb.soda
Class ObjectSetImpl

java.lang.Object
  |
  +--ojb.soda.ObjectSetImpl
All Implemented Interfaces:
ObjectSet

public class ObjectSetImpl
extends java.lang.Object
implements ObjectSet

Version:
1.0
Author:

Field Summary
protected  java.util.Vector elements
           
protected  int length
           
protected  PersistenceBroker ojbBroker
           
protected  java.util.Iterator ojbIterator
           
protected  int position
           
protected  boolean resultSetClosed
           
protected  int scrolled
           
 
Constructor Summary
ObjectSetImpl(Query query, int limit)
          Constructor for ObjectSetImpl.
 
Method Summary
 boolean hasNext()
          returns true if the ObjectSet has more elements.
 boolean isResultSetClosed()
          Gets the resultSetClosed.
 java.lang.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 java.util.Iterator ojbIterator

ojbBroker

protected PersistenceBroker ojbBroker

length

protected int length

elements

protected java.util.Vector elements

position

protected int position

scrolled

protected int scrolled

resultSetClosed

protected boolean resultSetClosed
Constructor Detail

ObjectSetImpl

public ObjectSetImpl(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 java.lang.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


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04