|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfri.util.database.jpa.commons.AbstractEntity
fri.util.database.jpa.tree.nestedsets.pojos.AbstractNestedSetsTreePojo
fri.util.database.jpa.tree.nestedsets.pojos.NestedSetsTreePojo
@Entity public class NestedSetsTreePojo
Example POJO for the unit test, implementing NestedSetsTree
via JPA.
topLevel == this
applies.
Constructor Summary | |
---|---|
NestedSetsTreePojo()
No-argument constructor needed by JPA. |
|
NestedSetsTreePojo(java.lang.String name)
Convenience constructor for programming. |
Method Summary | |
---|---|
NestedSetsTreeNode |
clone()
For copy and unique constraint checking this is required. |
java.lang.String |
getAddress()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
NestedSetsTreeNode |
getTopLevel()
DO NOT use this, is for the DAO exclusively. |
void |
setAddress(java.lang.String address)
|
void |
setName(java.lang.String name)
|
void |
setTopLevel(NestedSetsTreeNode topLevel)
Do not call. |
java.lang.String |
toString()
|
Methods inherited from class fri.util.database.jpa.tree.nestedsets.pojos.AbstractNestedSetsTreePojo |
---|
getLeft, getRight, setLeft, setRight |
Methods inherited from class fri.util.database.jpa.commons.AbstractEntity |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fri.util.database.jpa.tree.nestedsets.NestedSetsTreeNode |
---|
getLeft, getRight, setLeft, setRight |
Constructor Detail |
---|
public NestedSetsTreePojo()
public NestedSetsTreePojo(java.lang.String name)
Method Detail |
---|
public java.lang.String getId()
getId
in interface TreeNode
getId
in class AbstractEntity
public NestedSetsTreeNode getTopLevel()
NestedSetsTreeNode
getTopLevel
in interface NestedSetsTreeNode
public void setTopLevel(NestedSetsTreeNode topLevel)
setTopLevel
in interface NestedSetsTreeNode
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
public NestedSetsTreeNode clone()
NestedSetsTreeNode
clone
in interface NestedSetsTreeNode
clone
in interface TreeNode
clone
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 |