|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.registry.common.JAXRResponseImpl
com.sun.xml.registry.common.BulkResponseImpl
public class BulkResponseImpl
Implementation of BulkResponse.
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.registry.common.JAXRResponseImpl |
|---|
requestId, status |
| Fields inherited from interface javax.xml.registry.JAXRResponse |
|---|
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING |
| Constructor Summary | |
|---|---|
BulkResponseImpl()
|
|
| Method Summary | |
|---|---|
void |
addCollection(Collection bCollection)
Helper method for adding to the response's already existing collection. |
void |
addException(Collection bException)
Add multiple exceptions to exception collection. |
void |
addException(JAXRException except)
Add single exception to exceptions collection. |
static BulkResponse |
combineBulkResponses(Collection responses)
Utility method for combining the contents of many bulk responses into one. |
Collection |
getCollection()
Get the Collection of of objects returned as a response of a bulk operation. |
Collection |
getExceptions()
Get the JAXRException in case of partial commit. |
boolean |
isPartialResponse()
Returns true if the reponse is a partial response due to a large result set. |
void |
setCollection(Collection collection)
Set the collection of the bulk response. |
void |
setExceptions(Collection bException)
Add multiple exceptions to exception collection. |
void |
setPartialResponse(boolean isPartial)
Sets isPartial, which is true in the case of a large result set. |
void |
setPartialResponse(String isPartial)
Bindings classes return a string rather than boolean, which is passed here to set isPartial. |
void |
updateResponse(BulkResponse update)
Updates information in BulkResponse in the case of asynchronous connection. |
| Methods inherited from class com.sun.xml.registry.common.JAXRResponseImpl |
|---|
getRequestId, getStatus, isAvailable, setRequestId, setStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.registry.JAXRResponse |
|---|
getRequestId, getStatus, isAvailable |
| Constructor Detail |
|---|
public BulkResponseImpl()
| Method Detail |
|---|
public Collection getCollection()
throws JAXRException
getCollection in interface BulkResponseJAXRException - If the JAXR provider encounters an internal errorRegistryObjectpublic void setCollection(Collection collection)
public void addCollection(Collection bCollection)
public Collection getExceptions()
throws JAXRException
getExceptions in interface BulkResponseJAXRException - If the JAXR provider encounters an internal errorRegistryExceptionpublic void addException(Collection bException)
public void setExceptions(Collection bException)
public void addException(JAXRException except)
public boolean isPartialResponse()
throws JAXRException
isPartialResponse in interface BulkResponsetrue if the response is partial; false otherwise
JAXRException - If the JAXR provider encounters an internal error
public void setPartialResponse(boolean isPartial)
throws JAXRException
JAXRException
public void setPartialResponse(String isPartial)
throws JAXRException
JAXRException
public void updateResponse(BulkResponse update)
throws JAXRException
JAXRExceptionpublic static BulkResponse combineBulkResponses(Collection responses)
responses - A Collection of BulkResponses
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||