Java Doc for AttributeOption.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.BaseAttributeOption
   org.tigris.scarab.om.AttributeOption

AttributeOption
public class AttributeOption extends BaseAttributeOption implements Persistent(Code)
This class deals with AttributeOptions. For more details about the implementation of this class, read the documentation about how Scarab manages Attributes.

The implementation of this class is "smart" in that it will only touch the database when it absolutely needs to. For example, if you create a new AttributeOption, it will not query the database for the parent/child relationships until you ask it to. It will then cache the information locally.

All instances of AttributeOptions are cached using the TurbineGlobalCache service.
author:
   Jon S. Stevens
version:
   $Id: AttributeOption.java 9977 2005-12-09 00:40:59Z hair $




Constructor Summary
protected  AttributeOption()
    

Method Summary
public  voiddeleteIssueTypeMappings()
     Delete mappings with global issue types.
public  voiddeleteModuleMappings()
     Delete mappings with all modules and issue types.
public  ListgetAncestors()
     Returns a list of AttributeOptions which are ancestors of this AttributeOption.
public  AttributegetAttribute()
    
static  StringgetCacheKey(ObjectKey key)
    
public  ListgetChildren()
     Returns a list of AttributeOption's which are children of this AttributeOption.
public static  ComparatorgetComparator()
     Compares numeric value and in cases where the numeric value is the same it compares the display values.
public  ListgetDescendants()
     Returns a list of AttributeOptions which are descendants of this AttributeOption.
public  AttributeOptiongetParent()
     Returns direct parent of this child.
public  ListgetParents()
     Returns a list of AttributeOption's which are parents of this AttributeOption.
public static  IntegergetStatusClosedPK()
    
public  booleanhasChildren()
    
public  booleanhasParents()
    
public  booleanisChildOf(AttributeOption parent)
     Checks to see if this Attribute option is a child of the passed in AttributeOption parent.
public  booleanisParentOf(AttributeOption child)
     Checks to see if this Attribute option is a parent of the passed in AttributeOption child.
public  booleanisSystemDefined()
     Checks if this attribute option is associated with atleast one of the global issue types that is system defined. True if it is associated with a System definedglobal Issue Type.
public  voidsetAttribute(Attribute v)
    
public  voidsortChildren()
    
public  voidsortParents()
    
public  StringtoString()
     A String representation of this object.


Constructor Detail
AttributeOption
protected AttributeOption()(Code)
Must call getInstance()




Method Detail
deleteIssueTypeMappings
public void deleteIssueTypeMappings() throws TorqueException(Code)
Delete mappings with global issue types.



deleteModuleMappings
public void deleteModuleMappings() throws TorqueException(Code)
Delete mappings with all modules and issue types.



getAncestors
public List getAncestors() throws TorqueException(Code)
Returns a list of AttributeOptions which are ancestors of this AttributeOption. An Ancestor is the parent tree going up from this AO. The order is bottom up.



getAttribute
public Attribute getAttribute() throws TorqueException(Code)
Get the Attribute associated with this Option



getCacheKey
static String getCacheKey(ObjectKey key)(Code)
Creates a key for use in caching AttributeOptions



getChildren
public List getChildren() throws TorqueException(Code)
Returns a list of AttributeOption's which are children of this AttributeOption.



getComparator
public static Comparator getComparator()(Code)
Compares numeric value and in cases where the numeric value is the same it compares the display values.



getDescendants
public List getDescendants() throws TorqueException(Code)
Returns a list of AttributeOptions which are descendants of this AttributeOption. The descendants is the child tree going down from this AO. The order is bottom up.



getParent
public AttributeOption getParent() throws TorqueException(Code)
Returns direct parent of this child.



getParents
public List getParents() throws TorqueException(Code)
Returns a list of AttributeOption's which are parents of this AttributeOption.



getStatusClosedPK
public static Integer getStatusClosedPK()(Code)



hasChildren
public boolean hasChildren() throws TorqueException(Code)
Does this AttributeOption have children?



hasParents
public boolean hasParents() throws TorqueException(Code)
Does this AttributeOption have parents?



isChildOf
public boolean isChildOf(AttributeOption parent) throws TorqueException(Code)
Checks to see if this Attribute option is a child of the passed in AttributeOption parent.



isParentOf
public boolean isParentOf(AttributeOption child) throws TorqueException(Code)
Checks to see if this Attribute option is a parent of the passed in AttributeOption child.



isSystemDefined
public boolean isSystemDefined() throws TorqueException(Code)
Checks if this attribute option is associated with atleast one of the global issue types that is system defined. True if it is associated with a System definedglobal Issue Type. False otherwise.



setAttribute
public void setAttribute(Attribute v) throws TorqueException(Code)
Set the Attribute associated with this Option



sortChildren
public void sortChildren()(Code)
re-sorts the children



sortParents
public void sortParents()(Code)
re-sorts the Parents



toString
public String toString()(Code)
A String representation of this object.



Fields inherited from org.tigris.scarab.om.BaseAttributeOption
protected List collActivitysRelatedByNewOptionId(Code)(Java Doc)
protected List collActivitysRelatedByOldOptionId(Code)(Java Doc)
protected List collAttributeValues(Code)(Java Doc)
protected List collAttributes(Code)(Java Doc)
protected List collConditions(Code)(Java Doc)
protected List collRIssueTypeOptions(Code)(Java Doc)
protected List collRModuleOptions(Code)(Java Doc)
protected List collROptionOptionsRelatedByOption1Id(Code)(Java Doc)
protected List collROptionOptionsRelatedByOption2Id(Code)(Java Doc)
protected List collTransitionsRelatedByFromOptionId(Code)(Java Doc)
protected List collTransitionsRelatedByToOptionId(Code)(Java Doc)

Methods inherited from org.tigris.scarab.om.BaseAttributeOption
public void addActivityRelatedByNewOptionId(Activity l) throws TorqueException(Code)(Java Doc)
public void addActivityRelatedByOldOptionId(Activity l) throws TorqueException(Code)(Java Doc)
public void addAttribute(Attribute l) throws TorqueException(Code)(Java Doc)
public void addAttributeValue(AttributeValue l) throws TorqueException(Code)(Java Doc)
public void addCondition(Condition l) throws TorqueException(Code)(Java Doc)
public void addRIssueTypeOption(RIssueTypeOption l) throws TorqueException(Code)(Java Doc)
public void addRModuleOption(RModuleOption l) throws TorqueException(Code)(Java Doc)
public void addROptionOptionRelatedByOption1Id(ROptionOption l) throws TorqueException(Code)(Java Doc)
public void addROptionOptionRelatedByOption2Id(ROptionOption l) throws TorqueException(Code)(Java Doc)
public void addTransitionRelatedByFromOptionId(Transition l) throws TorqueException(Code)(Java Doc)
public void addTransitionRelatedByToOptionId(Transition l) throws TorqueException(Code)(Java Doc)
public AttributeOption copy() throws TorqueException(Code)(Java Doc)
protected AttributeOption copyInto(AttributeOption copyObj) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByNewOptionId() throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByNewOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByNewOptionId(Connection con) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByNewOptionId(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinActivitySet(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinAttachment(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinAttributeOptionRelatedByOldOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinDepend(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinIssue(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinScarabUserImplRelatedByNewUserId(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByNewOptionIdJoinScarabUserImplRelatedByOldUserId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByOldOptionId() throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByOldOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByOldOptionId(Connection con) throws TorqueException(Code)(Java Doc)
public List getActivitysRelatedByOldOptionId(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinActivitySet(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinAttachment(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinAttributeOptionRelatedByNewOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinDepend(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinIssue(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinScarabUserImplRelatedByNewUserId(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getActivitysRelatedByOldOptionIdJoinScarabUserImplRelatedByOldUserId(Criteria criteria) 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 List getAttributeValues() throws TorqueException(Code)(Java Doc)
public List getAttributeValues(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getAttributeValues(Connection con) throws TorqueException(Code)(Java Doc)
public List getAttributeValues(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getAttributeValuesJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getAttributeValuesJoinAttributeOption(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getAttributeValuesJoinIssue(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getAttributeValuesJoinScarabUserImpl(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getAttributes() throws TorqueException(Code)(Java Doc)
public List getAttributes(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getAttributes(Connection con) throws TorqueException(Code)(Java Doc)
public List getAttributes(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getAttributesJoinAttributeOption(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getAttributesJoinAttributeType(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getAttributesJoinScarabUserImpl(Criteria criteria) 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 List getConditions() throws TorqueException(Code)(Java Doc)
public List getConditions(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getConditions(Connection con) throws TorqueException(Code)(Java Doc)
public List getConditions(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getConditionsJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getConditionsJoinAttributeOption(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getConditionsJoinRModuleAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getConditionsJoinRModuleIssueType(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getConditionsJoinTransition(Criteria criteria) throws TorqueException(Code)(Java Doc)
public boolean getDeleted()(Code)(Java Doc)
public static synchronized List getFieldNames()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Integer getOptionId()(Code)(Java Doc)
public AttributeOptionPeer getPeer()(Code)(Java Doc)
public ObjectKey getPrimaryKey()(Code)(Java Doc)
public String getQueryKey()(Code)(Java Doc)
public List getRIssueTypeOptions() throws TorqueException(Code)(Java Doc)
public List getRIssueTypeOptions(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getRIssueTypeOptions(Connection con) throws TorqueException(Code)(Java Doc)
public List getRIssueTypeOptions(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getRIssueTypeOptionsJoinAttributeOption(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getRIssueTypeOptionsJoinIssueType(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getRModuleOptions() throws TorqueException(Code)(Java Doc)
public List getRModuleOptions(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getRModuleOptions(Connection con) throws TorqueException(Code)(Java Doc)
public List getRModuleOptions(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getRModuleOptionsJoinAttributeOption(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getRModuleOptionsJoinIssueType(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getRModuleOptionsJoinScarabModule(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption1Id() throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption1Id(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption1Id(Connection con) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption1Id(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getROptionOptionsRelatedByOption1IdJoinAttributeOptionRelatedByOption2Id(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getROptionOptionsRelatedByOption1IdJoinOptionRelationship(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption2Id() throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption2Id(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption2Id(Connection con) throws TorqueException(Code)(Java Doc)
public List getROptionOptionsRelatedByOption2Id(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getROptionOptionsRelatedByOption2IdJoinAttributeOptionRelatedByOption1Id(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getROptionOptionsRelatedByOption2IdJoinOptionRelationship(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByFromOptionId() throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByFromOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByFromOptionId(Connection con) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByFromOptionId(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getTransitionsRelatedByFromOptionIdJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getTransitionsRelatedByFromOptionIdJoinAttributeOptionRelatedByToOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByToOptionId() throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByToOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByToOptionId(Connection con) throws TorqueException(Code)(Java Doc)
public List getTransitionsRelatedByToOptionId(Criteria criteria, Connection con) throws TorqueException(Code)(Java Doc)
protected List getTransitionsRelatedByToOptionIdJoinAttribute(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected List getTransitionsRelatedByToOptionIdJoinAttributeOptionRelatedByFromOptionId(Criteria criteria) throws TorqueException(Code)(Java Doc)
protected void initActivitysRelatedByNewOptionId()(Code)(Java Doc)
protected void initActivitysRelatedByOldOptionId()(Code)(Java Doc)
protected void initAttributeValues()(Code)(Java Doc)
protected void initAttributes()(Code)(Java Doc)
protected void initConditions()(Code)(Java Doc)
protected void initRIssueTypeOptions()(Code)(Java Doc)
protected void initRModuleOptions()(Code)(Java Doc)
protected void initROptionOptionsRelatedByOption1Id()(Code)(Java Doc)
protected void initROptionOptionsRelatedByOption2Id()(Code)(Java Doc)
protected void initTransitionsRelatedByFromOptionId()(Code)(Java Doc)
protected void initTransitionsRelatedByToOptionId()(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 setDeleted(boolean v)(Code)(Java Doc)
public void setName(String v)(Code)(Java Doc)
public void setOptionId(Integer v) throws TorqueException(Code)(Java Doc)
public void setPrimaryKey(ObjectKey key) throws TorqueException(Code)(Java Doc)
public void setPrimaryKey(String key) throws TorqueException(Code)(Java Doc)
public void setQueryKey(String key) throws TorqueException(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.