org.deegree_impl.services.wcas.protocol
Class CASTransactionResponse_Impl

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebServiceResponse_Impl
      extended byorg.deegree_impl.services.wcas.protocol.CASTransactionResponse_Impl
All Implemented Interfaces:
CASTransactionResponse, OGCWebServiceResponse

public final class CASTransactionResponse_Impl
extends OGCWebServiceResponse_Impl
implements CASTransactionResponse

--------------------------------------------------------------------

Version:
2002-04-16
Author:
Andreas Poth

Field Summary
private  java.lang.String handle
           
private  java.util.ArrayList insertResults
           
private  java.lang.String locator
           
private  java.lang.String message
           
private  java.lang.String status
           
 
Fields inherited from class org.deegree_impl.services.OGCWebServiceResponse_Impl
 
Constructor Summary
(package private) CASTransactionResponse_Impl(OGCWebServiceRequest request, org.w3c.dom.Document exception, CASInsertResult[] insertResults, java.lang.String status, java.lang.String handle)
          Creates a new CASTransactionResponse_Impl object.
 
Method Summary
 void addInserResult(CASInsertResult insertResult)
           
 java.lang.String getHandle()
          The handle attribute is included to allow a server to associate any text to the response.
 CASInsertResult[] getInsertResult()
          The is used to delimit one or more feature identifiers of newly created features.
 java.lang.String getLocator()
          In the event that a transaction request fails, the can be used to indicate which part of the transaction failed.
 java.lang.String getMessage()
          Returns any error messages.
 java.lang.String getStatus()
          A transaction can terminate with a status of: SUCCESS: The transaction was successfully completed.
 void setHandle(java.lang.String handle)
           
 void setInsertResult(CASInsertResult[] insertResults)
           
 void setLocator(java.lang.String locator)
           
 void setMessage(java.lang.String message)
           
 void setStatus(java.lang.String status)
           
 java.lang.String toString()
           
 
Methods inherited from class org.deegree_impl.services.OGCWebServiceResponse_Impl
getException, getRequest, setException, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.services.OGCWebServiceResponse
getException, getRequest, setException, setRequest
 

Field Detail

insertResults

private java.util.ArrayList insertResults

handle

private java.lang.String handle

locator

private java.lang.String locator

message

private java.lang.String message

status

private java.lang.String status
Constructor Detail

CASTransactionResponse_Impl

CASTransactionResponse_Impl(OGCWebServiceRequest request,
                            org.w3c.dom.Document exception,
                            CASInsertResult[] insertResults,
                            java.lang.String status,
                            java.lang.String handle)
Creates a new CASTransactionResponse_Impl object.

Parameters:
request -
exception -
insertResults -
status -
handle -
Method Detail

getInsertResult

public CASInsertResult[] getInsertResult()
The is used to delimit one or more feature identifiers of newly created features. The insert results are reported in the order in which the operations were specified in the request. Additionally, they can be correlated using the handle attribute.

Specified by:
getInsertResult in interface CASTransactionResponse

addInserResult

public void addInserResult(CASInsertResult insertResult)
See Also:
getInsertResult()

setInsertResult

public void setInsertResult(CASInsertResult[] insertResults)
See Also:
getInsertResult()

getStatus

public java.lang.String getStatus()
A transaction can terminate with a status of:
  • SUCCESS: The transaction was successfully completed.
  • FAILED: One or more operations in the transaction failed.
  • PARTIAL: The transaction partially succeeded and the data may be in an inconsistent state. For systems that do not support atomic transactions, this outcome is a distinct possibility.

    Specified by:
    getStatus in interface CASTransactionResponse

  • setStatus

    public void setStatus(java.lang.String status)
    See Also:
    getStatus()

    getLocator

    public java.lang.String getLocator()
    In the event that a transaction request fails, the can be used to indicate which part of the transaction failed. If the failed operation is labeled using a handle attribute then that can be used to locate the failure. Otherwise, the web feature server may try to identify the failure relative to the beginning of the transaction request possibly using line numbers or some other convenient mechanism.

    Specified by:
    getLocator in interface CASTransactionResponse

    setLocator

    public void setLocator(java.lang.String locator)
    See Also:
    getLocator()

    getMessage

    public java.lang.String getMessage()
    Returns any error messages.

    Specified by:
    getMessage in interface CASTransactionResponse

    setMessage

    public void setMessage(java.lang.String message)
    See Also:
    getMessage()

    getHandle

    public java.lang.String getHandle()
    The handle attribute is included to allow a server to associate any text to the response. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail.

    Specified by:
    getHandle in interface CASTransactionResponse

    setHandle

    public void setHandle(java.lang.String handle)
    See Also:
    getHandle()

    toString

    public java.lang.String toString()
    Overrides:
    toString in class OGCWebServiceResponse_Impl
    Returns: