com.ibm.commerce.negotiation.objects
Class MessageMemberRelationAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.MessageMemberRelationAccessBean
All Implemented Interfaces:
MessageMemberRelationAccessBeanData

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

This table describes the relationship between a message and a member. This access bean corresponds to the database table 'MSGMEMREL'.

See Also:
Serialized Form

Constructor Summary
MessageMemberRelationAccessBean()
Zero argument constructor used to initialize the access bean.
MessageMemberRelationAccessBean(javax.ejb.EJBObject o)
constructor
MessageMemberRelationAccessBean(java.lang.Long arg1, java.lang.Long arg2)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByRecipient(java.lang.Integer memberid)
Retrieves all message/member relationship records for the specified recipient.
java.util.Enumeration findByStatus(java.lang.String stat)
Retrieves all message/member relationship records of the specified stat.
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
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()
This method accesses a non-CMP field
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).
java.lang.String getStatus()
This method provides access to the MSGMEMREL.STATUS column of DB2 type CHAR(4) NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setId(java.lang.Long newValue)
This method accesses a non-CMP field
void setId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_id(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_recipientId(java.lang.Long newValue)
Set the primary key for this object
void setRecipientId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRecipientId(java.lang.String newValue)
This method accesses a non-CMP field
void setSendStatus(java.lang.String newValue)
This method accesses a non-CMP field
void setStatus(java.lang.String newValue)
This method accesses a non-CMP field
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: setInitKey_id( java.lang.Long ) setInitKey_recipientId( java.lang.Long )

MessageMemberRelationAccessBean

public MessageMemberRelationAccessBean(javax.ejb.EJBObject o)
                                throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

MessageMemberRelationAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
arg1 - The message id.
arg2 - The id of the user who will receive the message.
Method Detail

findByRecipient

public java.util.Enumeration findByRecipient(java.lang.Integer memberid)
                                      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:
memberid - The id of the user who will receive the message.
Returns:
An Enumeration of all the MessageMemberRelationAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByStatus

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

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

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

SELECT * FROM MSGMEMREL T1 WHERE T1.STATUS = ?

Parameters:
stat - The message stat. 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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_id

public void setInitKey_id(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_recipientId

public void setInitKey_recipientId(java.lang.Long newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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).

The following is a description of this column:

Send status. Valid values are as follows:&l

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

setSendStatus

public void setSendStatus(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setSendStatus in interface MessageMemberRelationAccessBeanData

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 are as follows:&l

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

setStatus

public void setStatus(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStatus in interface MessageMemberRelationAccessBeanData

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setId

public void setId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setId in interface MessageMemberRelationAccessBeanData

setId

public void setId(java.lang.Long newValue)
This method accesses a non-CMP field

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRecipientId

public void setRecipientId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setRecipientId in interface MessageMemberRelationAccessBeanData

setRecipientId

public void setRecipientId(java.lang.Long newValue)
This method accesses a non-CMP field

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback