com.ibm.commerce.negotiation.beans
Class MessageCountDataBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.MessageCountAccessBean
          com.ibm.commerce.negotiation.beans.MessageCountDataBean
All Implemented Interfaces:
DataBean, InputDataBean, MessageCountAccessBeanData, MessageCountInputDataBean, MessageCountSmartDataBean, java.io.Serializable, SmartDataBean

public class MessageCountDataBean
extends MessageCountAccessBean
implements MessageCountInputDataBean, MessageCountSmartDataBean, SmartDataBean

Returns the total count of messages for the specified user and message status. The primary key is recipient Id and message status.

See Also:
Serialized Form

Field Summary
protected java.lang.String aString
protected CommandContext commandContext
protected java.lang.String msgRecipientId
protected java.lang.String msgStatus
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
MessageCountDataBean()
Constructs a MessageCountDataBean object.
MessageCountDataBean(MessageCountAccessBean anAccessBean)
Constructs a MessageCountDataBean object.
Method Summary
CommandContext getCommandContext()
Get command context.
TypedProperty getRequestProperties()
Fetches the command properties.
void populate()
Retrieves message count and populates MessageCountDataBean object.
void setCommandContext(CommandContext aCommandContext)
Set command context.
void setMsgRecipientId(java.lang.String newRecipientId)
Set message recipient id.
void setMsgStatus(java.lang.String newMsgStatus)
Set message status.
void setRequestProperties(TypedProperty newRequestProperties)
Copies the command input properties.
Methods inherited from class com.ibm.commerce.negotiation.objects.MessageCountAccessBean
commitCopyHelper, defaultJNDIName, findAll, findByRecipient, findByRecipientAndMultipleStatus, findByRecipientAndStatus, getCount, getCountInEJBType, getRecipientId, getRecipientIdInEJBType, getStatus, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, setInitKey_recipientId, setInitKey_status
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

msgRecipientId

protected java.lang.String msgRecipientId

msgStatus

protected java.lang.String msgStatus

aString

protected java.lang.String aString

commandContext

protected CommandContext commandContext

requestProperties

protected TypedProperty requestProperties
Constructor Detail

MessageCountDataBean

public MessageCountDataBean()
Constructs a MessageCountDataBean object.

MessageCountDataBean

public MessageCountDataBean(MessageCountAccessBean anAccessBean)
                     throws java.lang.Exception
Constructs a MessageCountDataBean object.
Method Detail

getCommandContext

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

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 count and populates MessageCountDataBean 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..

setMsgRecipientId

public void setMsgRecipientId(java.lang.String newRecipientId)
Set message recipient id.
Specified by:
setMsgRecipientId in interface MessageCountInputDataBean

setMsgStatus

public void setMsgStatus(java.lang.String newMsgStatus)
Set message status.
Specified by:
setMsgStatus in interface MessageCountInputDataBean

setRequestProperties

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

Feedback