|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfri.util.database.jpa.tree.examples.nestedsets.PersonNst
@Entity public class PersonNst
Example entity, Nst = Nested Sets Tree.
Constructor Summary | |
---|---|
PersonNst()
|
|
PersonNst(java.lang.String name)
|
Method Summary | |
---|---|
PersonNst |
clone()
For copy and unique constraint checking this is required. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
|
int |
getLeft()
DO NOT use this, is for the DAO exclusively. |
java.lang.String |
getName()
|
int |
getRight()
DO NOT use this, is for the DAO exclusively. |
NestedSetsTreeNode |
getTopLevel()
DO NOT use this, is for the DAO exclusively. |
int |
hashCode()
|
void |
setLeft(int left)
DO NOT use this, is for the DAO exclusively. |
void |
setName(java.lang.String name)
|
void |
setRight(int right)
DO NOT use this, is for the DAO exclusively. |
void |
setTopLevel(NestedSetsTreeNode topLevel)
DO NOT use this, is for the DAO exclusively. |
java.lang.String |
toString()
Overridden to avoid super.toString() calling hashCode(), as this might throw exception when no id exists yet. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersonNst()
public PersonNst(java.lang.String name)
Method Detail |
---|
public java.lang.String getId()
getId
in interface TreeNode
public java.lang.String getName()
public void setName(java.lang.String name)
public NestedSetsTreeNode getTopLevel()
NestedSetsTreeNode
getTopLevel
in interface NestedSetsTreeNode
public void setTopLevel(NestedSetsTreeNode topLevel)
NestedSetsTreeNode
setTopLevel
in interface NestedSetsTreeNode
public int getLeft()
NestedSetsTreeNode
getLeft
in interface NestedSetsTreeNode
public void setLeft(int left)
NestedSetsTreeNode
setLeft
in interface NestedSetsTreeNode
public int getRight()
NestedSetsTreeNode
getRight
in interface NestedSetsTreeNode
public void setRight(int right)
NestedSetsTreeNode
setRight
in interface NestedSetsTreeNode
public PersonNst clone()
NestedSetsTreeNode
clone
in interface NestedSetsTreeNode
clone
in interface TreeNode
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |