javacli
Class ObjectSet

java.lang.Object
  extended by javacli.ObjectSet

public class ObjectSet
extends java.lang.Object

Set of objects returned by select. This class is similar with JDBC ResultSet class and allows navigation though the selected objects in orward or backward direction


Method Summary
 void close()
          Close object set.
 java.lang.Object getFirst()
          Get first fetched object
 java.lang.Object getLast()
          Get last fetched object
 java.lang.Object getNext()
          Get next fetched object
 java.lang.Object getPrev()
          Get previous fetched object
 Reference getRef()
          Get reference to the current object
 void removeAll()
          Remove all selected objects.
 int size()
          Get the number of objects in the object set.
 void update()
          Update the current object in the set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirst

public java.lang.Object getFirst()
Get first fetched object

Returns:
first object in the set or null if no objects were selected

getLast

public java.lang.Object getLast()
Get last fetched object

Returns:
last object in the set or null if no objects were selected

getNext

public java.lang.Object getNext()
Get next fetched object

Returns:
next object in the set or null if current object is thelast one in the set or no objects were selected

getPrev

public java.lang.Object getPrev()
Get previous fetched object

Returns:
previous object in the set or null if the current object is the first one in the set or no objects were selected

getRef

public Reference getRef()
Get reference to the current object

Returns:
return reference to the current object or null if no objects were selected

update

public void update()
Update the current object in the set. Changes made in the current object are saved in the database


removeAll

public void removeAll()
Remove all selected objects. All objects in the object set are removed from the database.


size

public int size()
Get the number of objects in the object set.

Returns:
number of the selected objects

close

public void close()
Close object set. Any followin operation with this object set will raise an xception.