com.ibm.commerce.utf.objects
Class PAttributeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.utf.objects.PAttributeAccessBean
All Implemented Interfaces:
PAttributeAccessBeanData

public class PAttributeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PAttributeAccessBeanData

This is the personalization attribute supported by the site. This access bean corresponds to the database table 'PATTRIBUTE'.

See Also:
Serialized Form

Constructor Summary
PAttributeAccessBean()
Zero argument constructor used to initialize the access bean.
PAttributeAccessBean(javax.ejb.EJBObject o)
constructor
PAttributeAccessBean(java.lang.String argAttrTypeId, java.lang.String argName)
Creates an access bean with the specified attributes.
PAttributeAccessBean(java.lang.String argAttrTypeId, java.lang.String argName, java.lang.Integer argEncryptFlag)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll(com.ibm.commerce.utf.helper.SortingAttribute sort)
Retrieves all PAttributeAccessBeans, ordered by the specified SortingAttibute.
java.util.Enumeration findAllAttributes()
Retrieves all PAttributeAccessBeans.
java.util.Enumeration findByAttributeType(java.lang.String argAttrType)
Retrieves the PAttributeAccessBeans that match the specified PAttributeType.
java.util.Enumeration findByName(java.lang.String argName)
Retrieves the PAttributeAccessBeans that match the specified name.
java.lang.String getAccessBeanName()
This method provides access to the PATTRIBUTE.ACCESSBEANNAME column of DB2 type VARCHAR(254).
java.lang.String getAttrTypeId()
This method provides access to the PATTRIBUTE.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.
PAttributeDescAccessBean getDescription(java.lang.Integer argLanguageId)
Retrieves the PAttributeDescAccessBean of the specified Language.
java.lang.String getEncryptFlag()
This method provides access to the PATTRIBUTE.ENCRYPTFLAG column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getEncryptFlagInEJBType()
This method provides access to the PATTRIBUTE.ENCRYPTFLAG column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getName()
This method provides access to the PATTRIBUTE.NAME column of DB2 type VARCHAR(254) NOT NULL.
java.lang.String getReferenceNumber()
This method provides access to the PATTRIBUTE.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getReferenceNumberInEJBType()
This method provides access to the PATTRIBUTE.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getSequence()
This method provides access to the PATTRIBUTE.SEQUENCE column of DB2 type INTEGER.
java.lang.Integer getSequenceInEJBType()
This method provides access to the PATTRIBUTE.SEQUENCE column of DB2 type INTEGER.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAccessBeanName(java.lang.String newValue)
This method accesses a non-CMP field
void setAttrTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setEncryptFlag(java.lang.Integer newValue)
This method accesses a non-CMP field
void setEncryptFlag(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_referenceNumber(java.lang.Long newValue)
Set the primary key for this object
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setReferenceNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setSequence(java.lang.Integer newValue)
This method accesses a non-CMP field
void setSequence(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

PAttributeAccessBean

public PAttributeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.utf.objects.PAttribute com.ibm.commerce.utf.objects.PAttributeHome.findByPrimaryKey(com.ibm.commerce.utf.objects.PAttributeKey) 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_referenceNumber( java.lang.Long )

PAttributeAccessBean

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

PAttributeAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
argAttrTypeId - the PAttributeType ID
argName - the name
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

PAttributeAccessBean

public PAttributeAccessBean(java.lang.String argAttrTypeId,
                            java.lang.String argName,
                            java.lang.Integer argEncryptFlag)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.ejb.FinderException

Creates an access bean with the specified attributes.

Parameters:
argAttrTypeId - the PAttributeType ID
argName - the name
argEncryptFlag - the encrypt flag
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

findAll

public java.util.Enumeration findAll(com.ibm.commerce.utf.helper.SortingAttribute sort)
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all PAttributeAccessBeans, ordered by the specified SortingAttibute.

The SQL query used to fetch all the required row from the PATTRIBUTE table is: SELECT * FROM PATTRIBUTE T1 WHERE 1 = 1 ORDER BY ...

Parameters:
sort - the SortingAttribute
Returns:
An Enumeration of all the PAttributeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAllAttributes

public java.util.Enumeration findAllAttributes()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves all PAttributeAccessBeans.

The SQL query used to fetch all the required row from the PATTRIBUTE table is: SELECT * FROM PATTRIBUTE T1 WHERE 1 = 1 ORDER BY T1.NAME

Returns:
An Enumeration of all the PAttributeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByAttributeType

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

Retrieves the PAttributeAccessBeans that match the specified PAttributeType.

The SQL query used to fetch all the required row from the PATTRIBUTE table is: SELECT * FROM PATTRIBUTE T1 WHERE T1.ATTRTYPE_ID = ? ORDER BY T1.NAME

Parameters:
argAttrType - the PAttributeType ID
Returns:
An Enumeration of all the PAttributeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByName

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

Retrieves the PAttributeAccessBeans that match the specified name.

The SQL query used to fetch all the required row from the PATTRIBUTE table is: SELECT * FROM PATTRIBUTE T1 WHERE T1.NAME = ?

Parameters:
argName - the name
Returns:
An Enumeration of all the PAttributeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_referenceNumber

public void setInitKey_referenceNumber(java.lang.Long newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Long
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

getAttrTypeId

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

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

The following is a description of this column:

Indicates the data type for this Attribute. For example, integer or string.

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

setAttrTypeId

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

getEncryptFlag

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

This method provides access to the PATTRIBUTE.ENCRYPTFLAG column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Set to 1 if encryption is required for the personalized attribute value. Default is 0.

Specified by:
getEncryptFlag in interface PAttributeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getEncryptFlagInEJBType

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

This method provides access to the PATTRIBUTE.ENCRYPTFLAG column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Set to 1 if encryption is required for the personalized attribute value. Default is 0.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setEncryptFlag

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

setEncryptFlag

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

getAccessBeanName

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

This method provides access to the PATTRIBUTE.ACCESSBEANNAME column of DB2 type VARCHAR(254).

The following is a description of this column:

Name of the access bean to process this Attribute.

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

setAccessBeanName

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

getSequence

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

This method provides access to the PATTRIBUTE.SEQUENCE column of DB2 type INTEGER.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getSequence in interface PAttributeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getSequenceInEJBType

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

This method provides access to the PATTRIBUTE.SEQUENCE column of DB2 type INTEGER.

The following is a description of this column:

Reserved for IBM internal use.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setSequence

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

setSequence

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

The following is a description of this column:

A description of the Attribute. For example, length, width, color, or monogram.

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

getReferenceNumber

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

This method provides access to the PATTRIBUTE.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the Attribute.

Specified by:
getReferenceNumber in interface PAttributeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getReferenceNumberInEJBType

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

This method provides access to the PATTRIBUTE.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the Attribute.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setReferenceNumber

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

setReferenceNumber

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

getDescription

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

Retrieves the PAttributeDescAccessBean of the specified Language.

Parameters:
argLanguageId - the Language ID
Returns:
com.ibm.commerce.utf.objects.PAttributeDescAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

Feedback