|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NestedSetsTreeNode
A tree node.
It represents a hierarchy of records in a database table without parent
references in children or vice versa. The hierarchy is managed via
lft
and rgt
depth-first order numbers directly
in the database record. To be able to store more than one tree in a table,
every node additionally has a reference to the top-level root node (not to its parent!).
NestedSetsTreeDao
.
Do not use these interface methods outside (except clone()), they are for the DAO only.
See http://www.klempert.de/nested_sets/ or Wikipedia "nested sets tree".
Cloneable
interface is required only for copy and unique
constraint checking. You can return null from clone() if neither is needed.
NestedSetsTreeDao
,
test.fri.util.database.jpa.tree.nestedsets.pojos.AbstractNestedSetsTreePojo
,
test.fri.util.database.jpa.tree.nestedsets.pojos.NestedSetsTreePojo
Method Summary | |
---|---|
NestedSetsTreeNode |
clone()
For copy and unique constraint checking this is required. |
int |
getLeft()
DO NOT use this, is for the DAO exclusively. |
int |
getRight()
DO NOT use this, is for the DAO exclusively. |
NestedSetsTreeNode |
getTopLevel()
DO NOT use this, is for the DAO exclusively. |
void |
setLeft(int left)
DO NOT use this, is for the DAO exclusively. |
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. |
Methods inherited from interface fri.util.database.jpa.tree.TreeNode |
---|
getId |
Method Detail |
---|
int getLeft()
void setLeft(int left)
int getRight()
void setRight(int right)
NestedSetsTreeNode getTopLevel()
void setTopLevel(NestedSetsTreeNode topLevel)
NestedSetsTreeNode clone()
clone
in interface TreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |