|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.TreeTest.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 | |
TreeTest.TreeGroup()
Tree constructor comment. |
|
TreeTest.TreeGroup(int id,
java.lang.String data,
int parentid,
int groupid)
Tree constructor comment. |
Method Summary | |
void |
addChild(TreeTest.TreeGroup newChild)
|
void |
addMember(TreeTest.TreeGroup newMember)
|
TreeTest.TreeGroup |
getChild(int index)
|
java.util.Vector |
getChildren()
Gets the children. |
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. |
java.util.Vector |
getGroupMembers()
Gets the groupMembers. |
int |
getId()
Insert the method's description here. |
TreeTest.TreeGroup |
getMember(int index)
|
java.util.Vector |
getMembers()
Insert the method's description here. |
TreeTest.TreeGroup |
getMyGroup()
Gets the myGroup. |
TreeTest.TreeGroup |
getMyParent()
Gets the myParent. |
int |
getParentId()
Insert the method's description here. |
void |
setChildren(java.util.Vector children)
Sets the children. |
void |
setChilds(java.util.Vector newChilds)
Insert the method's description here. |
void |
setData(java.lang.String data)
Sets the data. |
void |
setGroupId(int groupId)
Sets the groupId. |
void |
setGroupMembers(java.util.Vector groupMembers)
Sets the groupMembers. |
void |
setId(int id)
Sets the id. |
void |
setMembers(java.util.Vector newMembers)
Insert the method's description here. |
void |
setMyGroup(TreeTest.TreeGroup myGroup)
Sets the myGroup. |
void |
setMyParent(TreeTest.TreeGroup myParent)
Sets the myParent. |
void |
setParentId(int parentId)
Sets the parentId. |
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 TreeTest.TreeGroup()
public TreeTest.TreeGroup(int id, java.lang.String data, int parentid, int groupid)
Method Detail |
public void addChild(TreeTest.TreeGroup newChild)
public void addMember(TreeTest.TreeGroup newMember)
public TreeTest.TreeGroup getChild(int index)
public java.util.Vector getChilds()
public java.lang.String getData()
public int getGroupId()
public int getId()
public TreeTest.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 data)
data
- The data to setpublic void setGroupId(int groupId)
groupId
- The groupId to setpublic void setId(int id)
id
- The id to setpublic void setMembers(java.util.Vector newMembers)
newMembers
- java.util.Vectorpublic void setParentId(int parentId)
parentId
- The parentId to setpublic int size()
public java.lang.String toString()
public java.util.Vector getChildren()
public void setChildren(java.util.Vector children)
children
- The children to setpublic java.util.Vector getGroupMembers()
public void setGroupMembers(java.util.Vector groupMembers)
groupMembers
- The groupMembers to setpublic TreeTest.TreeGroup getMyGroup()
public void setMyGroup(TreeTest.TreeGroup myGroup)
myGroup
- The myGroup to setpublic TreeTest.TreeGroup getMyParent()
public void setMyParent(TreeTest.TreeGroup myParent)
myParent
- The myParent to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |