public class AttributeDataBean extends AttributeAccessBean
You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.
Access Beans: Attribute
Mandatory Parameters (for single row retrieval):
Some hints and tips for using this data bean are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
java.lang.String |
istrAttributeId
The attribute ID.
|
java.lang.String |
istrCatalogEntryId
The catalog entry ID in which the attribute belongs to.
|
java.lang.String |
istrName
The attribute name.
|
Constructor and Description |
---|
AttributeDataBean()
Creates an empty AttributeDataBean.
|
AttributeDataBean(AttributeAccessBean abAttribute)
Constructor of
AttributeDataBean using an AttributeAccessBean . |
AttributeDataBean(AttributeAccessBean abAttribute,
CommandContext aCommandContext)
Constructor of
AttributeDataBean using an AttributeAccessBean and a CommandContext . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeId()
Gets the attribute ID.
|
AttributeValueDataBean[] |
getAttributeValueDataBeans()
Gets a list of the
AttributeValueDataBean for the attribute. |
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.
|
boolean |
isDefiningAttribute()
Determines whether the attribute is a defining attribute.
|
void |
populate()
Loads data into the data bean
when the
DataBeanManager.activate() runs. |
void |
setAttributeId(java.lang.String newAttributeId)
Sets the attribute ID of the attribute.
|
void |
setCatalogEntryId(java.lang.String newCatalogEntryId)
Sets the catalog entry ID to which the attributes belong.
|
void |
setCommandContext(CommandContext aCommandContext)
Sets the CommandContext.
|
void |
setLanguageId(java.lang.String newLanguageId)
Sets the language ID for the attribute.
|
void |
setName(java.lang.String newName)
Sets the attribute name.
|
findByAttributeId, findByCatalogEntryId, findByCatEntryLanguageAndSequence, findByCatEntryLanguageAndUsage, findByNameAndCatalogEntryAndLanguage, findByProduct, getAttributeReferenceNumber, getAttributeReferenceNumberInEntityType, getAttributeType, getAttributeValues, getAttributeValues, getAttributeValues, getCatalogEntryReferenceNumber, getCatalogEntryReferenceNumberInEntityType, getDescription, getDescription2, getDistinctAttributeValues, getEntity, getField1, getGroupName, getLanguage_id, getLanguage_idInEntityType, getMaxSequenceForCatEntryAndLanguage, getNoteInfo, getOID, getSequenceNumber, getSequenceNumberInEntityType, getUsage, instantiateEntity, setAttributeReferenceNumber, setAttributeReferenceNumber, setAttributeType, setCatalogEntryReferenceNumber, setCatalogEntryReferenceNumber, setDescription, setDescription2, setField1, setGroupName, setInitKey_attributeReferenceNumber, setInitKey_attributeReferenceNumber, setInitKey_language_id, setInitKey_language_id, setLanguage_id, setLanguage_id, setNoteInfo, setOID, setSequenceNumber, setSequenceNumber, setUsage
public static final java.lang.String COPYRIGHT
public java.lang.String istrAttributeId
public java.lang.String istrName
public java.lang.String istrCatalogEntryId
public AttributeDataBean(AttributeAccessBean abAttribute)
AttributeDataBean
using an AttributeAccessBean
.abAttribute
- the AttributeAccessBean
for the attributepublic AttributeDataBean(AttributeAccessBean abAttribute, CommandContext aCommandContext)
AttributeDataBean
using an AttributeAccessBean
and a CommandContext
.abAttribute
- the AttributeAccessBean
for the attributeaCommandContext
- the CommandContext
public AttributeDataBean()
public java.lang.String getAttributeId()
public java.lang.String getCatalogEntryId()
public java.lang.String getLanguageId()
public java.lang.String getName()
getName
in class AttributeAccessBean
public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.java.lang.Exception
public void setAttributeId(java.lang.String newAttributeId)
newAttributeId
- attribute IDpublic void setCommandContext(CommandContext aCommandContext)
aCommandContext
- the CommandContextpublic void setCatalogEntryId(java.lang.String newCatalogEntryId)
newCatalogEntryId
- catalog entry IDpublic void setLanguageId(java.lang.String newLanguageId)
newLanguageId
- the language ID.public void setName(java.lang.String newName)
setName
in class AttributeAccessBean
newName
- name of the attributepublic AttributeValueDataBean[] getAttributeValueDataBeans()
AttributeValueDataBean
for the attribute.
An attribute is the property of a catalog entry; the attribute value is the possible property values.
For example, the attribute
may be size and the attribute values may be small, medium, and large.
If there are no attribute value data beans to return this method will return a zero length array.AttributeValueDataBean
.public boolean isDefiningAttribute()