pt.moredata.dataentry.core
Class DefaultResponseMessage

java.lang.Object
  extended bypt.moredata.dataentry.core.AbstractMessage
      extended bypt.moredata.dataentry.core.DefaultResponseMessage
All Implemented Interfaces:
Message, ResponseMessage, java.io.Serializable

public class DefaultResponseMessage
extends AbstractMessage
implements ResponseMessage, java.io.Serializable

Company MoreData

Version:
$Revision: 1.9 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface pt.moredata.dataentry.core.ResponseMessage
EXEC_CANCEL, EXEC_ERROR, EXEC_SUCESS
 
Constructor Summary
DefaultResponseMessage(DataEntry dataEntry)
          Cria um novo RequestMessage com a entrada de dados proveniente do RequestManager e uma vista sobre o DAO usado no pedido.
DefaultResponseMessage(int executionCode)
          Creates a new instance of SimpleAnswerMessage
DefaultResponseMessage(java.lang.String errorString, java.lang.Throwable cause)
          Creates a new instance of SimpleAnswerMessage
 
Method Summary
 DataEntry getDataEntry()
          Devolve o DataEntry usado pelo pedido
 java.lang.String getErrorString()
          Getter for property errorString.
 java.lang.Throwable getException()
          Getter for property exception.
 int getExecutionCode()
          Devolve um codigo que indica o resultado da execução da Action.
 void setErrorString(java.lang.String errorString)
          Setter for property errorString.
 void setException(java.lang.Throwable exception)
          Setter for property exception.
 
Methods inherited from class pt.moredata.dataentry.core.AbstractMessage
getParameter, putParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pt.moredata.dataentry.core.Message
getParameter, putParameter
 

Constructor Detail

DefaultResponseMessage

public DefaultResponseMessage(DataEntry dataEntry)
                       throws NullDataEntryException
Cria um novo RequestMessage com a entrada de dados proveniente do RequestManager e uma vista sobre o DAO usado no pedido. O dataEntry e actualizado com o daoView

Parameters:
dataEntry - Entrada de dados usada no pedido.
Throws:
NullDataEntryException - Se o dataEntry for nulo.

DefaultResponseMessage

public DefaultResponseMessage(java.lang.String errorString,
                              java.lang.Throwable cause)
Creates a new instance of SimpleAnswerMessage

Parameters:
errorString - Menssagem de erro.
cause - Excepcao gerada

DefaultResponseMessage

public DefaultResponseMessage(int executionCode)
Creates a new instance of SimpleAnswerMessage

Method Detail

getDataEntry

public DataEntry getDataEntry()
Devolve o DataEntry usado pelo pedido

Specified by:
getDataEntry in interface ResponseMessage
Returns:
O DataEntry usado pelo pedido

getErrorString

public java.lang.String getErrorString()
Getter for property errorString.

Specified by:
getErrorString in interface ResponseMessage
Returns:
Value of property errorString.

setErrorString

public void setErrorString(java.lang.String errorString)
Setter for property errorString.

Specified by:
setErrorString in interface ResponseMessage
Parameters:
errorString - New value of property errorString.

getException

public java.lang.Throwable getException()
Getter for property exception.

Specified by:
getException in interface ResponseMessage
Returns:
Value of property exception.

setException

public void setException(java.lang.Throwable exception)
Setter for property exception.

Specified by:
setException in interface ResponseMessage
Parameters:
exception - New value of property exception.

getExecutionCode

public int getExecutionCode()
Devolve um codigo que indica o resultado da execução da Action.

Specified by:
getExecutionCode in interface ResponseMessage