|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.om.ParentChildAttributeOption
This class is used by Intake on the GlobalAttributeEdit page to create combination of a ROptionOption and a AttributeOption
| 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 |
protected ParentChildAttributeOption()
| Method Detail |
static java.lang.String getCacheKey(java.lang.Integer option1,
java.lang.Integer option2)
public static ParentChildAttributeOption getInstance()
public static ParentChildAttributeOption getInstance(java.lang.Integer parent,
java.lang.Integer child)
public java.lang.String getQueryKey()
getQueryKey in interface org.apache.fulcrum.intake.Retrievable
public void setQueryKey(java.lang.String key)
throws org.apache.torque.TorqueException
setQueryKey in interface org.apache.fulcrum.intake.Retrievableorg.apache.torque.TorqueExceptionpublic java.lang.Integer getAttributeId()
public void setAttributeId(java.lang.Integer attributeId)
public java.lang.Integer getOptionId()
public void setOptionId(java.lang.Integer key)
public AttributeOption getChildOption()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.Integer getParentId()
public void setParentId(java.lang.Integer id)
public AttributeOption getParentOption()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAncestors()
throws org.apache.torque.TorqueException,
java.lang.Exception
org.apache.torque.TorqueException
java.lang.Exceptionpublic boolean getDeleted()
public void setDeleted(boolean deleted)
public java.lang.String getName()
public void setName(java.lang.String name)
public int getPreferredOrder()
public void setPreferredOrder(int preferredOrder)
public int getWeight()
public void setWeight(int weight)
public static void doRemoveFromCache(java.lang.Integer parent,
java.lang.Integer child)
public java.lang.String toString()
public void save()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabExceptionprotected static final org.apache.fulcrum.cache.GlobalCacheService getGlobalCacheService()
GlobalCacheService implementation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||