com.ibm.commerce.catalog.objects
Class AttributeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.AttributeAccessBean
All Implemented Interfaces:
AttributeAccessBeanData, java.io.Serializable
Direct Known Subclasses:
AttributeDataBean

public class AttributeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AttributeAccessBeanData

This bean provides access to the ATTRIBUTE table.

The following is a description of this table:

This table holds product attributes that are used for SKU resolution.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
AttributeAccessBean()
          Default constructor.
AttributeAccessBean(javax.ejb.EJBObject attributeEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Integer language_id, java.lang.String attribute_type)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Integer language_id, java.lang.String attribute_type, java.lang.Double sequence_number)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Integer language_id, java.lang.String attribute_type, java.lang.Double sequence_number, java.lang.Long catentry_id, java.lang.String name)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Long attributeReferenceNumber, java.lang.Integer language_id, java.lang.String attribute_type)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Long attributeReferenceNumber, java.lang.Integer language_id, java.lang.String attribute_type, java.lang.Double sequence_number)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Long attributeReferenceNumber, java.lang.Integer language_id, java.lang.String name, java.lang.String attribute_type)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
AttributeAccessBean(java.lang.Long attributeReferenceNumber, java.lang.String attribute_type, java.lang.Integer language_id, java.lang.Long catentry_id, java.lang.String name)
          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).
 java.util.Enumeration findByAttributeId(java.lang.Long attributeId)
          Finds the attribute with the attribute reference number.
 java.util.Enumeration findByCatalogEntryId(java.lang.Long catentryId)
          Finds the attribute with the Catalog Entry reference number.
 java.util.Enumeration findByCatEntryLanguageAndSequence(java.lang.Long catentryId, java.lang.Integer languageId, java.lang.Double sequence_number)
          Finds the attribute with the Catalog Entry reference number, language Id, and sequence number.
 java.util.Enumeration findByCatEntryLanguageAndUsage(java.lang.Long catentryId, java.lang.Integer languageId, java.lang.String usage)
          Finds the attribute with the Catalog Entry reference number, language Id, and usage.
 AttributeAccessBean findByNameAndCatalogEntryAndLanguage(java.lang.String name, java.lang.Long catentryId, java.lang.Integer languageId)
          Finds the attribute with the name, Catalog Entry reference number, and language Id.
 java.util.Enumeration findByProduct(java.lang.Long catEntryID, java.lang.Integer languageID)
          Finds the attribute with the product.
 java.lang.String getAttributeReferenceNumber()
          This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAttributeReferenceNumberInEJBType()
          This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getAttributeType()
          This method provides access to the ATTRIBUTE.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.
 AttributeValueAccessBean[] getAttributeValues()
          Gets the list of values defined for this attribute.
 java.lang.String getCatalogEntryReferenceNumber()
          This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.
 java.lang.Long getCatalogEntryReferenceNumberInEJBType()
          This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.
 java.lang.String getDescription()
          This method provides access to the ATTRIBUTE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getDescription2()
          This method provides access to the ATTRIBUTE.DESCRIPTION2 column of DB2 type VARCHAR(254) NULL.
 java.lang.Object[] getDistinctAttributeValues()
          Gets the list of distinct attribute values.
 java.lang.String getField1()
          This method provides access to the ATTRIBUTE.FIELD1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getLanguage_id()
          This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguage_idInEJBType()
          This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Double getMaxSequenceForCatEntryAndLanguage(java.lang.Long aCatentryReferenceNumber, java.lang.Integer aLanguageId)
          This method returns the maximum attribute sequence number with the given Catalog Entry reference number and language Id.
 java.lang.String getName()
          This method provides access to the ATTRIBUTE.NAME column of DB2 type VARCHAR(254) NULL.
 java.lang.String getOID()
          This method provides access to the ATTRIBUTE.OID column of DB2 type VARCHAR(64) NULL.
 java.lang.String getSequenceNumber()
          This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Double getSequenceNumberInEJBType()
          This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.String getUsage()
          This method provides access to the ATTRIBUTE.USAGE column of DB2 type CHARACTER (1) NULL DEFAULT '1'.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAttributeReferenceNumber(java.lang.Long attributeReferenceNumber)
          This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setAttributeReferenceNumber(java.lang.String aAttributeReferenceNumber)
          This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setAttributeType(java.lang.String attributeType)
          This method provides access to the ATTRIBUTE.ATTRTYPE_ID column of DB2 type CHAR(16) NOT NULL.
 void setCatalogEntryReferenceNumber(java.lang.Long aCatentryId)
          This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.
 void setCatalogEntryReferenceNumber(java.lang.String aCatentryId)
          This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.
 void setDescription(java.lang.String attributeDescription)
          This method provides access to the ATTRIBUTE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setDescription2(java.lang.String aDescription)
          This method provides access to the ATTRIBUTE.DESCRIPTION2 column of DB2 type VARCHAR(254) NULL.
 void setField1(java.lang.String aField1)
          This method provides access to the ATTRIBUTE.FIELD1 column of DB2 type VARCHAR(254) NULL.
 void setInitKey_attributeReferenceNumber(java.lang.String attributeReferenceNumber)
          Set the primary key for this object
 void setInitKey_language_id(java.lang.String languageID)
          Set the primary key for this object - The language ID for the attribute.
 void setLanguage_id(java.lang.Integer languageID)
          This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguage_id(java.lang.String languageID)
          This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setName(java.lang.String attributeName)
          This method provides access to the ATTRIBUTE.NAME column of DB2 type VARCHAR(254) NULL.
 void setOID(java.lang.String aOID)
          This method provides access to the ATTRIBUTE.OID column of DB2 type VARCHAR(64) NULL.
 void setSequenceNumber(java.lang.Double seqNumber)
          This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setSequenceNumber(java.lang.String seqNumber)
          This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setUsage(java.lang.String aUsage)
          This method provides access to the ATTRIBUTE.USAGE column of DB2 type CHARACTER (1) NULL DEFAULT '1'.
 
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

AttributeAccessBean

public AttributeAccessBean()

Default constructor. It is used to initialize the access bean.


AttributeAccessBean

public AttributeAccessBean(javax.ejb.EJBObject attributeEJBObj)
                    throws java.rmi.RemoteException

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

Parameters:
attributeEJBObj - The attribute EJB object. javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Integer language_id,
                           java.lang.String attribute_type)
                    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:
language_id - The language id of the attribute. java.lang.Integer
attribute_type - The type of the attribute. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Integer language_id,
                           java.lang.String attribute_type,
                           java.lang.Double sequence_number)
                    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:
language_id - The language id of the attribute. java.lang.Integer
attribute_type - The type of the attribute. java.lang.String
sequence_number - The sequence number of the attribute. java.lang.Double
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Integer language_id,
                           java.lang.String attribute_type,
                           java.lang.Double sequence_number,
                           java.lang.Long catentry_id,
                           java.lang.String name)
                    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:
language_id - The language id of the attribute. java.lang.Integer
attribute_type - The type of the attribute. java.lang.String
sequence_number - The sequence number of the attribute. java.lang.Double
catentry_id - The Catalog Entry Id of the attribute. java.lang.Long
name - The name of the attribute. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Long attributeReferenceNumber,
                           java.lang.Integer language_id,
                           java.lang.String attribute_type)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException

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

Parameters:
attributeReferenceNumber - The reference number of the attribute. java.lang.Long
language_id - The language id of the attribute. java.lang.Integer
attribute_type - The type of the attribute. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Long attributeReferenceNumber,
                           java.lang.Integer language_id,
                           java.lang.String attribute_type,
                           java.lang.Double sequence_number)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException

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

Parameters:
attributeReferenceNumber - The reference number of the attribute. java.lang.Long
language_id - The language id of the attribute. java.lang.Integer
attribute_type - The type of the attribute. java.lang.String
sequence_number - The sequence number of the attribute. java.lang.Double
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Long attributeReferenceNumber,
                           java.lang.Integer language_id,
                           java.lang.String name,
                           java.lang.String attribute_type)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException,
                           javax.ejb.FinderException

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

Parameters:
attributeReferenceNumber - The reference number of the attribute. java.lang.Long
language_id - The language id of the attribute. java.lang.Integer
name - The name of the attribute. java.lang.String
attribute_type - The type of the attribute. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

AttributeAccessBean

public AttributeAccessBean(java.lang.Long attributeReferenceNumber,
                           java.lang.String attribute_type,
                           java.lang.Integer language_id,
                           java.lang.Long catentry_id,
                           java.lang.String name)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException

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

Parameters:
attributeReferenceNumber - The reference number of the attribute. java.lang.Long
attribute_type - The type of the attribute. java.lang.String
language_id - The language id of the attribute. java.lang.Integer
catentry_id - The Catalog Entry Id of the attribute. java.lang.Long
name - The name of the attribute. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException 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

findByAttributeId

public java.util.Enumeration findByAttributeId(java.lang.Long attributeId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Finds the attribute with the attribute reference number.

SQL:
SELECT * FROM ATTRIBUTE WHERE ATTRIBUTE.ATTRIBUTE_ID = attributeId

Parameters:
attributeId - An Attribute reference number. java.lang.Long
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

findByCatalogEntryId

public java.util.Enumeration findByCatalogEntryId(java.lang.Long catentryId)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

Finds the attribute with the Catalog Entry reference number.

SQL:
SELECT * FROM ATTRIBUTE WHERE ATTRIBUTE.CATENTRY_ID = catentryId

Parameters:
catentryId - An Catalog Entry reference number. java.lang.Long
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

findByCatEntryLanguageAndSequence

public java.util.Enumeration findByCatEntryLanguageAndSequence(java.lang.Long catentryId,
                                                               java.lang.Integer languageId,
                                                               java.lang.Double sequence_number)
                                                        throws java.rmi.RemoteException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException

Finds the attribute with the Catalog Entry reference number, language Id, and sequence number.

SQL:
SELECT * FROM ATTRIBUTE WHERE ATTRIBUTE.CATENTRY_ID = catentryId and ATTRIBUTE.Language_id = languageId and ATTRIBUTE.SEQUENCE = sequence_number

Parameters:
catentryId - An Catalog Entry reference number. java.lang.Long
languageId - The language Id. java.lang.Integer
sequence_number - The sequence number. java.lang.Double
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

findByCatEntryLanguageAndUsage

public java.util.Enumeration findByCatEntryLanguageAndUsage(java.lang.Long catentryId,
                                                            java.lang.Integer languageId,
                                                            java.lang.String usage)
                                                     throws java.rmi.RemoteException,
                                                            javax.ejb.FinderException,
                                                            javax.naming.NamingException

Finds the attribute with the Catalog Entry reference number, language Id, and usage.

SQL:
SELECT * FROM ATTRIBUTE WHERE ATTRIBUTE.CATENTRY_ID = catentryId and ATTRIBUTE.Language_id = languageId and ATTRIBUTE.USAGE = usage ORDER BY ATTRIBUTE.SEQUENCE

Parameters:
catentryId - An Catalog Entry reference number. java.lang.Long
languageId - The language Id. java.lang.Integer
usage - The usage of the attribute. 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

findByNameAndCatalogEntryAndLanguage

public AttributeAccessBean findByNameAndCatalogEntryAndLanguage(java.lang.String name,
                                                                java.lang.Long catentryId,
                                                                java.lang.Integer languageId)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Finds the attribute with the name, Catalog Entry reference number, and language Id.

SQL:
SELECT * FROM ATTRIBUTE WHERE ATTRIBUTE.NAME = name and ATTRIBUTE.CATENTRY_ID = catentryId and ATTRIBUTE.Language_id = languageId

Parameters:
name - The name of the attribute. java.lang.String
catentryId - An Catalog Entry reference number. java.lang.Long
languageId - The language Id. java.lang.Integer
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

findByProduct

public java.util.Enumeration findByProduct(java.lang.Long catEntryID,
                                           java.lang.Integer languageID)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Finds the attribute with the product.

SQL:
SELECT DESCRIPTION2, DESCRIPTION, SEQUENCE, ATTRIBUTE_ID, CATENTRY_ID, LANGUAGE_ID, OID, FIELD1, NAME, ATTRTYPE_ID, USAGE FROM ATTRIBUTE WHERE CATENTRY_ID = catEntryID AND LANGUAGE_ID = languageID

Parameters:
catEntryID - The product reference number. java.lang.Long
languageID - The language ID. java.lang.Integer
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

getAttributeReferenceNumber

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

This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of this attribute.

Specified by:
getAttributeReferenceNumber in interface AttributeAccessBeanData
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

getAttributeReferenceNumberInEJBType

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

This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of this attribute in EJB type.

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

getAttributeType

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

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

The following is a description of this column:

The type of the corresponding attribute value. This is a foreign key to the ATTRTYPE table.

Specified by:
getAttributeType in interface AttributeAccessBeanData
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

getAttributeValues

public AttributeValueAccessBean[] getAttributeValues()
                                              throws javax.naming.NamingException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     java.rmi.RemoteException

Gets the list of values defined for this attribute.

Returns:
com.ibm.commerce.catalog.objects.AttributeValueAccessBean[]
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

getCatalogEntryReferenceNumber

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

This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Product to which this Attribute belongs.

Specified by:
getCatalogEntryReferenceNumber in interface AttributeAccessBeanData
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

getCatalogEntryReferenceNumberInEJBType

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

This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Product to which this Attribute belongs.

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

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 ATTRIBUTE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

A description of this attribute.

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

getDescription2

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

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

The following is a description of this column:

An additional description field for this Attribute.

Specified by:
getDescription2 in interface AttributeAccessBeanData
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

getDistinctAttributeValues

public java.lang.Object[] getDistinctAttributeValues()
                                              throws javax.naming.NamingException,
                                                     javax.ejb.CreateException,
                                                     java.sql.SQLException,
                                                     javax.ejb.FinderException,
                                                     java.rmi.RemoteException

Gets the list of distinct attribute values.

Returns:
java.lang.Object[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.sql.SQLException - The java.sql.SQLException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getField1

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

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

The following is a description of this column:

A customizable field.

Specified by:
getField1 in interface AttributeAccessBeanData
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

getLanguage_id

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

This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this attribute pertains to.

Specified by:
getLanguage_id in interface AttributeAccessBeanData
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

getLanguage_idInEJBType

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

This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this attribute pertains to.

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

getMaxSequenceForCatEntryAndLanguage

public java.lang.Double getMaxSequenceForCatEntryAndLanguage(java.lang.Long aCatentryReferenceNumber,
                                                             java.lang.Integer aLanguageId)
                                                      throws javax.naming.NamingException,
                                                             javax.ejb.CreateException,
                                                             java.sql.SQLException,
                                                             javax.ejb.FinderException,
                                                             java.rmi.RemoteException

This method returns the maximum attribute sequence number with the given Catalog Entry reference number and language Id.

Parameters:
aCatentryReferenceNumber - The Catalog Entry reference number.
aLanguageId - The language Id.
Returns:
java.lang.Double
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

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

The following is a description of this column:

The name given to this attribute.

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

getOID

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

This method provides access to the ATTRIBUTE.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getOID in interface AttributeAccessBeanData
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

getSequenceNumber

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

This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

A sequence number that determines the order of display of attributes for a given product.

Specified by:
getSequenceNumber in interface AttributeAccessBeanData
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

getSequenceNumberInEJBType

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

This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

A sequence number that determines the order of display of attributes for a given product.

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

getUsage

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

This method provides access to the ATTRIBUTE.USAGE column of DB2 type CHARACTER (1) NULL DEFAULT '1'.

The following is a description of this column:

The purpose of the Attribute. NULL or "1" indicates SKU-resolution. "2" indicates a descriptive Attribute and should not be used to resolve SKUs.

Specified by:
getUsage in interface AttributeAccessBeanData
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

setAttributeReferenceNumber

public void setAttributeReferenceNumber(java.lang.Long attributeReferenceNumber)

This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of this attribute.

Parameters:
attributeReferenceNumber - The attribute reference number. java.lang.Long
Returns:
void

setAttributeReferenceNumber

public void setAttributeReferenceNumber(java.lang.String aAttributeReferenceNumber)

This method provides access to the ATTRIBUTE.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of this attribute.

Specified by:
setAttributeReferenceNumber in interface AttributeAccessBeanData
Parameters:
aAttributeReferenceNumber - The attribute reference number. java.lang.String
Returns:
void

setAttributeType

public void setAttributeType(java.lang.String attributeType)

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

The following is a description of this column:

The type of the corresponding attribute value. This is a foreign key to the ATTRTYPE table.

Specified by:
setAttributeType in interface AttributeAccessBeanData
Parameters:
attributeType - The attribute type. java.lang.String
Returns:
void

setCatalogEntryReferenceNumber

public void setCatalogEntryReferenceNumber(java.lang.Long aCatentryId)

This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Product to which this Attribute belongs.

Parameters:
aCatentryId - The Catalog Entry reference number. java.lang.Long
Returns:
void

setCatalogEntryReferenceNumber

public void setCatalogEntryReferenceNumber(java.lang.String aCatentryId)

This method provides access to the ATTRIBUTE.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Product to which this Attribute belongs.

Specified by:
setCatalogEntryReferenceNumber in interface AttributeAccessBeanData
Parameters:
aCatentryId - The Catalog Entry reference number. java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String attributeDescription)

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

The following is a description of this column:

A description of this attribute.

Specified by:
setDescription in interface AttributeAccessBeanData
Parameters:
attributeDescription - The description. java.lang.String
Returns:
void

setDescription2

public void setDescription2(java.lang.String aDescription)

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

The following is a description of this column:

An additional description field for this Attribute.

Specified by:
setDescription2 in interface AttributeAccessBeanData
Parameters:
aDescription - The description. java.lang.String
Returns:
void

setField1

public void setField1(java.lang.String aField1)

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

The following is a description of this column:

A customizable field.

Specified by:
setField1 in interface AttributeAccessBeanData
Parameters:
aField1 - The Field1 of the attribute. java.lang.String
Returns:
void

setInitKey_attributeReferenceNumber

public void setInitKey_attributeReferenceNumber(java.lang.String attributeReferenceNumber)

Set the primary key for this object

Parameters:
attributeReferenceNumber - The attribute reference number. java.lang.String
Returns:
void

setInitKey_language_id

public void setInitKey_language_id(java.lang.String languageID)

Set the primary key for this object - The language ID for the attribute.

Parameters:
languageID - The language ID. java.lang.String
Returns:
void

setLanguage_id

public void setLanguage_id(java.lang.Integer languageID)

This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this attribute pertains to.

Parameters:
languageID - The language ID. java.lang.Integer
Returns:
void

setLanguage_id

public void setLanguage_id(java.lang.String languageID)

This method provides access to the ATTRIBUTE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this attribute pertains to.

Specified by:
setLanguage_id in interface AttributeAccessBeanData
Parameters:
languageID - The language ID. java.lang.String
Returns:
void

setName

public void setName(java.lang.String attributeName)

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

The following is a description of this column:

The name given to this attribute.

Specified by:
setName in interface AttributeAccessBeanData
Parameters:
attributeName - The name of the attribute. java.lang.String
Returns:
void

setOID

public void setOID(java.lang.String aOID)

This method provides access to the ATTRIBUTE.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setOID in interface AttributeAccessBeanData
Parameters:
aOID - The OID of the attribute. java.lang.String
Returns:
void

setSequenceNumber

public void setSequenceNumber(java.lang.Double seqNumber)

This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

A sequence number that determines the order of display of attributes for a given product.

Parameters:
seqNumber - The sequence number. java.lang.Double
Returns:
void

setSequenceNumber

public void setSequenceNumber(java.lang.String seqNumber)

This method provides access to the ATTRIBUTE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

A sequence number that determines the order of display of attributes for a given product.

Specified by:
setSequenceNumber in interface AttributeAccessBeanData
Parameters:
seqNumber - The sequence number. java.lang.String
Returns:
void

setUsage

public void setUsage(java.lang.String aUsage)

This method provides access to the ATTRIBUTE.USAGE column of DB2 type CHARACTER (1) NULL DEFAULT '1'.

The following is a description of this column:

The purpose of the Attribute. NULL or "1" indicates SKU-resolution. "2" indicates a descriptive Attribute and should not be used to resolve SKUs.

Specified by:
setUsage in interface AttributeAccessBeanData
Parameters:
aUsage - The usage of the attribute. java.lang.String
Returns:
void