Java Doc for AttributeValue.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » om » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.om 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tigris.scarab.om.BaseAttributeValue
   org.tigris.scarab.om.AttributeValue

All known Subclasses:   org.tigris.scarab.attribute.UserAttribute,  org.tigris.scarab.attribute.FreeFormAttribute,  org.tigris.scarab.attribute.OptionAttribute,  org.tigris.scarab.attribute.TotalVotesAttribute,
AttributeValue
abstract public class AttributeValue extends BaseAttributeValue implements Persistent(Code)
This class is for dealing with Issue Attribute Values
author:
   John McNally
author:
   Jon S. Stevens
author:
   Elicia David
version:
   $Id: AttributeValue.java 10131 2006-06-01 13:50:56Z dabbous $



Constructor Summary
protected  AttributeValue()
     Creates a new attribute.

Method Summary
public  AttributeValuecopy()
    
public  booleanequals(Object obj)
    
public  ActivitygetActivity()
     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.
public  AttributeOptiongetAttributeOption()
    
public  AttributeValuegetChainedValue()
     Get the value of chainedValue.
public static  AttributeValuegetNewInstance(RModuleAttribute rma, Issue issue)
     Creates, initializes and returns a new AttributeValue.
public static  AttributeValuegetNewInstance(Integer attId, Issue issue)
     Creates, initializes and returns a new AttributeValue.
public static synchronized  AttributeValuegetNewInstance(Attribute attribute, Issue issue)
     Creates, initializes and returns a new AttributeValue.
public  StringgetOptionIdAsString()
    
public  Integer[]getOptionIds()
    
public  StringgetQueryKey()
    
public  RModuleAttributegetRModuleAttribute()
    
public  Integer[]getUserIds()
    
public  ListgetValueList()
     This method returns a flat List of all AttributeValues that might be chained to this one.
public  inthashCode()
    
abstract public  voidinit()
     Override this method if you need any initialization for this attr.
public  booleanisQuickSearchAttribute()
     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.
public  booleanisRequired()
    
public  booleanisSet()
    
abstract protected  ObjectloadResources()
     Loads from database data specific for this Attribute including Name.
public  voidsave(Connection dbcon)
    
public  voidsetActivity(Activity activity)
    
public  voidsetActivityDescription(String string)
     Allows you to override the description for the activity that is generated when this attributevalue is saved.
public  voidsetAttributeId(Integer nk)
     sets the AttributeId for this as well as any chained values.
public  voidsetChainedValue(AttributeValue v)
     Set the value of chainedValue.
public  voidsetIssueId(Long nk)
     sets the IssueId for this as well as any chained values.
public  voidsetNumericValue(Integer v)
    
public  voidsetOptionId(Integer optionId)
    
protected  voidsetOptionIdOnly(Integer optionId)
    
public  voidsetOptionIds(Integer[] ids)
    
public  voidsetProperties(AttributeValue attVal1)
    
abstract protected  voidsetResources(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.
public  voidsetUserId(Integer userId)
    
protected  voidsetUserIdOnly(Integer value)
    
public  voidsetUserIds(Integer[] ids)
    
public  voidsetValue(String value)
    
protected  voidsetValueOnly(String value)
    
public  voidstartActivitySet(ActivitySet activitySet)
     Enters this attribute value into a activitySet.
public  booleansupportsVoting()
    
public  StringtoString()
    


Constructor Detail
AttributeValue
protected AttributeValue()(Code)
Creates a new attribute. Do not do anything here. All initialization should be performed in init().




Method Detail
copy
public AttributeValue copy() throws TorqueException(Code)



equals
public boolean equals(Object obj)(Code)



getActivity
public Activity getActivity()(Code)
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.



getAttributeOption
public AttributeOption getAttributeOption() throws TorqueException(Code)



getChainedValue
public AttributeValue getChainedValue()(Code)
Get the value of chainedValue. value of chainedValue.



getNewInstance
public static AttributeValue getNewInstance(RModuleAttribute rma, Issue issue) throws TorqueException(Code)
Creates, initializes and returns a new AttributeValue. new Attribute instance
Parameters:
  rma - the Attribute's rma
Parameters:
  issue - Issue object which this attribute is associated with



getNewInstance
public static AttributeValue getNewInstance(Integer attId, Issue issue) throws TorqueException(Code)
Creates, initializes and returns a new AttributeValue. new AttributeValue instance
Parameters:
  issue - Issue object which this attributeValue is associated
Parameters:
  attId - the Attribute's Id



getNewInstance
public static synchronized AttributeValue getNewInstance(Attribute attribute, Issue issue) throws TorqueException(Code)
Creates, initializes and returns a new AttributeValue. new AttributeValue instance
Parameters:
  attribute - the Attribute
Parameters:
  issue - Issue object which this attributeValue is associated



getOptionIdAsString
public String getOptionIdAsString()(Code)
Get the OptionId String



getOptionIds
public Integer[] getOptionIds() throws TorqueException(Code)
Not implemented always throws an exception a Integer[] value
exception:
  Exception - if an error occurs



getQueryKey
public String getQueryKey()(Code)



getRModuleAttribute
public RModuleAttribute getRModuleAttribute() throws TorqueException, ScarabException(Code)



getUserIds
public Integer[] getUserIds() throws TorqueException, ScarabException(Code)
Not implemented always throws an exception a Integer[] value
exception:
  Exception - if an error occurs



getValueList
public List getValueList()(Code)
This method returns a flat List of all AttributeValues that might be chained to this one. This AttributeValue will be first in the List. a List of AttributeValue's



hashCode
public int hashCode()(Code)



init
abstract public void init() throws TorqueException(Code)
Override this method if you need any initialization for this attr.
throws:
  TorqueException - Generic Exception



isQuickSearchAttribute
public boolean isQuickSearchAttribute() throws TorqueException(Code)
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. a boolean value



isRequired
public boolean isRequired() throws TorqueException, ScarabException(Code)



isSet
public boolean isSet()(Code)



loadResources
abstract protected Object loadResources() throws TorqueException(Code)
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. Object containing Attribute resources which will be used in setResources.



save
public void save(Connection dbcon) throws TorqueException(Code)



setActivity
public void setActivity(Activity activity)(Code)



setActivityDescription
public void setActivityDescription(String string)(Code)
Allows you to override the description for the activity that is generated when this attributevalue is saved.



setAttributeId
public void setAttributeId(Integer nk) throws TorqueException(Code)
sets the AttributeId for this as well as any chained values.



setChainedValue
public void setChainedValue(AttributeValue v) throws TorqueException, ScarabException(Code)
Set the value of chainedValue.
Parameters:
  v - Value to assign to chainedValue.



setIssueId
public void setIssueId(Long nk) throws TorqueException(Code)
sets the IssueId for this as well as any chained values.



setNumericValue
public void setNumericValue(Integer v)(Code)
Makes sure to set the Value as well
Parameters:
  v -



setOptionId
public void setOptionId(Integer optionId) throws TorqueException(Code)
Makes sure to set the Value as well, to make display of the option easier
Parameters:
  optionId - a Integer value



setOptionIdOnly
protected void setOptionIdOnly(Integer optionId) throws TorqueException(Code)



setOptionIds
public void setOptionIds(Integer[] ids) throws TorqueException, ScarabException(Code)



setProperties
public void setProperties(AttributeValue attVal1) throws TorqueException(Code)
Sets the properties of one attribute value based on another NOTE: Does not copy the deleted field



setResources
abstract protected void setResources(Object resources)(Code)
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.
Parameters:
  resources - Resources common for Attributes with the specified id.



setUserId
public void setUserId(Integer userId) throws TorqueException(Code)
Makes sure to set the Value as well, to make display of the user easier
Parameters:
  userId - a Integer value



setUserIdOnly
protected void setUserIdOnly(Integer value) throws TorqueException(Code)



setUserIds
public void setUserIds(Integer[] ids) throws TorqueException, ScarabException(Code)



setValue
public void setValue(String value)(Code)



setValueOnly
protected void setValueOnly(String value)(Code)



startActivitySet
public void startActivitySet(ActivitySet activitySet) throws ScarabException, TorqueException(Code)
Enters this attribute value into a activitySet. All changes to a value must occur within a activitySet. The activitySet is cleared once the attribute value is saved.
Parameters:
  activitySet - a ActivitySet value
exception:
  ScarabException - if a new activitySet is set beforethe value is saved.



supportsVoting
public boolean supportsVoting()(Code)



toString
public String toString()(Code)



Methods inherited from org.tigris.scarab.om.BaseAttributeValue
abstract public AttributeValue copy() throws TorqueException(Code)(Java Doc)
protected AttributeValue copyInto(AttributeValue copyObj) throws TorqueException(Code)(Java Doc)
public Attribute getAttribute() throws TorqueException(Code)(Java Doc)
public Attribute getAttribute(Connection connection) throws TorqueException(Code)(Java Doc)
public Integer getAttributeId()(Code)(Java Doc)
public AttributeOption getAttributeOption() throws TorqueException(Code)(Java Doc)
public AttributeOption getAttributeOption(Connection connection) throws TorqueException(Code)(Java Doc)
public Object getByName(String name)(Code)(Java Doc)
public Object getByPeerName(String name)(Code)(Java Doc)
public Object getByPosition(int pos)(Code)(Java Doc)
public boolean getDeleted()(Code)(Java Doc)
public static synchronized List getFieldNames()(Code)(Java Doc)
public Issue getIssue() throws TorqueException(Code)(Java Doc)
public Issue getIssue(Connection connection) throws TorqueException(Code)(Java Doc)
public Long getIssueId()(Code)(Java Doc)
public Integer getNumericValue()(Code)(Java Doc)
public Integer getOptionId()(Code)(Java Doc)
public AttributeValuePeer getPeer()(Code)(Java Doc)
public ObjectKey getPrimaryKey()(Code)(Java Doc)
public String getQueryKey()(Code)(Java Doc)
public ScarabUser getScarabUser() throws TorqueException(Code)(Java Doc)
public ScarabUser getScarabUser(Connection connection) throws TorqueException(Code)(Java Doc)
public Integer getUserId()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public Long getValueId()(Code)(Java Doc)
protected boolean isCacheOnSave()(Code)(Java Doc)
public void save() throws TorqueException(Code)(Java Doc)
public void save(String dbName) throws TorqueException(Code)(Java Doc)
public void save(Connection con) throws TorqueException(Code)(Java Doc)
public void setAttribute(Attribute v) throws TorqueException(Code)(Java Doc)
public void setAttributeId(Integer v) throws TorqueException(Code)(Java Doc)
public void setAttributeKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setAttributeOption(AttributeOption v) throws TorqueException(Code)(Java Doc)
public void setAttributeOptionKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setDeleted(boolean v)(Code)(Java Doc)
public void setIssue(Issue v) throws TorqueException(Code)(Java Doc)
public void setIssueId(Long v) throws TorqueException(Code)(Java Doc)
public void setIssueKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setNumericValue(Integer v)(Code)(Java Doc)
public void setOptionId(Integer v) throws TorqueException(Code)(Java Doc)
public void setPrimaryKey(ObjectKey key)(Code)(Java Doc)
public void setPrimaryKey(String key)(Code)(Java Doc)
public void setQueryKey(String key) throws TorqueException(Code)(Java Doc)
public void setScarabUser(ScarabUser v) throws TorqueException(Code)(Java Doc)
public void setScarabUserKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setUserId(Integer v) throws TorqueException(Code)(Java Doc)
public void setValue(String v)(Code)(Java Doc)
public void setValueId(Long v)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.