java.lang.Object | |||
↳ | org.mule.modules.oracle.model.AbstractDataObject | ||
↳ | com.oracle.xmlns.svc.DataObject | ||
↳ | com.oracle.xmlns.svc.BatchRequest |
Represents a bundle of method invocation requests to be performed on a Service Service in one round-trip.
Example:
DataObjectFactory fac = ...
BatchRequest batch = fac.createDataObject(BatchRequest.QUALIFIED_NAME);
//Add a method Request
List processDataListParams = ArrayList(4);
processDataListParams.add(dataSource);
processDataListParams.add(operation);
processDataListParams.add(processControl);
processDataListParams.add(dataList);
batch.addMethodRequest("MyRequest1", "processDataList", processDataListParams);
//Add a method Request
List myMethodParams = ArrayList(1);
myMethodParams.add("Hello");
batch.addMethodRequest("MyRequest2", "myMethod", myMethodParams);
batch.setTransactionMode(transactionMode);
svc.invokeServiceBatch(batch);
BatchResponse
Java class for BatchRequest complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="BatchRequest">
<complexContent>
<extension base="{http://xmlns.oracle.com/svc}DataObject">
<sequence>
<element name="TransactionMode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="MethodRequest" type="{http://xmlns.oracle.com/svc}MethodRequest" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
methodRequest | |||||||||||
transactionMode |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value of the methodRequest property.
| |||||||||||
Gets the value of the transactionMode property.
| |||||||||||
Sets the value of the methodRequest property.
| |||||||||||
Sets the value of the transactionMode property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.oracle.model.AbstractDataObject
| |||||||||||
From class
java.lang.Object
|
Gets the value of the methodRequest property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the methodRequest property.
For example, to add a new item, do as follows:
getMethodRequest().add(newItem);
Objects of the following type(s) are allowed in the list
MethodRequest
Gets the value of the transactionMode property.
Sets the value of the methodRequest property.
methodRequest | Allowed object is
MethodRequest
|
---|
Sets the value of the transactionMode property.
value | Allowed object is String |
---|