com.ibm.commerce.user.objects
Class MemberAccessBean

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

public class MemberAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberAccessBeanData

This bean provides access to the MEMBER table.

The following is a description of this table:

Stores the list of members (participants) of the WebSphere Commerce system.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MemberAccessBean()
          Default constructor.
MemberAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.lang.Long[] getAncestors()
          List of all ancestors of the member.
 java.lang.Long[] getChildren()
          List of child members.
 java.lang.Long[] getDescendants()
          List of all descendants members.
 java.lang.String getMemberId()
          This method provides access to the MEMBER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberIdInEJBType()
          This method provides access to the MEMBER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getParentMemberId()
          The parent member.
 java.lang.Integer[] getRoles()
          All roles played by this member.
 java.lang.Integer[] getRoles(java.lang.Long aOrgEntityId)
          All roles played by this member in this OrgEntity.
 java.lang.Integer[] getRolesForOrgEntityAndAncestors(java.lang.Long anOrgEntityId)
          Roles that member played in the OrgEntity and ancestors of the OrgEntity.
 java.lang.String getState()
          This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.
 java.lang.Integer getStateInEJBType()
          This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.
 java.lang.String getType()
          Type of the member, such as OrgEntity, User and MemberGroup.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_MemberId(java.lang.String aInitKey_MemberId)
          Set the primary key for this object
 void setParentMemberId(java.lang.String aParentMemberId)
          Set the parent member.
 void setState(java.lang.Integer aState)
          This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.
 void setState(java.lang.String aState)
          This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.
 
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

MemberAccessBean

public MemberAccessBean()

Default constructor. Maps to findByPrimaryKey.


MemberAccessBean

public MemberAccessBean(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
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

getAncestors

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

List of all ancestors of the member.

Returns:
java.lang.Long[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getChildren

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

List of child members.

Returns:
java.lang.Long[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getDescendants

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

List of all descendants members.

Returns:
java.lang.Long[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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 MEMBER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the member, a unique primary key for this table.

Specified by:
getMemberId in interface MemberAccessBeanData
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 MEMBER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the member, a unique primary key for this table.

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

getParentMemberId

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

The parent member.

Returns:
java.lang.String
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getRoles

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

All roles played by this member.

Returns:
java.lang.Integer[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getRoles

public java.lang.Integer[] getRoles(java.lang.Long aOrgEntityId)
                             throws javax.naming.NamingException,
                                    javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.ejb.FinderException

All roles played by this member in this OrgEntity.

Parameters:
aOrgEntityId - java.lang.Long
Returns:
java.lang.Integer[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getRolesForOrgEntityAndAncestors

public java.lang.Integer[] getRolesForOrgEntityAndAncestors(java.lang.Long anOrgEntityId)
                                                     throws javax.naming.NamingException,
                                                            javax.ejb.CreateException,
                                                            java.rmi.RemoteException,
                                                            javax.ejb.FinderException

Roles that member played in the OrgEntity and ancestors of the OrgEntity.

Parameters:
anOrgEntityId - java.lang.Long
Returns:
java.lang.Integer[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getState

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

This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

The registration approval status as follows:
0 - pending approval.
1 - approved.
2 - rejected.
Null - the approval is not applicable.

Specified by:
getState in interface MemberAccessBeanData
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

getStateInEJBType

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

This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

The registration approval status as follows:
0 - pending approval.
1 - approved.
2 - rejected.
Null - the approval is not applicable.

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

getType

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

Type of the member, such as OrgEntity, User and MemberGroup.

Specified by:
getType in interface MemberAccessBeanData
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

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

setParentMemberId

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

Set the parent member.

Parameters:
aParentMemberId - java.lang.String
Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

setState

public void setState(java.lang.Integer aState)

This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

The registration approval status as follows:
0 - pending approval.
1 - approved.
2 - rejected.
Null - the approval is not applicable.

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

setState

public void setState(java.lang.String aState)

This method provides access to the MEMBER.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

The registration approval status as follows:
0 - pending approval.
1 - approved.
2 - rejected.
Null - the approval is not applicable.

Specified by:
setState in interface MemberAccessBeanData
Parameters:
aState - java.lang.String
Returns:
void