public class AttachmentRelationDescriptionDataBean
extends com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
AttachmentDataBean
when displaying the attachment. The databean is used in the commands that create or update attachment relation
together with its descriptions.AttachmentRelationDescriptionAccessBean
.
And if a new description is being created in a command, no such data exists yet and an exception will be thrown.
The following get methods are available by this databean to be used in a command :
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
AttachmentRelationDescriptionDataBean()
Constructs an empty
AttachmentRelationDescriptionDataBean |
AttachmentRelationDescriptionDataBean(com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean abAttachmentRelationDescription,
CommandContext context)
Constructs an
AttachmentRelationDescriptionDataBean from a AttachmentRelationDescriptionAccessBean . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttachmentRelationDescriptionId()
Gets the attachment relation description ID.
|
java.lang.String |
getAttachmentRelationId()
Gets the attachment relation ID.
|
CommandContext |
getCommandContext()
Gets the command context set within this bean.
|
java.lang.String |
getLanguageId()
Gets the language ID.
|
java.lang.String |
getLongDescription()
Gets the long description of the attachment relation.
|
java.lang.String |
getName()
Gets the language dependent name of the attachment relation.
|
TypedProperty |
getRequestProperties()
Gets the request property set within this bean.
|
java.lang.String |
getShortDescription()
Gets the short description of the attachment relation.
|
void |
populate()
Fetches and populates information needed by the bean.
|
void |
reset()
Resets the databean
|
void |
setAttachmentRelationDescriptionId(java.lang.Long anAttachmentRelationDescriptionId)
Sets the attachment relation description ID.
|
void |
setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
Sets the attachment relation ID.
|
void |
setCommandContext(CommandContext commandContext)
Sets the command context passed in at run time.
|
void |
setLanguageId(java.lang.Integer anLanguageId)
Sets the language ID.
|
void |
setLongDescription(java.lang.String astrLongDescription)
Sets the long description of the attachment target.
|
void |
setName(java.lang.String astrName)
Sets the language dependent name of the attachment target.
|
void |
setRequestProperties(TypedProperty param)
Sets the request property and populates the parameters that are needed by the bean.
|
void |
setShortDescription(java.lang.String astrShortDescription)
Sets the short description of the attachment target.
|
findByAttachmentRelationId, findByAttachmentRelationIdAndLanguageId, findByLanguageIdAndName, getAttachmentRelationDescriptionIdInEntityType, getAttachmentRelationIdInEntityType, getEntity, getLanguageIdInEntityType, instantiateEntity, setAttachmentRelationId, setInitKey_attachmentRelationDescriptionId, setLanguageId
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public AttachmentRelationDescriptionDataBean()
AttachmentRelationDescriptionDataBean
public AttachmentRelationDescriptionDataBean(com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean abAttachmentRelationDescription, CommandContext context)
AttachmentRelationDescriptionDataBean
from a AttachmentRelationDescriptionAccessBean
.abAttachmentRelationDescription
- The AttachmentRelationDescriptionAccessBean
context
- The command contextpublic java.lang.String getAttachmentRelationDescriptionId()
getAttachmentRelationDescriptionId
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public java.lang.String getAttachmentRelationId()
getAttachmentRelationId
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public java.lang.String getLanguageId()
getLanguageId
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public java.lang.String getName()
getName
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public java.lang.String getShortDescription()
getShortDescription
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public java.lang.String getLongDescription()
getLongDescription
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
public CommandContext getCommandContext()
CommandContext
object.public TypedProperty getRequestProperties()
public void reset()
public void populate()
Any
- exception capturedpublic void setAttachmentRelationDescriptionId(java.lang.Long anAttachmentRelationDescriptionId)
anAttachmentRelationDescriptionId
- The attachment relation description IDpublic void setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
setAttachmentRelationId
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
anAttachmentRelationId
- The attachment relation IDpublic void setLanguageId(java.lang.Integer anLanguageId)
setLanguageId
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
anLanguageId
- The language IDpublic void setName(java.lang.String astrName)
setName
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
anLanguageId
- The language IDpublic void setShortDescription(java.lang.String astrShortDescription)
setShortDescription
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
astrShortDescription
- The short description of the attachment target.public void setLongDescription(java.lang.String astrLongDescription)
setLongDescription
in class com.ibm.commerce.attachment.objects.AttachmentRelationDescriptionAccessBean
astrLongDescription
- The attachment target long descriptionpublic void setCommandContext(CommandContext commandContext)
aCommandContext
- The command context as CommandContext
object.public void setRequestProperties(TypedProperty param)
param
- The request property as TypedProperty
object.