com.ibm.commerce.user.objects
Class MemberAttributeAccessBean

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

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

This table contains an attribute definition dictionary for members. This access bean corresponds to the database table 'MBRATTR'.

See Also:
Serialized Form

Constructor Summary
MemberAttributeAccessBean()
Zero argument constructor used to initialize the access bean.
MemberAttributeAccessBean(javax.ejb.EJBObject o)
constructor
MemberAttributeAccessBean(java.lang.String newAttributeTypeId, java.lang.String newName)
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Summary
void addAttributeValue(java.lang.String astrMemberId, java.lang.String astrStoreEntityId, java.lang.String astrAttributeValue)
Add a new attribute value to the member.
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByAttributeName(java.lang.String strAttributeName)
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).
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
boolean removeAttributeValue(java.lang.String astrMemberId, java.lang.String astrStoreEntityId, java.lang.String astrAttributeValue)
Remove the attribute value of the specified member.
boolean replaceAttributeValue(java.lang.String astrMemerId, java.lang.String astrStoreEntityId, java.lang.String astrOldAttributeVAlue, java.lang.String astrNewAttributeValue)
Replace the old attribute value with the new one for the member.
void setAttributeTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_memberAttributeId(java.lang.String newValue)
Set the primary key for this object
void setName(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

MemberAttributeAccessBean

public MemberAttributeAccessBean()
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.MemberAttribute com.ibm.commerce.user.objimpl.MemberAttributeHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.MemberAttributeKey) 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_memberAttributeId( java.lang.Long )

MemberAttributeAccessBean

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

MemberAttributeAccessBean

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

findByAttributeName

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

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

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

setInitKey_memberAttributeId

public void setInitKey_memberAttributeId(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

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).

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

setDescription

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

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

setAttributeTypeId

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

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

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

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
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 MemberAttributeAccessBeanData

removeAttributeValue

public boolean removeAttributeValue(java.lang.String astrMemberId,
                                    java.lang.String astrStoreEntityId,
                                    java.lang.String astrAttributeValue)
                             throws java.rmi.RemoteException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

Remove the attribute value of the specified member.

Parameters:
astrMemberId - java.lang.String
astrStoreEntityId - java.lang.String
astrAttributeValue - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException
javax.naming.NamingException

replaceAttributeValue

public boolean replaceAttributeValue(java.lang.String astrMemerId,
                                     java.lang.String astrStoreEntityId,
                                     java.lang.String astrOldAttributeVAlue,
                                     java.lang.String astrNewAttributeValue)
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

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

Parameters:
astrMemerId - java.lang.String
astrStoreEntityId - java.lang.String
astrOldAttributeVAlue - java.lang.String
astrNewAttributeValue - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException
javax.naming.NamingException

addAttributeValue

public void addAttributeValue(java.lang.String astrMemberId,
                              java.lang.String astrStoreEntityId,
                              java.lang.String astrAttributeValue)
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Add a new attribute value to the member.

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

Feedback