fri.util.database.jpa.tree.closuretable.pojos
Class TemporalTreePathImpl

java.lang.Object
  extended by fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
      extended by fri.util.database.jpa.tree.closuretable.pojos.TemporalTreePathImpl
All Implemented Interfaces:
TemporalTreePath, TreePath, Temporal

@Entity
public class TemporalTreePathImpl
extends AbstractTreePathImpl
implements TemporalTreePath

Temporal test object.

Author:
Fritz Ritzberger, 02.11.2012

Nested Class Summary
 
Nested classes/interfaces inherited from class fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
AbstractTreePathImpl.CompositeId
 
Field Summary
 
Fields inherited from interface fri.util.database.jpa.tree.Temporal
VALID_FROM, VALID_TO
 
Constructor Summary
TemporalTreePathImpl()
           
 
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()
           
 void setAncestor(ClosureTableTreeNode ancestor)
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
getDepth, getOrderIndex, setDepth, setOrderIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fri.util.database.jpa.tree.closuretable.TreePath
getDepth, getOrderIndex, setDepth, setOrderIndex
 

Constructor Detail

TemporalTreePathImpl

public TemporalTreePathImpl()
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

toString

public java.lang.String toString()
Overrides:
toString in class AbstractTreePathImpl