fri.util.database.jpa.tree
Interface TreeNode

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
ClosureTableTreeNode, NestedSetsTreeNode, TemporalNestedSetsTreeNode
All Known Implementing Classes:
ClosureTableTreePojo, NestedSetsTreePojo, NonUniqueNestedSetsTreePojo, PersonCtt, PersonNst, PersonTnst, TemporalNestedSetsTreePojo

public interface TreeNode
extends java.lang.Cloneable

Responsibilities of entities that are managed by a TreeDao. Any applier of JpaTree will have to implement this interface in his JPA domain objects.

Author:
Fritz Ritzberger, 19.10.2012

Method Summary
 TreeNode clone()
          For copy and unique constraint-checks cloning is required.
 java.io.Serializable getId()
           
 

Method Detail

getId

java.io.Serializable getId()
Returns:
the primary key of this tree node.

clone

TreeNode clone()
For copy and unique constraint-checks cloning is required. Mind that a clone MUST NOT have a primary key (id of clone must be null)!