|
Content Manager OnDemand V7 WEK APIs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.edms.od.ODCallback
This class is used with all methods in which the server operation returns data while processing. For example:
ODCallback odc = new ODCallback(); folder.search(odc);(c) Copyright IBM Corp. 1993, 2003. All Rights Reserved
Constructor Summary | |
ODCallback()
The class constructor. |
Method Summary | |
void |
cancel()
Deprecated. |
boolean |
DataCallback(byte[] data)
Bulk retrieval data callback. |
protected void |
done()
Deprecated. |
boolean |
HitCallback(java.lang.String docId,
char type,
int hit_location,
java.lang.String[] values)
Search folder callback. |
boolean |
HitCallback(java.lang.String docId,
char type,
java.lang.String[] values)
Search folder callback. |
void |
HitHandleCallback(int hit,
int off,
int len)
Bulk retrieval hit callback. |
boolean |
isDone()
Deprecated. |
protected void |
setServer(com.ibm.edms.od.ODServer server)
Deprecated. |
protected void |
setThread(com.ibm.edms.od.WorkerThread wThread)
Deprecated. |
void |
waitForOperation()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ODCallback()
Method Detail |
protected final void setServer(com.ibm.edms.od.ODServer server)
protected final void setThread(com.ibm.edms.od.WorkerThread wThread)
public final void cancel()
ODServer.cancel()
protected void done()
public final boolean isDone()
public final void waitForOperation()
public boolean HitCallback(java.lang.String docId, char type, java.lang.String[] values) throws java.lang.Exception
docId
- Persistent document identifier.type
- Document type.values
- Hit field values.
java.lang.Exception
ODConstant
,
ODFolder.searchWithCallback(ODCallback)
,
ODFolder.searchWithCallback(String, ODCallback)
,
ODFolder.searchWithCallback(String, String, String, ODCallback)
public boolean HitCallback(java.lang.String docId, char type, int hit_location, java.lang.String[] values) throws java.lang.Exception
docId
- Persistent document identifier.type
- Document type.hit_location
- document location, cache, etc.values
- Hit field values.
java.lang.Exception
ODConstant
,
ODFolder.searchWithCallback(ODCallback)
,
ODFolder.searchWithCallback(String, ODCallback)
,
ODFolder.searchWithCallback(String, String, String, ODCallback)
public void HitHandleCallback(int hit, int off, int len)
DataCallback
method. Together they should be used to process the data returned from
the bulk retrieval request.
hit
- The hit number.off
- Offset of the data to be returned.len
- Length of the data to be returned.
ODFolder.retrieve(Vector, ODCallback)
,
ODFolder.retrieve(String[], ODCallback)
public boolean DataCallback(byte[] data)
HitHandleCallback
method. Together they should be used to process the data
returned from the bulk retrieval request.
data
- Document data for the requested hit(s).
ODFolder.retrieve(Vector, ODCallback)
,
ODFolder.retrieve(String[], ODCallback)
|
CM OnDemand V7 WEK Java APIs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |