com.ibm.commerce.negotiation.objects
Class MessageMemberRelationAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.MessageMemberRelationAccessBean
All Implemented Interfaces:
MessageMemberRelationAccessBeanData, java.io.Serializable

public class MessageMemberRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MessageMemberRelationAccessBeanData

This bean provides access to the MSGMEMREL table.

The following is a description of this table:

This table describes the message and member relationship.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MessageMemberRelationAccessBean()
          Zero argument constructor used to initialize the access bean.
MessageMemberRelationAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
MessageMemberRelationAccessBean(java.lang.Long msgId, java.lang.Long memberId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByRecipient(java.lang.Integer recipientId)
          Retrieves all message/member relationship records for the specified recipient.
 java.util.Enumeration findByStatus(java.lang.String status)
          Retrieves all message/member relationship records of the specified status.
 boolean fulfills(java.lang.Long aFills1, java.lang.String aFills2)
          IBM internal use only.
 java.lang.String getId()
          This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getIdInEJBType()
          This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOwner()
          The ID of the user who will receive the message.
 java.lang.String getRecipientId()
          This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getRecipientIdInEJBType()
          This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getSendStatus()
          This method provides access to the MSGMEMREL.SENDSTAT column of DB2 type CHAR(4) NULL.
 java.lang.String getStatus()
          This method provides access to the MSGMEMREL.STATUS column of DB2 type CHAR(4) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setId(java.lang.Long aId1)
          This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 void setId(java.lang.String aId1)
          This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_id(java.lang.Long aInitKey_id1)
          Set the primary key for this object
 void setInitKey_recipientId(java.lang.Long aInitKey_recipientId1)
          Set the primary key for this object
 void setRecipientId(java.lang.Long aRecipientId1)
          This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setRecipientId(java.lang.String aRecipientId1)
          This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setSendStatus(java.lang.String aSendStatus1)
          This method provides access to the MSGMEMREL.SENDSTAT column of DB2 type CHAR(4) NULL.
 void setStatus(java.lang.String aStatus1)
          This method provides access to the MSGMEMREL.STATUS column of DB2 type CHAR(4) NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageMemberRelationAccessBean

public MessageMemberRelationAccessBean()

Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method:

public abstract com.ibm.commerce.negotiation.objects.MessageMemberRelation com.ibm.commerce.negotiation.objimpl.MessageMemberRelationHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.MessageMemberRelationKey) throws java.rmi.RemoteException,javax.ejb.FinderException

The home interface method properties need to be set by calling the following setter methods before calling any business methods:


MessageMemberRelationAccessBean

public MessageMemberRelationAccessBean(javax.ejb.EJBObject object)
                                throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception.

MessageMemberRelationAccessBean

public MessageMemberRelationAccessBean(java.lang.Long msgId,
                                       java.lang.Long memberId)
                                throws javax.ejb.CreateException,
                                       java.rmi.RemoteException,
                                       javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
msgId - The message id.
memberId - The id of the user who will receive the message.
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByRecipient

public java.util.Enumeration findByRecipient(java.lang.Integer recipientId)
                                      throws java.rmi.RemoteException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

Retrieves all message/member relationship records for the specified recipient.

The SQL query used to fetch all the required rows from the MSGMEMREL table is:

SELECT * FROM MSGMEMREL T1 WHERE T1.MEMBER_ID = ?

Parameters:
recipientId - The id of the user who will receive the message.
Returns:
An Enumeration of all the MessageMemberRelationAccessBeans representing rows that match the search criteria.

findByStatus

public java.util.Enumeration findByStatus(java.lang.String status)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves all message/member relationship records of the specified status.

The SQL query used to fetch all the required rows from the MSGMEMREL table is:

SELECT * FROM MSGMEMREL T1 WHERE T1.STATUS = ?

Parameters:
status - The message status. Valid values: N=new message not read by recipient, O=opened, recipient has read the message, D=delete, recipient has deleted the message.
Returns:
An Enumeration of all the MessageMemberRelationAccessBeans representing rows that match the search criteria.

fulfills

public boolean fulfills(java.lang.Long aFills1,
                        java.lang.String aFills2)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException

IBM internal use only.

Parameters:
aFills1 - java.lang.Long
aFills2 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getId

public java.lang.String getId()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID.

Specified by:
getId in interface MessageMemberRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getIdInEJBType

public java.lang.Long getIdInEJBType()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

The ID of the user who will receive the message.

Returns:
The member Id.
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getRecipientId

public java.lang.String getRecipientId()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the user who will receive the message.

Specified by:
getRecipientId in interface MessageMemberRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getRecipientIdInEJBType

public java.lang.Long getRecipientIdInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the user who will receive the message.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getSendStatus

public java.lang.String getSendStatus()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the MSGMEMREL.SENDSTAT column of DB2 type CHAR(4) NULL.

The following is a description of this column:

Send status. Valid values: N=not sent by e-mail, S=sent by e-mail.

Specified by:
getSendStatus in interface MessageMemberRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStatus

public java.lang.String getStatus()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException

This method provides access to the MSGMEMREL.STATUS column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Message status. Valid values: N=new message not read by recipient, O=opened, recipient has read the message, D=delete, recipient has deleted the message.

Specified by:
getStatus in interface MessageMemberRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setId

public void setId(java.lang.Long aId1)

This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID.

Parameters:
aId1 - java.lang.Long
Returns:
void

setId

public void setId(java.lang.String aId1)

This method provides access to the MSGMEMREL.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID.

Specified by:
setId in interface MessageMemberRelationAccessBeanData
Parameters:
aId1 - java.lang.String
Returns:
void

setInitKey_id

public void setInitKey_id(java.lang.Long aInitKey_id1)

Set the primary key for this object

Parameters:
aInitKey_id1 - java.lang.Long
Returns:
void

setInitKey_recipientId

public void setInitKey_recipientId(java.lang.Long aInitKey_recipientId1)

Set the primary key for this object

Parameters:
aInitKey_recipientId1 - java.lang.Long
Returns:
void

setRecipientId

public void setRecipientId(java.lang.Long aRecipientId1)

This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the user who will receive the message.

Parameters:
aRecipientId1 - java.lang.Long
Returns:
void

setRecipientId

public void setRecipientId(java.lang.String aRecipientId1)

This method provides access to the MSGMEMREL.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the user who will receive the message.

Specified by:
setRecipientId in interface MessageMemberRelationAccessBeanData
Parameters:
aRecipientId1 - java.lang.String
Returns:
void

setSendStatus

public void setSendStatus(java.lang.String aSendStatus1)

This method provides access to the MSGMEMREL.SENDSTAT column of DB2 type CHAR(4) NULL.

The following is a description of this column:

Send status. Valid values: N=not sent by e-mail, S=sent by e-mail.

Specified by:
setSendStatus in interface MessageMemberRelationAccessBeanData
Parameters:
aSendStatus1 - java.lang.String
Returns:
void

setStatus

public void setStatus(java.lang.String aStatus1)

This method provides access to the MSGMEMREL.STATUS column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Message status. Valid values: N=new message not read by recipient, O=opened, recipient has read the message, D=delete, recipient has deleted the message.

Specified by:
setStatus in interface MessageMemberRelationAccessBeanData
Parameters:
aStatus1 - java.lang.String
Returns:
void