|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTransactionResult
public class TransactionResult
Holds the transaction response document.
Field Summary | |
---|---|
static int |
FAILED
failed |
static int |
NO_STATUS
no status |
static int |
PARTIAL
partial |
static int |
SUCCESS
success |
Constructor Summary | |
---|---|
TransactionResult(int status,
List<String> insertResult,
SAXException error)
|
|
TransactionResult(int status,
List<String> insertResult,
String locator,
String message)
|
Method Summary | |
---|---|
SAXException |
getError()
SAXException in the event the response could not be processed. |
List<String> |
getInsertResult()
A list of the fids returned in the TransactionResult in the order they were received. |
int |
getStatus()
Status of result (either FAILED, NO_STATUS, PARTIAL or SUCCESS). |
static int |
parseStatus(String s)
|
static String |
printStatus(int i)
Used to convert getStatus() into a string for display. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_STATUS
public static final int SUCCESS
public static final int FAILED
public static final int PARTIAL
Constructor Detail |
---|
public TransactionResult(int status, List<String> insertResult, SAXException error)
status
- insertResult
- error
- public TransactionResult(int status, List<String> insertResult, String locator, String message)
status
- insertResult
- locator
- nullablemessage
- Method Detail |
---|
public static int parseStatus(String s)
s
-
public static String printStatus(int i)
i
-
public SAXException getError()
public List<String> getInsertResult()
public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |