public class DummyIsamSource extends java.lang.Object implements IsamSource
Constructor and Description |
---|
DummyIsamSource() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close ISAM source.
|
<T> void |
create(T o)
Create record in ISAM source.
|
<T,TK extends java.lang.Comparable<TK>> |
delete(java.lang.Class<T> t,
Key<TK> k)
Delete record from ISAM source.
|
<T,TK extends java.lang.Comparable<TK>> |
read(java.lang.Class<T> t,
Key<TK> k)
Read record from ISAM source.
|
<T,TK extends java.lang.Comparable<TK>> |
readGE(java.lang.Class<T> t,
Key<TK> k)
Find all records from start.
|
<T,TK extends java.lang.Comparable<TK>> |
readGT(java.lang.Class<T> t,
Key<TK> k)
Read all records greater than key.
|
<T,TK extends java.lang.Comparable<TK>> |
readLE(java.lang.Class<T> t,
Key<TK> k)
Read all records less than or equal key.
|
<T,TK extends java.lang.Comparable<TK>> |
readLT(java.lang.Class<T> t,
Key<TK> k)
Read all records less than key.
|
<T,TK extends java.lang.Comparable<TK>> |
readStart(java.lang.Class<T> t)
Find all records greater than or equal key.
|
<T> void |
update(T o)
Update record in ISAM source.
|
public <T,TK extends java.lang.Comparable<TK>> T read(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
read
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to readk
- key of record to readIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T> void create(T o) throws IsamException, RecordException
IsamSource
create
in interface IsamSource
T
- type of recordo
- object to createIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T> void update(T o) throws IsamException, RecordException
IsamSource
update
in interface IsamSource
T
- type of recordo
- object to updateIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T,TK extends java.lang.Comparable<TK>> void delete(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
delete
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to deletek
- key of record to deleteIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic void close() throws IsamException
IsamSource
close
in interface IsamSource
IsamException
- if problem with ISAM sourcepublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readStart(java.lang.Class<T> t) throws IsamException, RecordException
IsamSource
readStart
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to findIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readGE(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readGE
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to findk
- key to findIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readGT(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readGT
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to findk
- key to findIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readLE(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readLE
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to findk
- key to findIsamException
- if problem with ISAM sourceRecordException
- if problem converting datapublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readLT(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readLT
in interface IsamSource
T
- type of recordTK
- type of keyt
- type to findk
- key to findIsamException
- if problem with ISAM sourceRecordException
- if problem converting data