com.ibm.commerce.user.objects
Class MemberAttributeAccessBean

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

public class MemberAttributeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberAttributeAccessBeanData

This bean provides access to the MBRATTR table.

The following is a description of this table:

This table contains an attribute definition dictionary for members.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MemberAttributeAccessBean()
          Default constructor.
MemberAttributeAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
MemberAttributeAccessBean(java.lang.String aAttributeTypeId, java.lang.String aName)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void addAttributeValue(java.lang.String aMemberId, java.lang.String aStoreEntityId, java.lang.String aAttributeValue)
          Add a new attribute value to the member.
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByAttributeName(java.lang.String aAttributeName)
          The SQL is "SELECT * FROM MBRATTR T1 WHERE (T1.NAME = ?)"
 java.lang.String getAttributeTypeId()
          This method provides access to the MBRATTR.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getDescription()
          This method provides access to the MBRATTR.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMemberAttributeId()
          This method provides access to the MBRATTR.MBRATTR_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberAttributeIdInEJBType()
          This method provides access to the MBRATTR.MBRATTR_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getName()
          This method provides access to the MBRATTR.NAME column of DB2 type VARCHAR(254) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 boolean removeAttributeValue(java.lang.String aMemberId, java.lang.String aStoreEntityId, java.lang.String aAttributeValue)
          Remove the attribute value of the specified member.
 boolean replaceAttributeValue(java.lang.String aMemerId, java.lang.String aStoreEntityId, java.lang.String aOldAttributeVAlue, java.lang.String aNewAttributeValue)
          Replace the old attribute value with the new one for the member.
 void setAttributeTypeId(java.lang.String aAttributeTypeId)
          This method provides access to the MBRATTR.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.
 void setDescription(java.lang.String aDescription)
          This method provides access to the MBRATTR.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setInitKey_memberAttributeId(java.lang.String aInitKey_memberAttributeId)
          Set the primary key for this object
 void setName(java.lang.String aName)
          This method provides access to the MBRATTR.NAME column of DB2 type VARCHAR(254) NOT 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

MemberAttributeAccessBean

public MemberAttributeAccessBean()

Default constructor. Maps to findByPrimaryKey.


MemberAttributeAccessBean

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

MemberAttributeAccessBean

public MemberAttributeAccessBean(java.lang.String aAttributeTypeId,
                                 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:
aAttributeTypeId - java.lang.String
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

addAttributeValue

public void addAttributeValue(java.lang.String aMemberId,
                              java.lang.String aStoreEntityId,
                              java.lang.String aAttributeValue)
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Add a new attribute value to the member.

Parameters:
aMemberId - java.lang.String
aStoreEntityId - java.lang.String
aAttributeValue - 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

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

findByAttributeName

public java.util.Enumeration findByAttributeName(java.lang.String aAttributeName)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

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

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

getAttributeTypeId

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

This method provides access to the MBRATTR.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

Type of the member attribute. Foreign key to the ATTRTYPE table.

Specified by:
getAttributeTypeId in interface MemberAttributeAccessBeanData
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

getDescription

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

This method provides access to the MBRATTR.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Description of the member attribute.

Specified by:
getDescription in interface MemberAttributeAccessBeanData
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

getMemberAttributeId

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

This method provides access to the MBRATTR.MBRATTR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key of this MBRATTR table.

Specified by:
getMemberAttributeId in interface MemberAttributeAccessBeanData
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

getMemberAttributeIdInEJBType

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

This method provides access to the MBRATTR.MBRATTR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key of this MBRATTR 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

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 MBRATTR.NAME column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

Name of the member attribute.

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

removeAttributeValue

public boolean removeAttributeValue(java.lang.String aMemberId,
                                    java.lang.String aStoreEntityId,
                                    java.lang.String aAttributeValue)
                             throws java.rmi.RemoteException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

Remove the attribute value of the specified member.

Parameters:
aMemberId - java.lang.String
aStoreEntityId - java.lang.String
aAttributeValue - java.lang.String
Returns:
boolean
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

replaceAttributeValue

public boolean replaceAttributeValue(java.lang.String aMemerId,
                                     java.lang.String aStoreEntityId,
                                     java.lang.String aOldAttributeVAlue,
                                     java.lang.String aNewAttributeValue)
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Replace the old attribute value with the new one for the member.

Parameters:
aMemerId - java.lang.String
aStoreEntityId - java.lang.String
aOldAttributeVAlue - java.lang.String
aNewAttributeValue - java.lang.String
Returns:
boolean
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

setAttributeTypeId

public void setAttributeTypeId(java.lang.String aAttributeTypeId)

This method provides access to the MBRATTR.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

Type of the member attribute. Foreign key to the ATTRTYPE table.

Specified by:
setAttributeTypeId in interface MemberAttributeAccessBeanData
Parameters:
aAttributeTypeId - java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String aDescription)

This method provides access to the MBRATTR.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Description of the member attribute.

Specified by:
setDescription in interface MemberAttributeAccessBeanData
Parameters:
aDescription - java.lang.String
Returns:
void

setInitKey_memberAttributeId

public void setInitKey_memberAttributeId(java.lang.String aInitKey_memberAttributeId)

Set the primary key for this object

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

setName

public void setName(java.lang.String aName)

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

The following is a description of this column:

Name of the member attribute.

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