com.ibm.commerce.negotiation.beans
Class MessageDataBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.MessageAccessBean
          com.ibm.commerce.negotiation.beans.MessageDataBean
All Implemented Interfaces:
DataBean, InputDataBean, MessageAccessBeanData, MessageInputDataBean, MessageSmartDataBean, java.io.Serializable, SmartDataBean

public class MessageDataBean
extends MessageAccessBean
implements MessageInputDataBean, MessageSmartDataBean, SmartDataBean

Retrieves information about a message. The primary key is message id.

See Also:
Serialized Form

Field Summary
protected java.lang.String aString
protected CommandContext commandContext
protected java.lang.String messageId
protected java.lang.String msgSenderId
protected TypedProperty requestProperties
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean
COPYRIGHT
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
MessageDataBean()
Constructs a MessageDataBean object.
MessageDataBean(MessageAccessBean anAccessBean)
Constructs a MessageDataBean object.
Method Summary
CommandContext getCommandContext()
Get command context.
java.lang.String getMessageId()
Get message id.
java.lang.String getMsgDelayDate()
Get message delay date.
java.lang.String getMsgDelayTime()
Get message delay time.
java.lang.String getMsgPostDate()
Get message post date.
java.lang.String getMsgPostTime()
Get message post time.
TypedProperty getRequestProperties()
Fetches the command properties.
void populate()
Retrieves message information and populates MessageDataBean object.
void setCommandContext(CommandContext aCommandContext)
Set command context.
void setMessageId(java.lang.String newMessageId)
Set message id.
void setRequestProperties(TypedProperty newRequestProperties)
Copies the request properties.
Methods inherited from class com.ibm.commerce.negotiation.objects.MessageAccessBean
commitCopyHelper, defaultJNDIName, findAllMessages, findBySender, getBase, getBaseInEJBType, getContent, getDelayTime, getDelayTimeInEJBType, getId, getIdInEJBType, getMsgParam1, getMsgParam2, getMsgParam3, getMsgType, getMsgTypeInEJBType, getPostTime, getPostTimeInEJBType, getSenderId, getSenderIdInEJBType, getSubject, getTargetId, getTargetIdInEJBType, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, sendTo, setBase, setBase, setContent, setDelayTime, setDelayTime, setDelayTimePeriod, setId, setId, setInitKey_id, setMsgParam1, setMsgParam2, setMsgParam3, setMsgStatus, setMsgType, setMsgType, setPostTime, setPostTime, setSenderId, setSenderId, setSendStatus, setSubject, setTargetId, setTargetId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

messageId

protected java.lang.String messageId

msgSenderId

protected java.lang.String msgSenderId

aString

protected java.lang.String aString

commandContext

protected CommandContext commandContext

requestProperties

protected TypedProperty requestProperties
Constructor Detail

MessageDataBean

public MessageDataBean()
Constructs a MessageDataBean object.

MessageDataBean

public MessageDataBean(MessageAccessBean anAccessBean)
                throws java.lang.Exception
Constructs a MessageDataBean object.
Method Detail

getCommandContext

public CommandContext getCommandContext()
Get command context.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
The command context.

getMessageId

public java.lang.String getMessageId()
Get message id. This is the primary key.
Specified by:
getMessageId in interface MessageSmartDataBean

getMsgDelayDate

public java.lang.String getMsgDelayDate()
Get message delay date.
Specified by:
getMsgDelayDate in interface MessageSmartDataBean
Returns:
message delay date. Format yyyy-mm-dd.

getMsgDelayTime

public java.lang.String getMsgDelayTime()
Get message delay time.
Specified by:
getMsgDelayTime in interface MessageSmartDataBean
Returns:
message delay time. Format hh:mm:ss.

getMsgPostDate

public java.lang.String getMsgPostDate()
Get message post date. This date is when message is sent.
Specified by:
getMsgPostDate in interface MessageSmartDataBean
Returns:
message post date. Format yyyy-mm-dd.

getMsgPostTime

public java.lang.String getMsgPostTime()
Get message post time.
Specified by:
getMsgPostTime in interface MessageSmartDataBean
Returns:
message post time. Format hh:mm:ss.

getRequestProperties

public TypedProperty getRequestProperties()
Fetches the command properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
com.ibm.commerce.datatype.TypedProperty

populate

public void populate()
              throws java.lang.Exception
Retrieves message information and populates MessageDataBean object.
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception - if there is a problem populating the databean with data.

setCommandContext

public void setCommandContext(CommandContext aCommandContext)
Set command context.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
aCommandContext - The command context..

setMessageId

public void setMessageId(java.lang.String newMessageId)
Set message id. This is the primary key.
Specified by:
setMessageId in interface MessageInputDataBean

setRequestProperties

public void setRequestProperties(TypedProperty newRequestProperties)
Copies the request properties.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
newRequestProperties - com.ibm.commerce.datatype.TypedProperty

Feedback