com.bigllc.retsiq.simpleclient
Class UpdateResponse

java.lang.Object
  extended by com.bigllc.retsiq.simpleclient.UpdateResponse

public class UpdateResponse
extends java.lang.Object

Update response bean. Supplies response information from update transaction such as field errors and the returned record.

Author:
Marc G. Smith

Method Summary
 java.util.List<UpdateError> getErrors()
          If any field errors were returned then the list will contain all the errors returned from the server.
 int getResponseCode()
          Get the response code returned by the server.
 java.lang.String getResponseText()
          Get the response text returned by the server.
 java.util.Map<java.lang.String,java.lang.String> getReturnedRecord()
          Get a map with the returned record from the server.
 boolean getUpdateSuccess()
          Check if the response code from the server was operational successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReturnedRecord

public java.util.Map<java.lang.String,java.lang.String> getReturnedRecord()
Get a map with the returned record from the server. The map contains a column name for the key and the field value as the related entry.

Returns:
the record returned from the server.

getErrors

public java.util.List<UpdateError> getErrors()
If any field errors were returned then the list will contain all the errors returned from the server. The return value will be an empty list of no errors were reported. There is no need to check for a null list.

Returns:
a list containing any update field errors or an empty list if successful or no errors were returned.

getUpdateSuccess

public boolean getUpdateSuccess()
Check if the response code from the server was operational successful.

Returns:
true if response code was successful, false otherwise.

getResponseCode

public int getResponseCode()
Get the response code returned by the server. Note that the response code will either be 0 for successful or 20301 for invalid parameter. All other errors are reported via an exception thrown by the update method on RETSSessionUser.update().

Returns:
a RETS response code.
See Also:
com.bigllc.retsiq.simpleclient.RETSUserSession#update(String, Map, boolean)

getResponseText

public java.lang.String getResponseText()
Get the response text returned by the server.

Returns:
the RETS response text .