| |
|
| 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 $ |
AttributeOption | protected AttributeOption()(Code) | | Must call getInstance()
|
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.
|
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.
|
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)
|
|
|
|