fri.util.database.jpa.tree.examples.closuretable.temporal.deletedflag
Class PersonDeletedFlagTreePath

java.lang.Object
  extended by fri.util.database.jpa.tree.examples.closuretable.PersonAbstractTreePath
      extended by fri.util.database.jpa.tree.examples.closuretable.temporal.deletedflag.PersonDeletedFlagTreePath
All Implemented Interfaces:
TemporalTreePath, TreePath, Temporal

@Entity
public class PersonDeletedFlagTreePath
extends PersonAbstractTreePath
implements TemporalTreePath

Example for temporal TreePath implementation.


Field Summary
 
Fields inherited from interface fri.util.database.jpa.tree.Temporal
VALID_FROM, VALID_TO
 
Constructor Summary
PersonDeletedFlagTreePath()
           
 
Method Summary
 ClosureTableTreeNode getAncestor()
          One of the ancestor tree nodes of the descendant, or the descendant itself.
 ClosureTableTreeNode getDescendant()
          The (descendant) tree node (of the ancestor).
 java.util.Date getValidFrom()
           
 java.util.Date getValidTo()
           
 boolean isDeleted()
           
 void setAncestor(ClosureTableTreeNode ancestor)
           
 void setDeleted(boolean deleted)
           
 void setDescendant(ClosureTableTreeNode descendant)
           
 void setValidFrom(java.util.Date validFrom)
          Sets the temporal valid-from date of this node.
 void setValidTo(java.util.Date validTo)
          Sets the temporal valid-to date of this node.
 
Methods inherited from class fri.util.database.jpa.tree.examples.closuretable.PersonAbstractTreePath
getDepth, getOrderIndex, setDepth, setOrderIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fri.util.database.jpa.tree.closuretable.TreePath
getDepth, getOrderIndex, setDepth, setOrderIndex
 

Constructor Detail

PersonDeletedFlagTreePath

public PersonDeletedFlagTreePath()
Method Detail

getAncestor

public ClosureTableTreeNode getAncestor()
Description copied from interface: TreePath
One of the ancestor tree nodes of the descendant, or the descendant itself. The private Java property name for this MUST BE "ancestor" in any implementation, as that name is used in DAO queries.

Specified by:
getAncestor in interface TreePath

setAncestor

public void setAncestor(ClosureTableTreeNode ancestor)
Specified by:
setAncestor in interface TreePath

getDescendant

public ClosureTableTreeNode getDescendant()
Description copied from interface: TreePath
The (descendant) tree node (of the ancestor). The private Java property name for this MUST BE "descendant" in any implementation, as that name is used in DAO queries.

Specified by:
getDescendant in interface TreePath

setDescendant

public void setDescendant(ClosureTableTreeNode descendant)
Specified by:
setDescendant in interface TreePath

getValidTo

public java.util.Date getValidTo()
Specified by:
getValidTo in interface Temporal
Returns:
the temporal valid-to date of this node.

setValidTo

public void setValidTo(java.util.Date validTo)
Description copied from interface: Temporal
Sets the temporal valid-to date of this node.

Specified by:
setValidTo in interface Temporal

getValidFrom

public java.util.Date getValidFrom()
Specified by:
getValidFrom in interface Temporal
Returns:
the temporal valid-from date of this node.

setValidFrom

public void setValidFrom(java.util.Date validFrom)
Description copied from interface: Temporal
Sets the temporal valid-from date of this node.

Specified by:
setValidFrom in interface Temporal

isDeleted

public boolean isDeleted()

setDeleted

public void setDeleted(boolean deleted)