| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.persistence.engines.jdbcengine.datasource.DataSourceCursor
This class gives a Collection view of a ResultSet. Each row of the ResultSet is molded into an appropriate Persistent object and added to the Collection. The rows are fetched in groups. The size of each group is determined by the 'hitlistSize' parameter of the init.xml for a particular database definition. On creation, the 1st group of rows are fetched. Use the Iterator (a custom implementation), to fetch all the rows. The Collection interface methods will only on the fetched data. The size() method will return a negative value, unless all the data has been fetched.
| Method Summary | |
|  boolean | add(Object obj)Ensures that this collection contains the specified element. | 
|  boolean | addAll(Collection collection)Adds all of the elements in the specified collection to this collection. | 
|  void | clear()Removes all of the elements from this collection. | 
|  boolean | contains(Object obj)Returns true if this collection contains the specified element. | 
|  boolean | containsAll(Collection collection)Returns true if this collection contains all of the elements in the specified collection. | 
|  boolean | isEmpty()Returns true if this collection contains no elements. | 
|  Iterator | iterator()Returns a custom iterator. | 
|  boolean | remove(Object obj)Removes a single instance of the specified element from this collection, if it is present. | 
|  boolean | removeAll(Collection collection)Removes all this collection's elements that are also contained in the specified collection. | 
|  boolean | retainAll(Collection collection)Retains only the elements in this collection that are contained in the specified collection. | 
|  int | size()Returns the number of elements in this collection. | 
|  Object[] | toArray()Returns an array containing all of the elements in this collection. | 
|  Object[] | toArray(Object[] obj)Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.util.Collection | 
| equals, hashCode | 
| Method Detail | 
public Iterator iterator()
iterator in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic boolean addAll(Collection collection)
addAll in interface Collectioncollection - elements to be inserted into this collection.
public boolean containsAll(Collection collection)
containsAll in interface Collectioncollection - collection to be checked for containment in this collection.
public boolean remove(Object obj)
remove in interface Collectionobj - element to be removed from this collection, if present.
public boolean add(Object obj)
add in interface Collectionobj - element whose presence in this collection is to be ensured.
public void clear()
           throws DataSourceCursorRuntimeException
clear in interface CollectionDataSourceCursorRuntimeException - if any error occurs in closing the underlying ResultSet.public boolean contains(Object obj)
contains in interface Collectionobj - element whose presence in this collection is to be tested.
public Object[] toArray(Object[] obj)
toArray in interface Collectionobj - the array into which the elements of this collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
public boolean isEmpty()
isEmpty in interface Collectionpublic boolean removeAll(Collection collection)
removeAll in interface Collectioncollection - elements to be removed from this collection.
public boolean retainAll(Collection collection)
retainAll in interface Collectioncollection - elements to be retained in this collection.
public int size()
size in interface Collection| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||