public class LocalIsamSource extends java.lang.Object implements IsamSource
| Constructor and Description |
|---|
LocalIsamSource(java.lang.String fnm,
java.lang.String implementation,
boolean readonly)
Create instance of LocaleIsamSource.
|
| 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 LocalIsamSource(java.lang.String fnm,
java.lang.String implementation,
boolean readonly)
throws IsamException
fnm - filenameimplementation - ISAM implementation classreadonly - true=>only read, false=>read+create+update+deleteIsamException - if error creating instance of ISAM implementation classpublic <T,TK extends java.lang.Comparable<TK>> T read(java.lang.Class<T> t,
Key<TK> k)
throws IsamException,
RecordException
IsamSourceread in interface IsamSourceT - 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
IsamSourcecreate in interface IsamSourceT - type of recordo - object to createIsamException - if problem with ISAM sourceRecordException - if problem converting datapublic <T> void update(T o)
throws IsamException,
RecordException
IsamSourceupdate in interface IsamSourceT - 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
IsamSourcedelete in interface IsamSourceT - 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
IsamSourceclose in interface IsamSourceIsamException - if problem with ISAM sourcepublic <T,TK extends java.lang.Comparable<TK>> IsamResult<T> readStart(java.lang.Class<T> t) throws IsamException, RecordException
IsamSourcereadStart in interface IsamSourceT - 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
IsamSourcereadGE in interface IsamSourceT - 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
IsamSourcereadGT in interface IsamSourceT - 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
IsamSourcereadLE in interface IsamSourceT - 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
IsamSourcereadLT in interface IsamSourceT - type of recordTK - type of keyt - type to findk - key to findIsamException - if problem with ISAM sourceRecordException - if problem converting data