public class AttachmentTargetDescriptionDataBean
extends com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
AttachmentDataBean
when displaying the attachment. AttachmentTargetDescriptionAccessBean
.
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 |
---|
AttachmentTargetDescriptionDataBean()
Constructs an empty
AttachmentTargetDescriptionDataBean |
AttachmentTargetDescriptionDataBean(com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean abAttachmentTargetDescription,
CommandContext context)
Constructs an
AttachmentTargetDescriptionDataBean from a AttachmentTargetDescriptionAccessBean . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttachmentTargetDescriptionId()
Gets the attachment target description ID.
|
java.lang.String |
getAttachmentTargetId()
Gets the attachment target 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 target.
|
java.lang.String |
getName()
Gets the language dependent name of the attachment target.
|
TypedProperty |
getRequestProperties()
Gets the request property set within this bean.
|
java.lang.String |
getShortDescription()
Gets the short description of the attachment target.
|
void |
populate()
Fetches and populates information needed by the bean.
|
void |
reset()
Resets the databean
|
void |
setAttachmentTargetDescriptionId(java.lang.Long anAttachmentTargetDescriptionId)
Sets the attachment target description ID.
|
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target 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.
|
findByLanguageIdAndName, findByTargetId, findByTargetIdAndLanguageId, getAttachmentTargetDescriptionIdInEntityType, getAttachmentTargetIdInEntityType, getEntity, getLanguageIdInEntityType, instantiateEntity, setAttachmentTargetId, setInitKey_attachmentTargetDescriptionId, setLanguageId
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public AttachmentTargetDescriptionDataBean()
AttachmentTargetDescriptionDataBean
public AttachmentTargetDescriptionDataBean(com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean abAttachmentTargetDescription, CommandContext context)
AttachmentTargetDescriptionDataBean
from a AttachmentTargetDescriptionAccessBean
.abAttachmentTargetDescription
- The AttachmentTargetDescriptionAccessBean
context
- The command contextpublic java.lang.String getAttachmentTargetDescriptionId()
getAttachmentTargetDescriptionId
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public java.lang.String getAttachmentTargetId()
getAttachmentTargetId
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public java.lang.String getLanguageId()
getLanguageId
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public java.lang.String getName()
getName
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public java.lang.String getShortDescription()
getShortDescription
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public java.lang.String getLongDescription()
getLongDescription
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
public CommandContext getCommandContext()
CommandContext
object.public TypedProperty getRequestProperties()
public void reset()
public void populate()
java.lang.Exception
- Any exception capturedpublic void setAttachmentTargetDescriptionId(java.lang.Long anAttachmentTargetDescriptionId)
anAttachmentTargetDescriptionId
- The attachment target description IDpublic void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
anAttachmentTargetId
- The attachment target IDpublic void setLanguageId(java.lang.Integer anLanguageId)
setLanguageId
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
anLanguageId
- The language IDpublic void setName(java.lang.String astrName)
setName
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
astrName
- The language name.public void setShortDescription(java.lang.String astrShortDescription)
setShortDescription
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
astrShortDescription
- The short description of the attachment targetpublic void setLongDescription(java.lang.String astrLongDescription)
setLongDescription
in class com.ibm.commerce.attachment.objects.AttachmentTargetDescriptionAccessBean
astrLongDescription
- The attachment target long descriptionpublic void setCommandContext(CommandContext commandContext)
commandContext
- The command context as CommandContext
object.public void setRequestProperties(TypedProperty param)
param
- The request property as TypedProperty
object.