com.ibm.commerce.user.objects
Class RoleAccessBean

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

public class RoleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RoleAccessBeanData

This bean provides access to the ROLE table.

The following is a description of this table:

This table stores the roles defined in WebSphere Commerce. Once a role is created, you cannot change the name or description of a role using a graphical user interface tool.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
RoleAccessBean()
          Default constructor.
RoleAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
RoleAccessBean(java.lang.String aName)
          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).
 RoleAccessBean findByName(java.lang.String aName)
          The SQL is "SELECT * FROM ROLE T1 WHERE (T1.NAME = ?)".
 java.lang.String getDescription()
          Description of the role.
 java.lang.String getName()
          Name of the role.
 java.lang.String getRoleId()
          The Id of the role.
 java.lang.Integer getRoleIdInEJBType()
          The id of the role.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setDescription(java.lang.String aDescription)
          Set the description of the role.
 void setInitKey_RoleId(java.lang.String aInitKey_RoleId)
          Set the primary key for this object
 void setName(java.lang.String aName)
          Set the name of the role.
 void setRoleId(java.lang.Integer aRoleId)
          Set the role Id.
 void setRoleId(java.lang.String aRoleId)
          Set the role id.
 
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

RoleAccessBean

public RoleAccessBean()

Default constructor. Maps to findByPrimaryKey.


RoleAccessBean

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

RoleAccessBean

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

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

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

findByName

public RoleAccessBean findByName(java.lang.String aName)
                          throws java.rmi.RemoteException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

The SQL is "SELECT * FROM ROLE T1 WHERE (T1.NAME = ?)".

Parameters:
aName - java.lang.String
Returns:
com.ibm.commerce.user.objects.RoleAccessBean
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

getDescription

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

Description of the role.

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

getName

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

Name of the role.

Specified by:
getName in interface RoleAccessBeanData
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

getRoleId

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

The Id of the role.

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

The id of the role.

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

setDescription

public void setDescription(java.lang.String aDescription)
                    throws java.rmi.RemoteException,
                           javax.ejb.FinderException,
                           javax.naming.NamingException

Set the description of the role.

Parameters:
aDescription - java.lang.String
Returns:
void
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

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

setName

public void setName(java.lang.String aName)

Set the name of the role.

Specified by:
setName in interface RoleAccessBeanData
Parameters:
aName - java.lang.String
Returns:
void

setRoleId

public void setRoleId(java.lang.Integer aRoleId)

Set the role Id.

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

setRoleId

public void setRoleId(java.lang.String aRoleId)

Set the role id.

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