org.geotools.data.wfs.v1_0_0
Class TransactionResult

Object
  extended by TransactionResult

public class TransactionResult
extends Object

Holds the transaction response document.

Author:
dzwiers

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

NO_STATUS

public static final int NO_STATUS
no status

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
success

See Also:
Constant Field Values

FAILED

public static final int FAILED
failed

See Also:
Constant Field Values

PARTIAL

public static final int PARTIAL
partial

See Also:
Constant Field Values
Constructor Detail

TransactionResult

public TransactionResult(int status,
                         List<String> insertResult,
                         SAXException error)
Parameters:
status -
insertResult -
error -

TransactionResult

public TransactionResult(int status,
                         List<String> insertResult,
                         String locator,
                         String message)
Parameters:
status -
insertResult -
locator - nullable
message -
Method Detail

parseStatus

public static int parseStatus(String s)
Parameters:
s -
Returns:
one of the constant status'

printStatus

public static String printStatus(int i)
Used to convert getStatus() into a string for display.

Parameters:
i -
Returns:
String representation of the constant value in i

getError

public SAXException getError()
SAXException in the event the response could not be processed.

Returns:
Returns the error.

getInsertResult

public List<String> getInsertResult()
A list of the fids returned in the TransactionResult in the order they were received. The first element is the FID of the first InsertResults response.

Returns:
list of the fids returned in the TransactionResult in the order they were received.

getStatus

public int getStatus()
Status of result (either FAILED, NO_STATUS, PARTIAL or SUCCESS).

Returns:
Returns the status.


Copyright © 1996-2014 Geotools. All Rights Reserved.