|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseAttributeValue
org.tigris.scarab.om.AttributeValue
This class is for dealing with Issue Attribute Values
| Field Summary |
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
protected |
AttributeValue()
Creates a new attribute. |
| Method Summary | |
AttributeValue |
copy()
Makes a copy of this object. |
boolean |
equals(java.lang.Object obj)
|
Activity |
getActivity()
Gets the Activity record associated with this AttributeValue It can only be retrieved after the save() method has been called since that is when it is generated. |
AttributeOption |
getAttributeOption()
Returns the associated AttributeOption object. |
AttributeValue |
getChainedValue()
Get the value of chainedValue. |
static AttributeValue |
getNewInstance(Attribute attribute,
Issue issue)
Creates, initializes and returns a new AttributeValue. |
static AttributeValue |
getNewInstance(java.lang.Integer attId,
Issue issue)
Creates, initializes and returns a new AttributeValue. |
static AttributeValue |
getNewInstance(RModuleAttribute rma,
Issue issue)
Creates, initializes and returns a new AttributeValue. |
java.lang.String |
getOptionIdAsString()
Get the OptionId |
java.lang.Integer[] |
getOptionIds()
Not implemented always throws an exception |
java.lang.String |
getQueryKey()
get an id that differentiates this object from others of its class. |
RModuleAttribute |
getRModuleAttribute()
|
java.lang.Integer[] |
getUserIds()
Not implemented always throws an exception |
java.util.List |
getValueList()
This method returns a flat List of all AttributeValues that might be chained to this one. |
int |
hashCode()
|
abstract void |
init()
Override this method if you need any initialization for this attr. |
boolean |
isQuickSearchAttribute()
if the Attribute related to this value is marked as relevant to quick search in the module related to the Issue related to this value. |
boolean |
isRequired()
|
boolean |
isSet()
|
protected abstract java.lang.Object |
loadResources()
Loads from database data specific for this Attribute including Name. |
void |
save(java.sql.Connection dbcon)
Stores the object in the database. |
void |
setActivity(Activity activity)
|
void |
setActivityDescription(java.lang.String string)
Allows you to override the description for the activity that is generated when this attributevalue is saved. |
void |
setAttributeId(java.lang.Integer nk)
sets the AttributeId for this as well as any chained values. |
void |
setChainedValue(AttributeValue v)
Set the value of chainedValue. |
void |
setIssueId(java.lang.Long nk)
sets the IssueId for this as well as any chained values. |
void |
setNumericValue(java.lang.Integer v)
Makes sure to set the Value as well |
void |
setOptionId(java.lang.Integer optionId)
Makes sure to set the Value as well, to make display of the option easier |
protected void |
setOptionIdOnly(java.lang.Integer optionId)
|
void |
setOptionIds(java.lang.Integer[] ids)
|
void |
setProperties(AttributeValue attVal1)
Sets the properties of one attribute value based on another NOTE: Does not copy the deleted field |
protected abstract void |
setResources(java.lang.Object resources)
This method is used by an Attribute instance to obtain specific resources such as option list for SelectOneAttribute. |
void |
setUserId(java.lang.Integer userId)
Makes sure to set the Value as well, to make display of the user easier |
protected void |
setUserIdOnly(java.lang.Integer value)
|
void |
setUserIds(java.lang.Integer[] ids)
|
void |
setValue(java.lang.String value)
Set the value of Value |
protected void |
setValueOnly(java.lang.String value)
|
void |
startActivitySet(ActivitySet activitySet)
Enters this attribute value into a activitySet. |
boolean |
supportsVoting()
|
java.lang.String |
toString()
|
| Methods inherited from class org.tigris.scarab.om.BaseAttributeValue |
copyInto, getAttribute, getAttribute, getAttributeId, getAttributeOption, getByName, getByPeerName, getByPosition, getDeleted, getFieldNames, getIssue, getIssue, getIssueId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getScarabUser, getScarabUser, getUserId, getValue, getValueId, isCacheOnSave, save, save, setAttribute, setAttributeKey, setAttributeOption, setAttributeOptionKey, setDeleted, setIssue, setIssueKey, setPrimaryKey, setPrimaryKey, setQueryKey, setScarabUser, setScarabUserKey, setValueId |
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, getLog, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.torque.om.Persistent |
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Constructor Detail |
protected AttributeValue()
| Method Detail |
public AttributeValue getChainedValue()
public void setChainedValue(AttributeValue v)
throws org.apache.torque.TorqueException,
ScarabException
v - Value to assign to chainedValue.
org.apache.torque.TorqueException
ScarabExceptionpublic java.util.List getValueList()
List of AttributeValue's
public void setAttributeId(java.lang.Integer nk)
throws org.apache.torque.TorqueException
setAttributeId in class BaseAttributeValuenk - new value
org.apache.torque.TorqueException
public void setIssueId(java.lang.Long nk)
throws org.apache.torque.TorqueException
setIssueId in class BaseAttributeValuenk - new value
org.apache.torque.TorqueException
public void startActivitySet(ActivitySet activitySet)
throws ScarabException,
org.apache.torque.TorqueException
activitySet - a ActivitySet value
ScarabException - if a new activitySet is set before
the value is saved.
org.apache.torque.TorqueExceptionpublic java.lang.String getQueryKey()
BaseAttributeValue
getQueryKey in interface org.apache.fulcrum.intake.RetrievablegetQueryKey in class BaseAttributeValuepublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
toString in class BaseAttributeValuepublic java.lang.String getOptionIdAsString()
public void setOptionId(java.lang.Integer optionId)
throws org.apache.torque.TorqueException
setOptionId in class BaseAttributeValueoptionId - a Integer value
org.apache.torque.TorqueExceptionpublic void setNumericValue(java.lang.Integer v)
setNumericValue in class BaseAttributeValuev -
protected void setOptionIdOnly(java.lang.Integer optionId)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setUserId(java.lang.Integer userId)
throws org.apache.torque.TorqueException
setUserId in class BaseAttributeValueuserId - a Integer value
org.apache.torque.TorqueException
protected void setUserIdOnly(java.lang.Integer value)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.lang.Integer[] getOptionIds()
throws org.apache.torque.TorqueException
Integer[] value
java.lang.Exception - if an error occurs
org.apache.torque.TorqueException
public void setOptionIds(java.lang.Integer[] ids)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public java.lang.Integer[] getUserIds()
throws org.apache.torque.TorqueException,
ScarabException
Integer[] value
java.lang.Exception - if an error occurs
org.apache.torque.TorqueException
ScarabException
public void setUserIds(java.lang.Integer[] ids)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabExceptionpublic void setValue(java.lang.String value)
BaseAttributeValue
setValue in class BaseAttributeValuevalue - new valueprotected void setValueOnly(java.lang.String value)
public boolean isSet()
public boolean isRequired()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public RModuleAttribute getRModuleAttribute()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public AttributeOption getAttributeOption()
throws org.apache.torque.TorqueException
BaseAttributeValue
getAttributeOption in class BaseAttributeValueorg.apache.torque.TorqueException
public boolean isQuickSearchAttribute()
throws org.apache.torque.TorqueException
boolean value
org.apache.torque.TorqueException
public static AttributeValue getNewInstance(RModuleAttribute rma,
Issue issue)
throws org.apache.torque.TorqueException
rma - the Attribute's rmaissue - Issue object which this attribute is associated with
org.apache.torque.TorqueException
public static AttributeValue getNewInstance(java.lang.Integer attId,
Issue issue)
throws org.apache.torque.TorqueException
issue - Issue object which this attributeValue is associatedattId - the Attribute's Id
org.apache.torque.TorqueException
public static AttributeValue getNewInstance(Attribute attribute,
Issue issue)
throws org.apache.torque.TorqueException
attribute - the Attributeissue - Issue object which this attributeValue is associated
org.apache.torque.TorqueException
protected abstract java.lang.Object loadResources()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionprotected abstract void setResources(java.lang.Object resources)
resources - Resources common for Attributes with the specified id.
public abstract void init()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException - Generic Exceptionpublic boolean supportsVoting()
public AttributeValue copy()
throws org.apache.torque.TorqueException
BaseAttributeValue
copy in class BaseAttributeValueorg.apache.torque.TorqueException
public void save(java.sql.Connection dbcon)
throws org.apache.torque.TorqueException
BaseAttributeValue
save in interface org.apache.torque.om.Persistentsave in class BaseAttributeValuedbcon -
org.apache.torque.TorqueExceptionpublic Activity getActivity()
public void setActivity(Activity activity)
public void setActivityDescription(java.lang.String string)
public void setProperties(AttributeValue attVal1)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||