com.ibm.commerce.catalog.beans
Class AttributeDataBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.catalog.objects.AttributeAccessBean
              |
              +--com.ibm.commerce.catalog.beans.AttributeDataBean
All Implemented Interfaces:
AttributeAccessBeanData

public class AttributeDataBean
extends AttributeAccessBean

This bean represents an attribute of a catalog entry.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 java.lang.String istrAttributeId
          The attribute ID.
 java.lang.String istrCatalogEntryId
          The catalog entry ID.
protected  java.lang.String istrLanguageId
          The language ID.
 java.lang.String istrName
          The attribute name.
 
Constructor Summary
AttributeDataBean()
          Creates an empty AttributeDataBean.
AttributeDataBean( AttributeAccessBean abAttribute)
          Constructor of AttributeDataBean using an AttributeAccessBean.
 
Method Summary
 java.lang.String getAttributeId()
          Gets the attribute ID.
 java.lang.String getCatalogEntryId()
          Gets the catalog entry ID.
 java.lang.String getLanguageId()
          The language ID of the attribute.
 java.lang.String getName()
          Gets the attribute name.
 void populate()
          Populates the bean with data and retrieves the bean from the database.
 void setAttributeId(java.lang.String newAttributeId)
          Sets the attribute ID of the attribute.
 void setCatalogEntryId(java.lang.String newCatalogEntryId)
          Sets the owner of the attribute.
 void setLanguageId(java.lang.String newLanguageId)
          Sets the language ID of the attribute.
 void setName(java.lang.String newName)
          Sets the attribute name.
 
Methods inherited from class com.ibm.commerce.catalog.objects. AttributeAccessBean
commitCopyHelper, defaultJNDIName, findByAttributeId, findByCatalogEntryId, findByCatEntryLanguageAndSequence, findByCatEntryLanguageAndUsage, findByNameAndCatalogEntryAndLanguage, findByProduct, getAttributeReferenceNumber, getAttributeReferenceNumberInEJBType, getAttributeType, getAttributeValues, getCatalogEntryReferenceNumber, getCatalogEntryReferenceNumberInEJBType, getDescription, getDescription2, getDistinctAttributeValues, getField1, getGroupName, getLanguage_id, getLanguage_idInEJBType, getMaxSequenceForCatEntryAndLanguage, getNoteInfo, getOID, getSequenceNumber, getSequenceNumberInEJBType, getUsage, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, setAttributeReferenceNumber, setAttributeReferenceNumber, setAttributeType, setCatalogEntryReferenceNumber, setCatalogEntryReferenceNumber, setDescription, setDescription2, setField1, setGroupName, setInitKey_attributeReferenceNumber, setInitKey_language_id, setLanguage_id, setLanguage_id, setNoteInfo, setOID, setSequenceNumber, setSequenceNumber, setUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

istrLanguageId

protected java.lang.String istrLanguageId
The language ID.

istrAttributeId

public java.lang.String istrAttributeId
The attribute ID.

istrName

public java.lang.String istrName
The attribute name.

istrCatalogEntryId

public java.lang.String istrCatalogEntryId
The catalog entry ID.
Constructor Detail

AttributeDataBean

public AttributeDataBean(AttributeAccessBean abAttribute)
                  throws javax.ejb.CreateException,
                         java.rmi.RemoteException,
                         javax.ejb.FinderException,
                         javax.naming.NamingException
Constructor of AttributeDataBean using an AttributeAccessBean.
Parameters:
abAttribute - the AttributeAccessBean for the attribute
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

AttributeDataBean

public AttributeDataBean()
Creates an empty AttributeDataBean.
Method Detail

getAttributeId

public java.lang.String getAttributeId()
Gets the attribute ID.
Returns:
attribute ID

getCatalogEntryId

public java.lang.String getCatalogEntryId()
Gets the catalog entry ID.
Returns:
catalog entry ID

getLanguageId

public java.lang.String getLanguageId()
The language ID of the attribute.
Returns:
language ID

getName

public java.lang.String getName()
Gets the attribute name.
Specified by:
getName in interface AttributeAccessBeanData
Overrides:
getName in class AttributeAccessBean
Returns:
attribute name

populate

public void populate()
              throws java.lang.Exception
Populates the bean with data and retrieves the bean from the database.
Throws:
java.lang.Exception

setAttributeId

public void setAttributeId(java.lang.String newAttributeId)
Sets the attribute ID of the attribute.
Parameters:
newAttributeId - attribute ID

setCatalogEntryId

public void setCatalogEntryId(java.lang.String newCatalogEntryId)
Sets the owner of the attribute. The owner of an attribute is a catalog entry.
Parameters:
newCatalogEntryId - catalog entry ID

setLanguageId

public void setLanguageId(java.lang.String newLanguageId)
Sets the language ID of the attribute.
Parameters:
newLanguageId - language ID of the attribute

setName

public void setName(java.lang.String newName)
Sets the attribute name.
Specified by:
setName in interface AttributeAccessBeanData
Overrides:
setName in class AttributeAccessBean
Parameters:
newName - name of the attribute
Returns:
void