com.ibm.commerce.user.objects
Class MemberRoleAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.user.objects.MemberRoleAccessBean
All Implemented Interfaces:
MemberRoleAccessBeanData

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

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. This access bean corresponds to the database table 'MBRROLE'.

See Also:
Serialized Form

Constructor Summary
MemberRoleAccessBean()
Zero argument constructor used to initialize the access bean.
MemberRoleAccessBean(javax.ejb.EJBObject o)
constructor
MemberRoleAccessBean(java.lang.Long argMemberId, java.lang.Integer argRoleId, java.lang.Long argOrgEntityId)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByMemberId(java.lang.Long anMemberId)
The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?)".
java.util.Enumeration findByMemberIdOrgEntityId(java.lang.Long anMemberId, java.lang.Long anOrgEntityId)
The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ORGENTITY_ID = ?)".
java.util.Enumeration findByMemberIdRoleId(java.lang.Long anMemberId, java.lang.Integer anRoleId)
The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?)".
MemberRoleAccessBean findByMemberIdRoleIdOrgEntityId(java.lang.Long anMemberId, java.lang.Integer anRoleId, java.lang.Long anOrgEntityId)
The SQL is "SELECT * FROM MBRROLE T1 WHERE (T1.MEMBER_ID = ?) AND (T1.ROLE_ID = ?) AND (T1.ORGENTITY_ID = ?)".
java.util.Enumeration findByRoleIdOrgEntityId(java.lang.Integer anRoleId, java.lang.Long anOrgEntityId)
Insert the method's description here.
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()
This method provides access to the MBRROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getRoleIdInEJBType()
This method provides access to the MBRROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_MemberId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_OrgEntityId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_RoleId(java.lang.String newValue)
Set the primary key for this object
void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrgEntityId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrgEntityId(java.lang.String newValue)
This method accesses a non-CMP field
void setRoleId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setRoleId(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

MemberRoleAccessBean

public MemberRoleAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.user.objects.MemberRole com.ibm.commerce.user.objimpl.MemberRoleHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.MemberRoleKey) 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_MemberId( java.lang.Long ) setInitKey_OrgEntityId( java.lang.Long ) setInitKey_RoleId( java.lang.Integer )

MemberRoleAccessBean

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

MemberRoleAccessBean

public MemberRoleAccessBean(java.lang.Long argMemberId,
                            java.lang.Integer argRoleId,
                            java.lang.Long argOrgEntityId)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException

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

Parameters:
argMemberId - java.lang.Long
argRoleId - java.lang.Integer
argOrgEntityId - java.lang.Long
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException
Method Detail

findByMemberIdRoleIdOrgEntityId

public MemberRoleAccessBean findByMemberIdRoleIdOrgEntityId(java.lang.Long anMemberId,
                                                            java.lang.Integer anRoleId,
                                                            java.lang.Long anOrgEntityId)
                                                     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:
anMemberId - java.lang.Long
anRoleId - java.lang.Integer
anOrgEntityId - 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

findByMemberId

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

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

Parameters:
anMemberId - 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

findByMemberIdOrgEntityId

public java.util.Enumeration findByMemberIdOrgEntityId(java.lang.Long anMemberId,
                                                       java.lang.Long anOrgEntityId)
                                                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:
anMemberId - java.lang.Long
anOrgEntityId - 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

findByMemberIdRoleId

public java.util.Enumeration findByMemberIdRoleId(java.lang.Long anMemberId,
                                                  java.lang.Integer anRoleId)
                                           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:
anMemberId - java.lang.Long
anRoleId - 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

setInitKey_MemberId

public void setInitKey_MemberId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_OrgEntityId

public void setInitKey_OrgEntityId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_RoleId

public void setInitKey_RoleId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
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

getRoleId

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

This method provides access to the MBRROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the ROLE table.

Specified by:
getRoleId in interface MemberRoleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getRoleIdInEJBType

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

This method provides access to the MBRROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the ROLE table.

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

setRoleId

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

setRoleId

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

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

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

setMemberId

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

setMemberId

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

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

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

setOrgEntityId

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

setOrgEntityId

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

findByRoleIdOrgEntityId

public java.util.Enumeration findByRoleIdOrgEntityId(java.lang.Integer anRoleId,
                                                     java.lang.Long anOrgEntityId)
                                              throws javax.naming.NamingException,
                                                     javax.ejb.FinderException,
                                                     java.rmi.RemoteException
Insert the method's description here. Creation date: (6/28/2001 10:44:13 AM)
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

Feedback