public abstract class AttachmentRelationBaseUpdateCmdImpl extends ControllerCommandImpl implements AttachmentRelationBaseUpdateCmd
If the attachment relation ID is specified, then the attachment relation will be updated. If the command is called as URL. Only one description can be created or updated. Otherwise, multiple descriptions can be updated by setting the vector of AttachmentRelationDescriptionDataBean.
When updating the attachment relation, the command will change the parameters set by the command. However, the behavior in updating the attachment relation description is different. The behavior depends on whether the command was called as a URL or as a command.
By default, the option to create the missing attachment relation and its descriptions is set to True. If the option is set to false and the attachment relation or any of its descriptions is not found, an exception will be thrown. Parameters:
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 |
---|
AttachmentRelationBaseUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long | getAttachmentObjectId()
Gets the Attachment Object ID.
|
java.lang.Integer | getAttachmentObjectTypeId()
Gets the Attachment Object Type ID.
|
java.util.Vector | getAttachmentRelationDescriptions()
Gets the vector of AttachmentRelationDescriptionDataBean
|
java.lang.Long | getAttachmentRelationId()
Gets the attachment relation ID for the object.
|
java.lang.Integer | getAttachmentRelationUsageId()
Gets the attachment relation usage ID in the attachment relation.
|
java.lang.Long | getAttachmentTargetId()
Gets the attachment target ID in the attachment relation.
|
protected java.lang.Long | getObjectIdFromAttachmentRelationId(java.lang.Long anAttachmentRelationId, java.lang.Integer anExpectedObjectTypeId)
Gets the Object ID used in the Attachment Relation.
|
java.lang.Double | getSequence()
Gets the sequence used in the attachment relation.
|
java.lang.String | getURL()
Gets the redirect URL.
|
void | performExecute()
If the attachment relation ID is not given, calls addAttachmentRelation to create the attachment relation.
|
protected void | preSetParameters()
Sets some of the parameters that have not been set by the caller.
|
void | reset()
Resets the variables used.
|
void | setAttachmentObjectId(java.lang.Long anAttachmentObjectId)
Sets the Object ID.
|
void | setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
Sets the Attachment Object Type ID.
|
void | setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
Sets the vector of AttachmentRelationDescriptionDataBean to be created as the description for the attachment relation.
|
void | setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
Sets the attachment relation ID.
|
void | setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
Sets the attachment relation usage ID.
|
void | setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID.
|
void | setCreateMissing(java.lang.Boolean aboolCreateMissing)
Sets the option the create missing attachment relation and attachment relation descriptions.
|
protected void | setCreateMultipleDescriptions(boolean aboolCreateMultipleDescriptions)
Sets the create multiple descriptions flag.
|
void | setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void | setSequence(java.lang.Double adSequence)
Sets the sequence in the attachment relation.
|
void | setURL(java.lang.String astrURL)
Sets the redirect URL.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.Long getObjectIdFromAttachmentRelationId(java.lang.Long anAttachmentRelationId, java.lang.Integer anExpectedObjectTypeId) throws ECException
public java.lang.Long getAttachmentObjectId()
public java.lang.Integer getAttachmentObjectTypeId()
public java.lang.Long getAttachmentRelationId()
public java.lang.Long getAttachmentTargetId()
public java.lang.Integer getAttachmentRelationUsageId()
public java.lang.Double getSequence()
public java.util.Vector getAttachmentRelationDescriptions()
public java.lang.String getURL()
public void performExecute() throws ECException
protected void preSetParameters() throws ECException
public void reset()
public void setCreateMissing(java.lang.Boolean aboolCreateMissing)
protected void setCreateMultipleDescriptions(boolean aboolCreateMultipleDescriptions)
public void setAttachmentObjectId(java.lang.Long anAttachmentObjectId)
public void setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
public void setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
public void setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
public void setSequence(java.lang.Double adSequence)
public void setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
public void setURL(java.lang.String astrURL)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException