dk.vajhoej.isam.dummy
Class DummyIsamResult<T>
java.lang.Object
dk.vajhoej.isam.dummy.DummyIsamResult<T>
- All Implemented Interfaces:
- IsamResult<T>
public class DummyIsamResult<T>
- extends java.lang.Object
- implements IsamResult<T>
Class DummyIsamResult is a "do nothing" implementation of ISAM result.
All writes succeed. All reads return nothing.
It is only intended for testing purposes.
Field Summary |
static java.util.logging.Logger |
log
|
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 |
log
public static java.util.logging.Logger log
DummyIsamResult
public DummyIsamResult()
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