|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This class is the service interface for a data service.
Example: DataService ds = DataServiceFactory.newDataService(ctx,"Demo_Application","ld:myxds/Xds");
xds.invoke("getFunction()",arg);
| Method Summary | |
com.bea.xml.XmlObject |
invoke(java.lang.String method,
java.lang.Object[] args)
The dynamic method for invoking data service functions. |
void |
setFilterCondition(FilterXQuery filterXQuery)
Sets a filtering condition to be applied to the results of data service function execution. |
void |
setQueryAttributes(QueryAttributes qattributes)
Sets the query attributes. |
void |
setSortCriteria(java.lang.String appliesTo,
java.lang.String field,
java.lang.String sort)
Sets a sorting criteria on the results of data service function execution. |
java.util.Properties[] |
submit(commonj.sdo.DataObject dataObject)
Submits data object changes for updates to back-end systems. |
void |
writeOutputToFile(java.lang.String method,
java.lang.Object[] args,
java.lang.String fileName)
Writes the results of method invocation to the specified file. |
| Method Detail |
public void setFilterCondition(FilterXQuery filterXQuery)
filterXQuery - The filter XQuery expression
public void setSortCriteria(java.lang.String appliesTo,
java.lang.String field,
java.lang.String sort)
throws java.lang.Exception
appliesTo - - String XPath relative to document element.field - - String fieldName (relative (not the full path) to 'appliesTo' object).sort - - sort criteria (ascending/descending).public void setQueryAttributes(QueryAttributes qattributes)
qattributes - The query attributes
public java.util.Properties[] submit(commonj.sdo.DataObject dataObject)
throws java.lang.Exception
dataObject - The data object to be submitted.
public com.bea.xml.XmlObject invoke(java.lang.String method,
java.lang.Object[] args)
throws SDOMediatorException
null
method - The name of the method in the data service to be invoked.args - The arguments to the method. For non-argument functions, use null.
public void writeOutputToFile(java.lang.String method,
java.lang.Object[] args,
java.lang.String fileName)
throws StreamingException
method - The data service method to be invoked.args - The arguments to the function.fileName - The file name.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||