org.tigris.scarab.om
Class ROptionOption

java.lang.Object
  extended byorg.apache.torque.om.BaseObject
      extended byorg.tigris.scarab.om.BaseROptionOption
          extended byorg.tigris.scarab.om.ROptionOption
All Implemented Interfaces:
org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable

public class ROptionOption
extends BaseROptionOption
implements org.apache.torque.om.Persistent

This class represents the SCARAB_R_OPTION_OPTION table.

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

Field Summary
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
protected ROptionOption()
          Must call getInstance()
 
Method Summary
static void doRemove(java.lang.Integer parent, java.lang.Integer child)
          This will also remove the ROptionOption from the internal cache as well as from the database.
static void doRemove(ROptionOption roo)
          This will also remove the ROptionOption from the internal cache as well as from the database.
(package private) static java.lang.String getCacheKey(java.lang.Integer option1, java.lang.Integer option2)
          Creates a key for use in caching AttributeOptions
protected static org.apache.fulcrum.cache.GlobalCacheService getGlobalCacheService()
          Gets the GlobalCacheService implementation.
static ROptionOption getInstance()
          Gets an instance of a new ROptionOption
static ROptionOption getInstance(java.lang.Integer parent, java.lang.Integer child)
          Gets an instance of a new ROptionOption
 int getLevel()
          Get the level in the option parent-child tree.
 AttributeOption getOption1Option()
          Gets the AttributeOption assigned to the Option1Id
 AttributeOption getOption2Option()
          Gets the AttributeOption assigned to the Option2Id
 void setLevel(int v)
          Get the level in the option parent-child tree.
 java.lang.String toString()
          A String representation of this object.
 
Methods inherited from class org.tigris.scarab.om.BaseROptionOption
copy, copyInto, getAttributeOptionRelatedByOption1Id, getAttributeOptionRelatedByOption1Id, getAttributeOptionRelatedByOption2Id, getAttributeOptionRelatedByOption2Id, getByName, getByPeerName, getByPosition, getFieldNames, getOption1Id, getOption2Id, getOptionRelationship, getOptionRelationship, getPeer, getPreferredOrder, getPrimaryKey, getQueryKey, getRelationshipId, getWeight, isCacheOnSave, save, save, save, setAttributeOptionRelatedByOption1Id, setAttributeOptionRelatedByOption1IdKey, setAttributeOptionRelatedByOption2Id, setAttributeOptionRelatedByOption2IdKey, setOption1Id, setOption2Id, setOptionRelationship, setOptionRelationshipKey, setPreferredOrder, setPrimaryKey, setPrimaryKey, setPrimaryKey, setQueryKey, setRelationshipId, setWeight
 
Methods inherited from class org.apache.torque.om.BaseObject
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.torque.om.Persistent
getPrimaryKey, isModified, isNew, save, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Constructor Detail

ROptionOption

protected ROptionOption()
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 ROptionOption getInstance()
Gets an instance of a new ROptionOption


getInstance

public static ROptionOption getInstance(java.lang.Integer parent,
                                        java.lang.Integer child)
                                 throws org.apache.torque.TorqueException,
                                        ScarabException
Gets an instance of a new ROptionOption

Throws:
org.apache.torque.TorqueException
ScarabException

doRemove

public static void doRemove(ROptionOption roo)
                     throws org.apache.torque.TorqueException
This will also remove the ROptionOption from the internal cache as well as from the database.

Throws:
org.apache.torque.TorqueException

doRemove

public static void doRemove(java.lang.Integer parent,
                            java.lang.Integer child)
                     throws org.apache.torque.TorqueException
This will also remove the ROptionOption from the internal cache as well as from the database.

Throws:
org.apache.torque.TorqueException

getOption1Option

public AttributeOption getOption1Option()
                                 throws org.apache.torque.TorqueException
Gets the AttributeOption assigned to the Option1Id

Throws:
org.apache.torque.TorqueException

getOption2Option

public AttributeOption getOption2Option()
                                 throws org.apache.torque.TorqueException
Gets the AttributeOption assigned to the Option2Id

Throws:
org.apache.torque.TorqueException

getLevel

public int getLevel()
Get the level in the option parent-child tree. Note: Not currently used.

Returns:
value of level.

setLevel

public void setLevel(int v)
Get the level in the option parent-child tree. Note: Not currently used.

Parameters:
v - Value to assign to level.

toString

public java.lang.String toString()
A String representation of this object.

Overrides:
toString in class BaseROptionOption

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.