public class BulkResponseImpl extends JAXRResponseImpl implements BulkResponse
requestId, statusSTATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING| Constructor and Description |
|---|
BulkResponseImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getRequestId, getStatus, isAvailable, setRequestId, setStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestId, getStatus, isAvailablepublic 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 otherwiseJAXRException - If the JAXR provider encounters an internal errorpublic void setPartialResponse(boolean isPartial)
throws JAXRException
JAXRExceptionpublic void setPartialResponse(String isPartial) throws JAXRException
JAXRExceptionpublic void updateResponse(BulkResponse update) throws JAXRException
JAXRExceptionpublic static BulkResponse combineBulkResponses(Collection responses)
responses - A Collection of BulkResponsesCopyright © 2005–2017 Oracle Corporation. All rights reserved.