|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.vajhoej.isam.remote.ByteClient
public class ByteClient
Class ByteClient implement IsamProtocolClient using byte arrays over plain Stream's.
Field Summary |
---|
Fields inherited from interface dk.vajhoej.isam.remote.IsamProtocol |
---|
B_V1, CLOSE, CREATE, DELETE, ERROR, FIND_GE, FIND_GT, FIND_LE, FIND_LT, O_V1, OK, READ, RESULT_CLOSE, RESULT_CURRENT, RESULT_READ, UPDATE |
Constructor Summary | |
---|---|
ByteClient(java.io.InputStream is,
java.io.OutputStream os)
Create instance of ObjectClient. |
Method Summary | ||
---|---|---|
void |
close()
Close ISAM source. |
|
|
create(T o)
Create record in ISAM source. |
|
|
delete(java.lang.Class<T> t,
Key<TK> k)
Delete record from ISAM source. |
|
void |
handshake()
Send preferred version. |
|
|
read(java.lang.Class<T> t,
Key<TK> k)
Read record from ISAM source. |
|
|
readXX(int cmd,
java.lang.Class<T> t,
Key<TK> k)
Find all records matching criteria. |
|
void |
resultClose()
Close. |
|
|
resultCurrent()
Return current record. |
|
boolean |
resultRead()
Read record. |
|
|
update(T o)
Update record in ISAM source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteClient(java.io.InputStream is, java.io.OutputStream os)
is
- input streamos
- output streamMethod Detail |
---|
public void handshake() throws IsamException
IsamProtocolClient
handshake
in interface IsamProtocolClient
IsamException
- if problem with ISAM sourcepublic <T,TK> T read(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamProtocolClient
read
in interface IsamProtocolClient
t
- type to readk
- key of record to read
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T> void create(T o) throws IsamException, RecordException
IsamProtocolClient
create
in interface IsamProtocolClient
o
- object to create
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T> void update(T o) throws IsamException, RecordException
IsamProtocolClient
update
in interface IsamProtocolClient
o
- object to update
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T,TK> void delete(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamProtocolClient
delete
in interface IsamProtocolClient
t
- type to deletek
- key of record to delete
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic void close() throws IsamException
IsamProtocolClient
close
in interface IsamProtocolClient
IsamException
- if problem with ISAM sourcepublic <T,TK> IsamResult<T> readXX(int cmd, java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamProtocolClient
readXX
in interface IsamProtocolClient
t
- type to findk
- key to find
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic boolean resultRead() throws IsamException, RecordException
IsamProtocolClient
resultRead
in interface IsamProtocolClient
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T> T resultCurrent() throws IsamException, RecordException
IsamProtocolClient
resultCurrent
in interface IsamProtocolClient
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic void resultClose() throws IsamException
IsamProtocolClient
resultClose
in interface IsamProtocolClient
IsamException
- if problem with ISAM source
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |