public interface IsamProtocolClient extends IsamProtocol
B_V1, CLOSE, CREATE, DELETE, ERROR, FIND_ALL, FIND_GE, FIND_GT, FIND_LE, FIND_LT, O_V1, OK, READ, RESULT_CLOSE, RESULT_CURRENT, RESULT_READ, UPDATE| 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.
|
void |
handshake()
Send preferred version.
|
<T,TK extends java.lang.Comparable<TK>> |
read(java.lang.Class<T> t,
Key<TK> k)
Read record from ISAM source.
|
<T> IsamResult<T> |
readXX(int cmd,
java.lang.Class<T> t)
Find all records matching criteria.
|
<T,TK extends java.lang.Comparable<TK>> |
readXX(int cmd,
java.lang.Class<T> t,
Key<TK> k)
Find all records matching criteria.
|
void |
resultClose()
Close.
|
<T> T |
resultCurrent()
Return current record.
|
boolean |
resultRead()
Read record.
|
<T> void |
update(T o)
Update record in ISAM source.
|
void handshake()
throws IsamException
IsamException - if problem with ISAM source<T,TK extends java.lang.Comparable<TK>> T read(java.lang.Class<T> t,
Key<TK> k)
throws IsamException,
RecordException
T - type of recordTK - type of keyt - type to readk - key of record to readIsamException - if problem with ISAM sourceRecordException - if problem converting data<T> void create(T o)
throws IsamException,
RecordException
T - type of recordo - object to createIsamException - if problem with ISAM sourceRecordException - if problem converting data<T> void update(T o)
throws IsamException,
RecordException
T - type of recordo - object to updateIsamException - if problem with ISAM sourceRecordException - if problem converting data<T,TK extends java.lang.Comparable<TK>> void delete(java.lang.Class<T> t,
Key<TK> k)
throws IsamException,
RecordException
T - type of recordTK - type of keyt - type to deletek - key of record to deleteIsamException - if problem with ISAM sourceRecordException - if problem converting datavoid close()
throws IsamException
IsamException - if problem with ISAM source<T> IsamResult<T> readXX(int cmd, java.lang.Class<T> t) throws IsamException, RecordException
T - type of recordcmd - FIND_xx valuet - type to findIsamException - if problem with ISAM sourceRecordException - if problem converting data<T,TK extends java.lang.Comparable<TK>> IsamResult<T> readXX(int cmd, java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
T - type of recordTK - type of keycmd - FIND_xx valuet - type to findk - key to findIsamException - if problem with ISAM sourceRecordException - if problem converting databoolean resultRead()
throws IsamException,
RecordException
IsamException - if problem with ISAM sourceRecordException - if problem converting data<T> T resultCurrent()
throws IsamException,
RecordException
T - type of recordIsamException - if problem with ISAM sourceRecordException - if problem converting datavoid resultClose()
throws IsamException
IsamException - if problem with ISAM source