com.ibm.commerce.emarketing.objects
Class EmailUserReceiveAccessBean

java.lang.Object
  |
  +--AbstractEntityAccessBean
        |
        +--com.ibm.commerce.emarketing.objects.EmailUserReceiveAccessBean

public class EmailUserReceiveAccessBean
extends AbstractEntityAccessBean

This table stores user preference of whether to receive e-mail or not. EmailUserReceiveAccessBean

See Also:
Serialized Form

Constructor Summary
EmailUserReceiveAccessBean()
          constructor
EmailUserReceiveAccessBean(javax.ejb.EJBObject o)
          EmailUserReceiveAccessBean
EmailUserReceiveAccessBean(java.lang.Long usersId, java.lang.Integer storeEntityId)
          EmailUserReceiveAccessBean
 
Method Summary
 void commitCopyHelper()
          commitCopyHelper
 java.lang.String defaultJNDIName()
          defaultJNDIName
 java.util.Enumeration findAll()
          Finds all instances
 java.util.Enumeration findByStoreEntityId(java.lang.Integer argStoreEntityId)
          Finds instances using storeEntityId
  EmailUserReceiveAccessBean findByStoreEntityIdAndUsersId(java.lang.Integer argStoreEntityId, java.lang.Long argUsersId)
          Finds an instance using storeEntityId and usersId
 java.util.Enumeration findByUsersId(java.lang.Long argUsersId)
          Finds instance using usersId
 java.util.Enumeration findOptedInUsers()
          Finds all opted-in instances.
 java.util.Enumeration findOptedInUsersByStoreEntityId(java.lang.Integer argStoreEntityId)
          Finds opted_in instances using storeEntityID
 java.util.Enumeration findOptedOutUsers()
          Finds all opted-out instances
 java.util.Enumeration findOptedOutUsersByStoreEntityId(java.lang.Integer argStoreEntityId)
          Finds opted-out instances using storeEntityId
 boolean fulfills(java.lang.Long member, java.lang.String relationship)
          fulfills
 java.lang.Long getOwner()
          getOwner
 java.lang.String getReceiveEmail()
          Get accessor for persistent attribute: receiveEmail
 java.lang.Integer getReceiveEmailInEJBType()
          getReceiveEmailInEJBType
 java.lang.String getStoreEntityId()
          Gets storeEntityId
 java.lang.Integer getStoreEntityIdInEJBType()
          getStoreEntityIdInEJBType
 java.lang.String getUsersId()
          Gets usersId
 java.lang.Long getUsersIdInEJBType()
          getUsersIdInEJBType
protected  void instantiateEJB()
          instantiateEJB
protected  boolean instantiateEJBByPrimaryKey()
          instantiateEJBByPrimaryKey
 void refreshCopyHelper()
          refreshCopyHelper
 void setInitKey_storeEntityId(java.lang.Integer newValue)
          setInitKey_storeEntityId
 void setInitKey_usersId(java.lang.Long newValue)
          setInitKey_usersId
 void setReceiveEmail(java.lang.Integer newValue)
          Set accessor for persistent attribute: receiveEmail
 void setReceiveEmail(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

EmailUserReceiveAccessBean

public EmailUserReceiveAccessBean()
constructor

EmailUserReceiveAccessBean

public EmailUserReceiveAccessBean(javax.ejb.EJBObject o)
                           throws java.rmi.RemoteException
EmailUserReceiveAccessBean

EmailUserReceiveAccessBean

public EmailUserReceiveAccessBean(java.lang.Long usersId,
                                  java.lang.Integer storeEntityId)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException
EmailUserReceiveAccessBean
Method Detail

getReceiveEmail

public java.lang.String getReceiveEmail()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException
Get accessor for persistent attribute: receiveEmail
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setReceiveEmail

public void setReceiveEmail(java.lang.Integer newValue)
Set accessor for persistent attribute: receiveEmail

getStoreEntityId

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

getUsersId

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

defaultJNDIName

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

instantiateEJB

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

instantiateEJBByPrimaryKey

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

refreshCopyHelper

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

commitCopyHelper

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

findOptedInUsers

public java.util.Enumeration findOptedInUsers()
                                       throws javax.naming.NamingException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException
Finds all opted-in instances.
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findOptedOutUsers

public java.util.Enumeration findOptedOutUsers()
                                        throws javax.naming.NamingException,
                                               javax.ejb.FinderException,
                                               java.rmi.RemoteException
Finds all opted-out instances
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findByStoreEntityId

public java.util.Enumeration findByStoreEntityId(java.lang.Integer argStoreEntityId)
                                          throws javax.naming.NamingException,
                                                 javax.ejb.FinderException,
                                                 java.rmi.RemoteException
Finds instances using storeEntityId
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findAll

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

findByUsersId

public java.util.Enumeration findByUsersId(java.lang.Long argUsersId)
                                    throws javax.naming.NamingException,
                                           javax.ejb.FinderException,
                                           java.rmi.RemoteException
Finds instance using usersId
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findOptedInUsersByStoreEntityId

public java.util.Enumeration findOptedInUsersByStoreEntityId(java.lang.Integer argStoreEntityId)
                                                      throws javax.naming.NamingException,
                                                             javax.ejb.FinderException,
                                                             java.rmi.RemoteException
Finds opted_in instances using storeEntityID
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findOptedOutUsersByStoreEntityId

public java.util.Enumeration findOptedOutUsersByStoreEntityId(java.lang.Integer argStoreEntityId)
                                                       throws javax.naming.NamingException,
                                                              javax.ejb.FinderException,
                                                              java.rmi.RemoteException
Finds opted-out instances using storeEntityId
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws javax.naming.NamingException,
                        javax.ejb.FinderException,
                        java.lang.Exception,
                        java.rmi.RemoteException
fulfills
Returns:
javax.naming.NamingException
javax.ejb.FinderException
java.lang.Exception
java.rmi.RemoteException

getOwner

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

setInitKey_usersId

public void setInitKey_usersId(java.lang.Long newValue)
setInitKey_usersId

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(java.lang.Integer newValue)
setInitKey_storeEntityId

Set the primary key for this object

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

findByStoreEntityIdAndUsersId

public EmailUserReceiveAccessBean findByStoreEntityIdAndUsersId(java.lang.Integer argStoreEntityId,
                                                                java.lang.Long argUsersId)
                                                         throws javax.naming.NamingException,
                                                                javax.ejb.FinderException,
                                                                java.rmi.RemoteException
Finds an instance using storeEntityId and usersId
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

getReceiveEmailInEJBType

public java.lang.Integer getReceiveEmailInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException
getReceiveEmailInEJBType
Returns:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setReceiveEmail

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

getStoreEntityIdInEJBType

public java.lang.Integer getStoreEntityIdInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
getStoreEntityIdInEJBType
Returns:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getUsersIdInEJBType

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