|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.isam.remote.ObjectClient
public class ObjectClient
Class ObjectClient implement IsamProtocolClient using ObjectStream'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 | |
|---|---|
ObjectClient(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 ObjectClient(java.io.InputStream is,
java.io.OutputStream os)
is - input stream to wrap in input object streamos - output stream to wrap in output object stream| Method Detail |
|---|
public void handshake()
throws IsamException
IsamProtocolClient
handshake in interface IsamProtocolClientIsamException - if problem with ISAM source
public <T,TK> T read(java.lang.Class<T> t,
Key<TK> k)
throws IsamException
IsamProtocolClient
read in interface IsamProtocolClientt - type to readk - key of record to read
IsamException - if problem with ISAM source
public <T> void create(T o)
throws IsamException,
RecordException
IsamProtocolClient
create in interface IsamProtocolCliento - object to create
IsamException - if problem with ISAM source
RecordException - if problem converting data
public <T> void update(T o)
throws IsamException,
RecordException
IsamProtocolClient
update in interface IsamProtocolCliento - object to update
IsamException - if problem with ISAM source
RecordException - if problem converting data
public <T,TK> void delete(java.lang.Class<T> t,
Key<TK> k)
throws IsamException,
RecordException
IsamProtocolClient
delete in interface IsamProtocolClientt - type to deletek - key of record to delete
IsamException - if problem with ISAM source
RecordException - if problem converting data
public void close()
throws IsamException
IsamProtocolClient
close in interface IsamProtocolClientIsamException - if problem with ISAM source
public <T,TK> IsamResult<T> readXX(int cmd,
java.lang.Class<T> t,
Key<TK> k)
throws IsamException,
RecordException
IsamProtocolClient
readXX in interface IsamProtocolClientt - type to findk - key to find
IsamException - if problem with ISAM source
RecordException - if problem converting data
public boolean resultRead()
throws IsamException,
RecordException
IsamProtocolClient
resultRead in interface IsamProtocolClientIsamException - if problem with ISAM source
RecordException - if problem converting data
public <T> T resultCurrent()
throws IsamException,
RecordException
IsamProtocolClient
resultCurrent in interface IsamProtocolClientIsamException - if problem with ISAM source
RecordException - if problem converting data
public void resultClose()
throws IsamException
IsamProtocolClient
resultClose in interface IsamProtocolClientIsamException - if problem with ISAM source
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||