org.jafer.zoom
Class ResultSetImpl

java.lang.Object
  extended by org.jafer.zoom.ResultSetImpl
All Implemented Interfaces:
java.io.Serializable, org.z3950.zoom.Configurable, org.z3950.zoom.ResultSet

public class ResultSetImpl
extends java.lang.Object
implements org.z3950.zoom.ResultSet

Implementation of Zoom ResultSet class.

See Also:
Serialized Form

Field Summary
(package private)  ConnectionImpl conn
           
(package private)  java.lang.String elementSetName
           
(package private)  java.lang.String preferredRecordSyntax
           
(package private)  int size
           
 
Constructor Summary
protected ResultSetImpl(ConnectionImpl connection, int size)
           
 
Method Summary
 void addRecordListener(org.z3950.zoom.RecordListener listener)
          Asynchronous (not in Zoom yet)
 void delete()
           
 java.lang.Object get(java.lang.String optionName)
           
 java.lang.String[] getAvailableRecordSyntaxes()
          Supported by implemenation
 java.lang.String getElementSetName()
          options implemented as get...
 java.lang.String getPreferredRecordSyntax()
           
 org.z3950.zoom.Record getRecord(int i)
          Retrieves a record from a previous query on the connection.
 java.lang.String getSetName()
          Optional
 int getSize()
           
 java.lang.String[] getSupportedRecordSyntaxes()
          Not in Zoom
 void removeRecordListener(org.z3950.zoom.RecordListener listener)
           
 void set(java.lang.String optionName, java.lang.Object value)
           
 void setElementSetName(java.lang.String elementSetName)
           
 void setPreferredRecordSyntax(java.lang.String preferredRecordSyntax)
           
 void startGetRecord(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementSetName

java.lang.String elementSetName

preferredRecordSyntax

java.lang.String preferredRecordSyntax

conn

ConnectionImpl conn

size

int size
Constructor Detail

ResultSetImpl

protected ResultSetImpl(ConnectionImpl connection,
                        int size)
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface org.z3950.zoom.ResultSet

getRecord

public org.z3950.zoom.Record getRecord(int i)
                                throws SystemException,
                                       DiagnosticException
Retrieves a record from a previous query on the connection.

Specified by:
getRecord in interface org.z3950.zoom.ResultSet
Throws:
SystemException
DiagnosticException

delete

public void delete()
Specified by:
delete in interface org.z3950.zoom.ResultSet

getElementSetName

public java.lang.String getElementSetName()
options implemented as get... set...

Specified by:
getElementSetName in interface org.z3950.zoom.ResultSet

setElementSetName

public void setElementSetName(java.lang.String elementSetName)
Specified by:
setElementSetName in interface org.z3950.zoom.ResultSet

getPreferredRecordSyntax

public java.lang.String getPreferredRecordSyntax()
Specified by:
getPreferredRecordSyntax in interface org.z3950.zoom.ResultSet

setPreferredRecordSyntax

public void setPreferredRecordSyntax(java.lang.String preferredRecordSyntax)
Specified by:
setPreferredRecordSyntax in interface org.z3950.zoom.ResultSet

getSetName

public java.lang.String getSetName()
Optional

Specified by:
getSetName in interface org.z3950.zoom.ResultSet

getSupportedRecordSyntaxes

public java.lang.String[] getSupportedRecordSyntaxes()
Not in Zoom

Specified by:
getSupportedRecordSyntaxes in interface org.z3950.zoom.ResultSet

getAvailableRecordSyntaxes

public java.lang.String[] getAvailableRecordSyntaxes()
Supported by implemenation

Specified by:
getAvailableRecordSyntaxes in interface org.z3950.zoom.ResultSet

addRecordListener

public void addRecordListener(org.z3950.zoom.RecordListener listener)
Asynchronous (not in Zoom yet)

Specified by:
addRecordListener in interface org.z3950.zoom.ResultSet

removeRecordListener

public void removeRecordListener(org.z3950.zoom.RecordListener listener)
Specified by:
removeRecordListener in interface org.z3950.zoom.ResultSet

startGetRecord

public void startGetRecord(int i)
Specified by:
startGetRecord in interface org.z3950.zoom.ResultSet

set

public void set(java.lang.String optionName,
                java.lang.Object value)
         throws java.lang.NoSuchMethodException,
                java.lang.reflect.InvocationTargetException,
                java.lang.IllegalAccessException
Specified by:
set in interface org.z3950.zoom.Configurable
Throws:
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

get

public java.lang.Object get(java.lang.String optionName)
                     throws java.lang.NoSuchMethodException,
                            java.lang.reflect.InvocationTargetException,
                            java.lang.IllegalAccessException
Specified by:
get in interface org.z3950.zoom.Configurable
Throws:
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException