dk.vajhoej.isam.emulated
Class EmulatedIsamResult<T>

java.lang.Object
  extended by dk.vajhoej.isam.emulated.EmulatedIsamResult<T>
All Implemented Interfaces:
IsamResult<T>

public class EmulatedIsamResult<T>
extends java.lang.Object
implements IsamResult<T>

Class EmulatedIsamResult is a result from a find operation in an emulated ISAM source.


Constructor Summary
EmulatedIsamResult(java.lang.Class<T> t, java.sql.Connection con, java.sql.PreparedStatement pstmt, java.sql.ResultSet rs)
          Create instance of EmulatedIsamResult.
 
Method Summary
 void close()
          Close.
 T current()
          Return current record.
 boolean read()
          Read record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmulatedIsamResult

public EmulatedIsamResult(java.lang.Class<T> t,
                          java.sql.Connection con,
                          java.sql.PreparedStatement pstmt,
                          java.sql.ResultSet rs)
Create instance of EmulatedIsamResult.

Parameters:
t - type to load
pstmt - JDBC prepared statement
rs - JDBC result set
Method Detail

read

public boolean read()
             throws IsamException
Description copied from interface: IsamResult
Read record.

Specified by:
read in interface IsamResult<T>
Returns:
true if record read false if record not read
Throws:
IsamException - if problem with ISAM source

current

public T current()
          throws IsamException,
                 RecordException
Description copied from interface: IsamResult
Return current record.

Specified by:
current in interface IsamResult<T>
Returns:
current record
Throws:
IsamException - if problem with ISAM source
RecordException - if problem converting data

close

public void close()
           throws IsamException
Description copied from interface: IsamResult
Close.

Specified by:
close in interface IsamResult<T>
Throws:
IsamException - if problem with ISAM source