com.ibm.commerce.user.objects
Class RoleAccessBean

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

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

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

See Also:
Serialized Form

Constructor Summary
RoleAccessBean()
Zero argument constructor used to initialize the access bean.
RoleAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
RoleAccessBean findByName(java.lang.String astrName)
The SQL is "SELECT * FROM ROLE T1 WHERE (T1.NAME = ?)".
java.lang.String getDescription()
Description of the role.
java.lang.String getName()
This method provides access to the ROLE.NAME column of DB2 type VARCHAR(254) NOT NULL.
java.lang.String getRoleId()
This method provides access to the ROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getRoleIdInEJBType()
This method provides access to the ROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newDescription)
Set the description of the role.
void setInitKey_RoleId(java.lang.String newValue)
Set the primary key for this object
void setName(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

RoleAccessBean

public RoleAccessBean()
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.Role com.ibm.commerce.user.objimpl.RoleHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.RoleKey) 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_RoleId( java.lang.Integer )

RoleAccessBean

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

findByName

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

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

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

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 ROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Primary key for the role.

Specified by:
getRoleId in interface RoleAccessBeanData
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 ROLE.ROLE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Primary key for the role.

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 RoleAccessBeanData

setRoleId

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

getName

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

This method provides access to the ROLE.NAME column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

Name of the role. For example, &quo

Specified by:
getName in interface RoleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

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

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

setDescription

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

Set the description of the role.

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

Feedback