org.tigris.scarab.attribute
Class TotalVotesAttribute
java.lang.Object
org.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseAttributeValue
org.tigris.scarab.om.AttributeValue
org.tigris.scarab.attribute.TotalVotesAttribute
- All Implemented Interfaces:
- org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable
- public class TotalVotesAttribute
- extends AttributeValue
This is a Bugzilla-style attribute. The result is the sum of all votes.
- Version:
- $Revision: 7461 $ $Date: 2003-03-25 17:57:55 +0100 (Di, 25 Mär 2003) $
- Author:
- Fedor
- See Also:
- Serialized Form
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
|
Method Summary |
void |
addVote()
|
void |
addVotes(int votes)
|
int |
getTotalVotes()
|
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 |
removeVote()
|
void |
removeVotes(int votes)
|
void |
setResources(java.lang.Object obj)
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 |
TotalVotesAttribute
public TotalVotesAttribute()
getTotalVotes
public int getTotalVotes()
addVotes
public void addVotes(int votes)
addVote
public void addVote()
removeVotes
public void removeVotes(int votes)
removeVote
public void removeVote()
init
public void init()
- Description copied from class:
AttributeValue
- Override this method if you need any initialization for this attr.
- Specified by:
init in class AttributeValue
loadResources
public java.lang.Object loadResources()
- 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.
setResources
public void setResources(java.lang.Object obj)
- 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:
obj - Resources common for Attributes with the specified id.
Copyright © 2000-2004 Tigris.org. All Rights Reserved.