test.ojb.broker
Class TreeGroup

java.lang.Object
  |
  +--test.ojb.broker.TreeGroup
All Implemented Interfaces:
java.io.Serializable

public class TreeGroup
extends java.lang.Object
implements java.io.Serializable

Tree is recursive type: a Tree element contains some data and a Vector of child Tree elements. This sample demonstrates what is needed to map such a data structure on a DB table

See Also:
Serialized Form

Constructor Summary
TreeGroup()
          Tree constructor comment.
TreeGroup(int id, java.lang.String data, int parentid, int groupid)
          Tree constructor comment.
 
Method Summary
 void addChild(TreeGroup newChild)
           
 void addMember(TreeGroup newMember)
           
 TreeGroup getChild(int index)
           
 java.util.Vector getChilds()
          Insert the method's description here.
 java.lang.String getData()
          Insert the method's description here.
 int getGroupId()
          Insert the method's description here.
 int getId()
          Insert the method's description here.
 TreeGroup getMember(int index)
           
 java.util.Vector getMembers()
          Insert the method's description here.
 int getParentId()
          Insert the method's description here.
 void setChilds(java.util.Vector newChilds)
          Insert the method's description here.
 void setData(java.lang.String newData)
          Insert the method's description here.
 void setGroupId(int newGroupId)
          Insert the method's description here.
 void setId(int newId)
          Insert the method's description here.
 void setMembers(java.util.Vector newMembers)
          Insert the method's description here.
 void setParentId(int newParentId)
          Insert the method's description here.
 int size()
          Insert the method's description here.
 java.lang.String toString()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeGroup

public TreeGroup()
Tree constructor comment.


TreeGroup

public TreeGroup(int id,
                 java.lang.String data,
                 int parentid,
                 int groupid)
Tree constructor comment.

Method Detail

addChild

public void addChild(TreeGroup newChild)

addMember

public void addMember(TreeGroup newMember)

getChild

public TreeGroup getChild(int index)

getChilds

public java.util.Vector getChilds()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
java.util.Vector

getData

public java.lang.String getData()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
java.lang.String

getGroupId

public int getGroupId()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
int

getId

public int getId()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
int

getMember

public TreeGroup getMember(int index)

getMembers

public java.util.Vector getMembers()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
java.util.Vector

getParentId

public int getParentId()
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Returns:
int

setChilds

public void setChilds(java.util.Vector newChilds)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Parameters:
newChilds - java.util.Vector

setData

public void setData(java.lang.String newData)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Parameters:
newData - java.lang.String

setGroupId

public void setGroupId(int newGroupId)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)


setId

public void setId(int newId)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Parameters:
newId - int

setMembers

public void setMembers(java.util.Vector newMembers)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)


setParentId

public void setParentId(int newParentId)
Insert the method's description here. Creation date: (13.02.2001 18:33:02)

Parameters:
newParentId - int

size

public int size()
Insert the method's description here. Creation date: (14.02.2001 19:51:23)

Returns:
int

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (13.02.2001 18:33:41)

Overrides:
toString in class java.lang.Object
Returns:
java.lang.String


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04