org.tigris.scarab.attribute
Class OptionAttribute
java.lang.Object
org.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseAttributeValue
org.tigris.scarab.om.AttributeValue
org.tigris.scarab.attribute.OptionAttribute
- All Implemented Interfaces:
- org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable
- Direct Known Subclasses:
- SelectOneAttribute
- public abstract class OptionAttribute
- extends AttributeValue
this is a superclass for attributes which use option lists (SelectOne & Voted)
- Version:
- $Revision: 9987 $ $Date: 2006-01-26 07:49:42 +0100 (Do, 26 Jan 2006) $
- Author:
- Fedor
- See Also:
- Serialized Form
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
|
Method Summary |
java.lang.Object |
loadResources()
Loads from database data specific for this Attribute including Name.
|
void |
setOption(RModuleOption option)
|
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 |
setValue(java.lang.String v)
Set the value of Value |
| Methods inherited from class org.tigris.scarab.om.AttributeValue |
copy, equals, getActivity, getAttributeOption, getChainedValue, getNewInstance, getNewInstance, getNewInstance, getOptionIdAsString, getOptionIds, getQueryKey, getRModuleAttribute, getUserIds, getValueList, hashCode, init, isQuickSearchAttribute, isRequired, isSet, save, setActivity, setActivityDescription, setAttributeId, setChainedValue, setIssueId, setNumericValue, setOptionId, setOptionIdOnly, setOptionIds, setProperties, setUserId, setUserIdOnly, setUserIds, setValueOnly, startActivitySet, supportsVoting, 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 |
OptionAttribute
public OptionAttribute()
setValue
public void setValue(java.lang.String v)
- Description copied from class:
BaseAttributeValue
- Set the value of Value
- Overrides:
setValue in class AttributeValue
setOption
public void setOption(RModuleOption option)
throws org.apache.torque.TorqueException
- Throws:
org.apache.torque.TorqueException
loadResources
public java.lang.Object loadResources()
throws org.apache.torque.TorqueException
- Description copied from class:
AttributeValue
- Loads from database data specific for this Attribute including Name.
These are data common to all Attribute instances with same id.
Data retrieved here will then be used in setResources.
- Specified by:
loadResources in class AttributeValue
- Returns:
- Object containing Attribute resources which will be
used in setResources.
- Throws:
org.apache.torque.TorqueException
setResources
public void setResources(java.lang.Object resources)
- this method is used by an Attribute instance
to obtain specific resources such as option list for SelectOneAttribute.
It may, for example put them into instance variables.
Attribute may use common resources as-is or create it's own
resources based on common, it should not, however, modify common resources
since they will be used by other Attribute instances.
- Specified by:
setResources in class AttributeValue
- Parameters:
resources - Resources common for Attributes with the specified id.
Copyright © 2000-2004 Tigris.org. All Rights Reserved.