org.tigris.scarab.attribute
Class FreeFormAttribute
java.lang.Object
org.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseAttributeValue
org.tigris.scarab.om.AttributeValue
org.tigris.scarab.attribute.FreeFormAttribute
- All Implemented Interfaces:
- org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable
- Direct Known Subclasses:
- StringAttribute
- public abstract class FreeFormAttribute
- extends AttributeValue
This is a superclass for free-form attributes such as string, date
etc...
- Version:
- $Revision: 9977 $ $Date: 2005-12-09 01:40:59 +0100 (Fr, 09 Dez 2005) $
- Author:
- Fedor
- See Also:
- Serialized Form
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
|
Method Summary |
void |
init()
Override this method if you need any initialization for this attr. |
java.lang.Object |
loadResources()
Loads from database data specific for this Attribute including Name.
|
void |
setResources(java.lang.Object resources)
This method is used by an Attribute instance to obtain
specific resources such as option list for SelectOneAttribute.
|
| Methods inherited from class org.tigris.scarab.om.AttributeValue |
copy, equals, getActivity, getAttributeOption, getChainedValue, getNewInstance, getNewInstance, getNewInstance, getOptionIdAsString, getOptionIds, getQueryKey, getRModuleAttribute, getUserIds, getValueList, hashCode, isQuickSearchAttribute, isRequired, isSet, save, setActivity, setActivityDescription, setAttributeId, setChainedValue, setIssueId, setNumericValue, setOptionId, setOptionIdOnly, setOptionIds, setProperties, setUserId, setUserIdOnly, setUserIds, setValue, 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 |
FreeFormAttribute
public FreeFormAttribute()
init
public void init()
throws org.apache.torque.TorqueException
- Description copied from class:
AttributeValue
- Override this method if you need any initialization for this attr.
- Specified by:
init in class AttributeValue
- Throws:
org.apache.torque.TorqueException - Generic Exception
setResources
public void setResources(java.lang.Object resources)
- Description copied from class:
AttributeValue
- 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. Attributes
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.
loadResources
public java.lang.Object loadResources()
- 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.
Copyright © 2000-2004 Tigris.org. All Rights Reserved.