com.ibm.commerce.user.objects
Class MemberRoleAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.user.objects.MemberRoleAccessBean
All Implemented Interfaces:
MemberRoleAccessBeanData, java.io.Serializable

public class MemberRoleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberRoleAccessBeanData

This bean provides access to the MBRROLE table.

The following is a description of this table:

This table stores role assignment for members. Each member can play one or more roles in the WebSphere Commerce system. When a member is assigned a role, the orgEntity for which the member plays that role can also be specified.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MemberRoleAccessBean()
          Default constructor.
MemberRoleAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
MemberRoleAccessBean(java.lang.Long aMemberId, java.lang.Integer aRoleId, java.lang.Long aOrgEntityId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByMemberId(java.lang.Long aMemberId)
          The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?)".
 java.util.Enumeration findByMemberIdOrgEntityId(java.lang.Long aMemberId, java.lang.Long aOrgEntityId)
          The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ORGENTITY_ID = ?)".
 java.util.Enumeration findByMemberIdRoleId(java.lang.Long aMemberId, java.lang.Integer aRoleId)
          The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?)".
 MemberRoleAccessBean findByMemberIdRoleIdOrgEntityId(java.lang.Long aMemberId, java.lang.Integer aRoleId, java.lang.Long aOrgEntityId)
          The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?) AND (T1.ORGENTITY_ID = ?)".
 java.lang.String getMemberId()
          This method provides access to the MBRROLE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberIdInEJBType()
          This method provides access to the MBRROLE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrgEntityId()
          This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrgEntityIdInEJBType()
          This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getRoleId()
          Role played by the member.
 java.lang.Integer getRoleIdInEJBType()
          Role played by the member.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_MemberId(java.lang.String aInitKey_MemberId)
          Set the primary key for this object
 void setInitKey_OrgEntityId(java.lang.String aInitKey_OrgEntityId)
          Set the primary key for this object
 void setInitKey_RoleId(java.lang.String aInitKey_RoleId)
          Set the primary key for this object
 void setMemberId(java.lang.Long aMemberId)
          This method provides access to the MBRROLE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String aMemberId)
          This method provides access to the MBRROLE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setOrgEntityId(java.lang.Long aOrgEntityId)
          This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 void setOrgEntityId(java.lang.String aOrgEntityId)
          This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 void setRoleId(java.lang.Integer aRoleId)
          Set the role played by the member.
 void setRoleId(java.lang.String aRoleId)
          Set the role played by the member.
 
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

MemberRoleAccessBean

public MemberRoleAccessBean()

Default constructor. Maps to findByPrimaryKey.


MemberRoleAccessBean

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

Creates an access bean for the specified EJB

Parameters:
object - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

MemberRoleAccessBean

public MemberRoleAccessBean(java.lang.Long aMemberId,
                            java.lang.Integer aRoleId,
                            java.lang.Long aOrgEntityId)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aMemberId - java.lang.Long
aRoleId - java.lang.Integer
aOrgEntityId - java.lang.Long
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
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

findByMemberId

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

The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?)".

Parameters:
aMemberId - java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByMemberIdOrgEntityId

public java.util.Enumeration findByMemberIdOrgEntityId(java.lang.Long aMemberId,
                                                       java.lang.Long aOrgEntityId)
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ORGENTITY_ID = ?)".

Parameters:
aMemberId - java.lang.Long
aOrgEntityId - java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByMemberIdRoleId

public java.util.Enumeration findByMemberIdRoleId(java.lang.Long aMemberId,
                                                  java.lang.Integer aRoleId)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?)".

Parameters:
aMemberId - java.lang.Long
aRoleId - java.lang.Integer
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByMemberIdRoleIdOrgEntityId

public MemberRoleAccessBean findByMemberIdRoleIdOrgEntityId(java.lang.Long aMemberId,
                                                            java.lang.Integer aRoleId,
                                                            java.lang.Long aOrgEntityId)
                                                     throws java.rmi.RemoteException,
                                                            javax.ejb.FinderException,
                                                            javax.naming.NamingException

The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?) AND (T1.ORGENTITY_ID = ?)".

Parameters:
aMemberId - java.lang.Long
aRoleId - java.lang.Integer
aOrgEntityId - java.lang.Long
Returns:
com.ibm.commerce.user.objects.MemberRoleAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMemberId

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

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

The following is a description of this column:

Foreign key to the MEMBER table for the member who plays this role.

Specified by:
getMemberId in interface MemberRoleAccessBeanData
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

getMemberIdInEJBType

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

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

The following is a description of this column:

Foreign key to the MEMBER table for the member who plays this role.

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

getOrgEntityId

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

This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to the ORGENTITY table for the orgEntity for which the member plays this role.

Specified by:
getOrgEntityId in interface MemberRoleAccessBeanData
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

getOrgEntityIdInEJBType

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

This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to the ORGENTITY table for the orgEntity for which the member plays this role.

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

getRoleId

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

Role played by the member.

Specified by:
getRoleId in interface MemberRoleAccessBeanData
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

getRoleIdInEJBType

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

Role played by the member.

Returns:
java.lang.Integer
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

setInitKey_MemberId

public void setInitKey_MemberId(java.lang.String aInitKey_MemberId)

Set the primary key for this object

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

setInitKey_OrgEntityId

public void setInitKey_OrgEntityId(java.lang.String aInitKey_OrgEntityId)

Set the primary key for this object

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

setInitKey_RoleId

public void setInitKey_RoleId(java.lang.String aInitKey_RoleId)

Set the primary key for this object

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

setMemberId

public void setMemberId(java.lang.Long aMemberId)

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

The following is a description of this column:

Foreign key to the MEMBER table for the member who plays this role.

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

setMemberId

public void setMemberId(java.lang.String aMemberId)

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

The following is a description of this column:

Foreign key to the MEMBER table for the member who plays this role.

Specified by:
setMemberId in interface MemberRoleAccessBeanData
Parameters:
aMemberId - java.lang.String
Returns:
void

setOrgEntityId

public void setOrgEntityId(java.lang.Long aOrgEntityId)

This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to the ORGENTITY table for the orgEntity for which the member plays this role.

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

setOrgEntityId

public void setOrgEntityId(java.lang.String aOrgEntityId)

This method provides access to the MBRROLE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to the ORGENTITY table for the orgEntity for which the member plays this role.

Specified by:
setOrgEntityId in interface MemberRoleAccessBeanData
Parameters:
aOrgEntityId - java.lang.String
Returns:
void

setRoleId

public void setRoleId(java.lang.Integer aRoleId)

Set the role played by the member.

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

setRoleId

public void setRoleId(java.lang.String aRoleId)

Set the role played by the member.

Specified by:
setRoleId in interface MemberRoleAccessBeanData
Parameters:
aRoleId - java.lang.String
Returns:
void