com.extentech.ExtenBean
Class RelationalObjectImpl

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by com.extentech.ExtenBean.RelationalObjectImpl
All Implemented Interfaces:
RelationalObject, Serializable, Cloneable, Map

public class RelationalObjectImpl
extends Hashtable
implements RelationalObject

Concrete Relational Object implementation

Version:
1.1
Author:
John McMahon -- Copyright ©2011Extentech Inc.
See Also:
ExtenBeanFactory, DataObject, colinfo, Serialized Form

Constructor Summary
RelationalObjectImpl()
           
 
Method Summary
 void addChildObject(RelationalObject c)
           
 Vector getAllChildrenInHeirarchy()
          returns a vector containing all of the children of this object, as well as all of the children of the children objects.
 List getChildObjects()
          return a Listof all Child Objects
 int getLevel()
           
 RelationalObject getParentObject()
           
 boolean hasChildren()
           
 void setLevel(int i)
          the level indicates the depth of this object in a Relational Heirarchy
 void setParent(RelationalObject par)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationalObjectImpl

public RelationalObjectImpl()
Method Detail

getAllChildrenInHeirarchy

public Vector getAllChildrenInHeirarchy()
returns a vector containing all of the children of this object, as well as all of the children of the children objects.

Specified by:
getAllChildrenInHeirarchy in interface RelationalObject

setLevel

public void setLevel(int i)
the level indicates the depth of this object in a Relational Heirarchy

Specified by:
setLevel in interface RelationalObject

getLevel

public int getLevel()
Specified by:
getLevel in interface RelationalObject

addChildObject

public void addChildObject(RelationalObject c)
Specified by:
addChildObject in interface RelationalObject

getChildObjects

public List getChildObjects()
Description copied from interface: RelationalObject
return a Listof all Child Objects

Specified by:
getChildObjects in interface RelationalObject
Returns:

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface RelationalObject

getParentObject

public RelationalObject getParentObject()
Specified by:
getParentObject in interface RelationalObject

setParent

public void setParent(RelationalObject par)
Specified by:
setParent in interface RelationalObject


Copyright © 2011 Extentech Inc. All Rights Reserved.