org.tigris.scarab.om
Class ParentChildAttributeOption

java.lang.Object
  extended byorg.tigris.scarab.om.ParentChildAttributeOption
All Implemented Interfaces:
org.apache.fulcrum.intake.Retrievable, java.io.Serializable

public class ParentChildAttributeOption
extends java.lang.Object
implements org.apache.fulcrum.intake.Retrievable, java.io.Serializable

This class is used by Intake on the GlobalAttributeEdit page to create combination of a ROptionOption and a AttributeOption

Version:
$Id: ParentChildAttributeOption.java 10193 2006-06-30 12:49:42Z dabbous $
Author:
Jon S. Stevens
See Also:
Serialized Form

Constructor Summary
protected ParentChildAttributeOption()
          Must call getInstance()
 
Method Summary
static void doRemoveFromCache(java.lang.Integer parent, java.lang.Integer child)
          Removes the object from the cache
 java.util.List getAncestors()
           
 java.lang.Integer getAttributeId()
           
(package private) static java.lang.String getCacheKey(java.lang.Integer option1, java.lang.Integer option2)
          Creates a key for use in caching AttributeOptions
 AttributeOption getChildOption()
          The 'child' AttributeOption
 boolean getDeleted()
           
protected static org.apache.fulcrum.cache.GlobalCacheService getGlobalCacheService()
          Gets the GlobalCacheService implementation.
static ParentChildAttributeOption getInstance()
          Gets an instance of a new ParentChildAttributeOption
static ParentChildAttributeOption getInstance(java.lang.Integer parent, java.lang.Integer child)
          Gets an instance of a new ROptionOption
 java.lang.String getName()
           
 java.lang.Integer getOptionId()
          The 'child' optionid
 java.lang.Integer getParentId()
           
 AttributeOption getParentOption()
           
 int getPreferredOrder()
           
 java.lang.String getQueryKey()
          Implementation of the Retrievable interface because this object is used with Intake
 int getWeight()
           
 void save()
           
 void setAttributeId(java.lang.Integer attributeId)
           
 void setDeleted(boolean deleted)
           
 void setName(java.lang.String name)
           
 void setOptionId(java.lang.Integer key)
          The 'child' optionid
 void setParentId(java.lang.Integer id)
           
 void setPreferredOrder(int preferredOrder)
           
 void setQueryKey(java.lang.String key)
          Implementation of the Retrievable interface because this object is used with Intake
 void setWeight(int weight)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParentChildAttributeOption

protected ParentChildAttributeOption()
Must call getInstance()

Method Detail

getCacheKey

static java.lang.String getCacheKey(java.lang.Integer option1,
                                    java.lang.Integer option2)
Creates a key for use in caching AttributeOptions


getInstance

public static ParentChildAttributeOption getInstance()
Gets an instance of a new ParentChildAttributeOption


getInstance

public static ParentChildAttributeOption getInstance(java.lang.Integer parent,
                                                     java.lang.Integer child)
Gets an instance of a new ROptionOption


getQueryKey

public java.lang.String getQueryKey()
Implementation of the Retrievable interface because this object is used with Intake

Specified by:
getQueryKey in interface org.apache.fulcrum.intake.Retrievable

setQueryKey

public void setQueryKey(java.lang.String key)
                 throws org.apache.torque.TorqueException
Implementation of the Retrievable interface because this object is used with Intake

Specified by:
setQueryKey in interface org.apache.fulcrum.intake.Retrievable
Throws:
org.apache.torque.TorqueException

getAttributeId

public java.lang.Integer getAttributeId()

setAttributeId

public void setAttributeId(java.lang.Integer attributeId)

getOptionId

public java.lang.Integer getOptionId()
The 'child' optionid


setOptionId

public void setOptionId(java.lang.Integer key)
The 'child' optionid


getChildOption

public AttributeOption getChildOption()
                               throws org.apache.torque.TorqueException
The 'child' AttributeOption

Throws:
org.apache.torque.TorqueException

getParentId

public java.lang.Integer getParentId()

setParentId

public void setParentId(java.lang.Integer id)

getParentOption

public AttributeOption getParentOption()
                                throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getAncestors

public java.util.List getAncestors()
                            throws org.apache.torque.TorqueException,
                                   java.lang.Exception
Throws:
org.apache.torque.TorqueException
java.lang.Exception

getDeleted

public boolean getDeleted()

setDeleted

public void setDeleted(boolean deleted)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPreferredOrder

public int getPreferredOrder()

setPreferredOrder

public void setPreferredOrder(int preferredOrder)

getWeight

public int getWeight()

setWeight

public void setWeight(int weight)

doRemoveFromCache

public static void doRemoveFromCache(java.lang.Integer parent,
                                     java.lang.Integer child)
Removes the object from the cache


toString

public java.lang.String toString()

save

public void save()
          throws org.apache.torque.TorqueException,
                 ScarabException
Throws:
org.apache.torque.TorqueException
ScarabException

getGlobalCacheService

protected static final org.apache.fulcrum.cache.GlobalCacheService getGlobalCacheService()
Gets the GlobalCacheService implementation.

Returns:
the GlobalCacheService implementation.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.