public class ODCallback
extends java.lang.Object
ODCallback odc = new ODCallback();
folder.search(odc);
(c) Copyright IBM Corp. 1993, 2015. All Rights Reserved| Constructor and Description |
|---|
ODCallback()
The class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DataCallback(byte[] data)
Bulk retrieval data callback.
|
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.
|
void |
xmlProcessBegin(java.lang.String objectType,
java.lang.String objectName,
int action)
XML processing begin callback.
|
void |
xmlProcessEnd(java.lang.String objectType,
java.lang.String objectName,
int action,
boolean success)
XML processing end callback.
|
void |
xmlProcessMsg(java.lang.String message)
XML processing message callback.
|
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 for Display Criteria.java.lang.ExceptionODConstant,
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 for Display criteria.java.lang.ExceptionODConstant,
ODFolder.searchWithCallback(ODCallback),
ODFolder.searchWithCallback(String, ODCallback),
ODFolder.searchWithCallback(String, String, String, ODCallback)public void HitHandleCallback(int hit,
int off,
int len)
ODFolder.DataCallback(byte[])
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)
ODCallback.HitHandleCallback(int, int, int)
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)public void xmlProcessBegin(java.lang.String objectType,
java.lang.String objectName,
int action)
objectType - The type of object being processedobjectName - The name of the object being processedaction - The type of action being performed on the object
ODServer.xmlParse(String xml,
int action,
Properties xmlProperties,
ODCallback odc)public void xmlProcessMsg(java.lang.String message)
message - The process message returned
ODServer.xmlParse(String xml,
int action,
Properties xmlProperties,
ODCallback odc)public void xmlProcessEnd(java.lang.String objectType,
java.lang.String objectName,
int action,
boolean success)
objectType - The type of object being processedobjectName - The name of the object being processedaction - The type of action being performed on the objectsuccess - Value indicating success or notODServer.xmlParse(String xml,
int action,
Properties xmlProperties,
ODCallback odc)(c)Copyright International Business Machines Corporation 2001, 2020. IBM Corp. All rights reserved.