com.ibm.commerce.negotiation.objects
Class MessageCountAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.MessageCountAccessBean
All Implemented Interfaces:
MessageCountAccessBeanData
Direct Known Subclasses:
MessageCountDataBean

public class MessageCountAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MessageCountAccessBeanData

Reserved for IBM internal use. This access bean corresponds to the database table 'MSGCOUNTVW'.

See Also:
Serialized Form

Constructor Summary
MessageCountAccessBean()
Zero argument constructor used to initialize the access bean.
MessageCountAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll()
Retrieves all message counts.
java.util.Enumeration findByRecipient(java.lang.Long recipient)
Retrieves all message counts for the recipient.
java.util.Enumeration findByRecipientAndMultipleStatus(java.lang.Long arg0, java.lang.String[] arg1)
java.util.Enumeration findByRecipientAndStatus(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getCount()
This method accesses a non-CMP field
int getCountInEJBType()
This method accesses a non-CMP field
java.lang.String getRecipientId()
This method accesses a non-CMP field
java.lang.Long getRecipientIdInEJBType()
This method accesses a non-CMP field
java.lang.String getStatus()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_recipientId(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_status(java.lang.String newValue)
Set the primary key for this object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

MessageCountAccessBean

public MessageCountAccessBean()
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.MessageCount com.ibm.commerce.negotiation.objimpl.MessageCountHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.MessageCountKey) 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_recipientId( java.lang.Long ) setInitKey_status( java.lang.String )

MessageCountAccessBean

public MessageCountAccessBean(javax.ejb.EJBObject o)
                       throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
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).

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

defaultJNDIName

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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all message counts.

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

SELECT * FROM MSGCOUNTVW T1 WHERE 1=1

Returns:
An Enumeration of all the MessageCountAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByRecipient

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

Retrieves all message counts for the recipient.

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

SELECT * FROM MSGCOUNTVW T1 WHERE T1.RECIPIENT_ID=?

Parameters:
recipient - The recipient id.
Returns:
An Enumeration of all the MessageCountAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByRecipientAndMultipleStatus

public java.util.Enumeration findByRecipientAndMultipleStatus(java.lang.Long arg0,
                                                              java.lang.String[] arg1)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String[]
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByRecipientAndStatus

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

getCount

public java.lang.String getCount()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getCount in interface MessageCountAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCountInEJBType

public int getCountInEJBType()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getRecipientId

public java.lang.String getRecipientId()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getRecipientId in interface MessageCountAccessBeanData
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 accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getStatus

public java.lang.String getStatus()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getStatus in interface MessageCountAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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

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

setInitKey_recipientId

public void setInitKey_recipientId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_status

public void setInitKey_status(java.lang.String newValue)

Set the primary key for this object

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

Feedback