dk.vajhoej.isam.local
Class LocalIsamResult<T>

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

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

Class LocalIsamResult is a result from a find operation in a local ISAM source.


Constructor Summary
LocalIsamResult(java.lang.Class<T> t, NativeIsam del, byte[] buf, boolean firstfnd)
          Create instance of LocalIsamResult.
 
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

LocalIsamResult

public LocalIsamResult(java.lang.Class<T> t,
                       NativeIsam del,
                       byte[] buf,
                       boolean firstfnd)
Create instance of LocalIsamResult.

Parameters:
t - type to load
del - delegate to NativeIsam
buf - buffer to receive data
firstfnd - whether first record was found
Method Detail

read

public boolean read()
             throws IsamException,
                    RecordException
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
RecordException - if problem converting data

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