|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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:customerproj/customerView");
ds.invoke("getCustomerBySSN", new Object[] { "303-04-5643" });
Method Summary | |
boolean |
clearResultCache(java.lang.String function,
int arity)
Purge result cache for the function on this Data Service with this name and arity. |
commonj.sdo.DataObject |
createRootDataObject()
Create a new DataGraph based on the XML type associated with the Data Service. |
com.bea.xml.XmlObject[] |
invoke(java.lang.String function,
java.lang.Object[] args)
The dynamic method for invoking data service functions. |
com.bea.xml.XmlObject[] |
invoke(java.lang.String function,
java.lang.Object[] args,
RequestConfig config)
The dynamic method for invoking data service functions. |
java.lang.Object[] |
invokeProcedure(java.lang.String procedure,
java.lang.Object[] args)
The dynamic method for invoking data service functions marked as having side-effects, aka Procedures. |
java.lang.Object[] |
invokeProcedure(java.lang.String procedure,
java.lang.Object[] args,
RequestConfig config)
The dynamic method for invoking data service functions marked as having side-effects, aka Procedures. |
java.util.Properties |
submit(commonj.sdo.DataObject dataObject)
Submits data object changes for updates to back-end systems. |
java.util.Properties[] |
submit(commonj.sdo.DataObject[] dataObject)
Submits array of data object changes for updates to source systems. |
Method Detail |
public java.util.Properties submit(commonj.sdo.DataObject dataObject) throws SDOMediatorException
dataObject
- The data object to be submitted.
SDOMediatorException
public java.util.Properties[] submit(commonj.sdo.DataObject[] dataObject) throws SDOMediatorException
dataObject
- The data object to be submitted.
SDOMediatorException
public com.bea.xml.XmlObject[] invoke(java.lang.String function, java.lang.Object[] args) throws SDOMediatorException
function
- The name of the function in the data service to be
invoked.args
- The arguments to the function. For non-argument
functions, use null.
SDOMediatorException
public com.bea.xml.XmlObject[] invoke(java.lang.String function, java.lang.Object[] args, RequestConfig config) throws SDOMediatorException
function
- The name of the function in the data service to be
invoked.args
- The arguments to the function. For non-argument
functions, use null.config
- A RequestConfig for controlling how the server
will invoke this function, and for allowing return of
out-of-band results such as server audit information.
RequestConfig.OUTPUT_FILENAME
or RequestConfig.COMPILE_ONLY
is specified, otherwise
a non-null array will be returned. If the function produces
empty results, a zero-element array will be returned.
SDOMediatorException
public java.lang.Object[] invokeProcedure(java.lang.String procedure, java.lang.Object[] args) throws SDOMediatorException
procedure
- The name of the procedure in the data service
to be invoked.args
- The arguments to the procedure. For non-argument
functions, use null.
SDOMediatorException
public java.lang.Object[] invokeProcedure(java.lang.String procedure, java.lang.Object[] args, RequestConfig config) throws SDOMediatorException
procedure
- The name of the procedure in the data service
to be invoked.args
- The arguments to the procedure. For non-argument
functions, use null.config
- A RequestConfig for controlling how the server
will invoke this function, and for allowing return of
out-of-band results such as server audit information.
RequestConfig.OUTPUT_FILENAME
or RequestConfig.COMPILE_ONLY
is specified, otherwise
a non-null array will be returned. If the function produces
empty results, a zero-element array will be returned.
SDOMediatorException
public commonj.sdo.DataObject createRootDataObject() throws SDOMediatorException
SDOMediatorException
public boolean clearResultCache(java.lang.String function, int arity) throws SDOMediatorException
function
- Function name.arity
- Arity (# args) of function.
SDOMediatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |