|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultListener
An interface for applications that wish to listen for changes to a DatabaseQueryResult
.
Field Summary | |
---|---|
static int |
REQUEST_COMPLETED
The request has completed without errors. |
static int |
REQUEST_FAILED
The request has failed due to an error and the result is empty. |
static int |
RESPONSE_INCOMPLETE
Result is partially complete because the response was terminated due to an error. |
static int |
RESPONSE_TRUNCATED
Request has completed without errors but the result has been truncated due to restrictions applied by the implementation. |
Method Summary | |
---|---|
void |
databaseResultAdded(DatabaseQueryResult document,
Element element)
This method is called to inform a listener that an element has been added to a DatabaseQueryResult. |
void |
notifyFinished(DatabaseQueryResult document,
int status)
This method is called to inform a listener that all the callbacks arising from a GetMetadata or a GetSchedule request have been completed. |
Field Detail |
---|
static final int REQUEST_COMPLETED
static final int REQUEST_FAILED
static final int RESPONSE_INCOMPLETE
static final int RESPONSE_TRUNCATED
Method Detail |
---|
void databaseResultAdded(DatabaseQueryResult document, Element element)
document
- the DatabaseQueryResult that has been affectedelement
- the element that has been added. For example this
could be a ProgramInformation element which would signify that metadata
for a CRID has been added to the document.void notifyFinished(DatabaseQueryResult document, int status)
document
- The document that has been updatedstatus
- an int
value that indicate the success or otherwise of the
original request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |