|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--test.ojb.broker.TreeGroup
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
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 |
public TreeGroup()
public TreeGroup(int id, java.lang.String data, int parentid, int groupid)
Method Detail |
public void addChild(TreeGroup newChild)
public void addMember(TreeGroup newMember)
public TreeGroup getChild(int index)
public java.util.Vector getChilds()
public java.lang.String getData()
public int getGroupId()
public int getId()
public TreeGroup getMember(int index)
public java.util.Vector getMembers()
public int getParentId()
public void setChilds(java.util.Vector newChilds)
newChilds
- java.util.Vectorpublic void setData(java.lang.String newData)
newData
- java.lang.Stringpublic void setGroupId(int newGroupId)
public void setId(int newId)
newId
- intpublic void setMembers(java.util.Vector newMembers)
public void setParentId(int newParentId)
newParentId
- intpublic int size()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |