|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfri.util.database.jpa.tree.examples.nestedsets.temporal.PersonTnst
@Entity public class PersonTnst
Example temporal entity, Tnst = Temporal Nested Sets Tree, redirecting validTo to endValid, and validFrom to nothing, as validTo is enough to support historization.
Field Summary |
---|
Fields inherited from interface fri.util.database.jpa.tree.Temporal |
---|
VALID_FROM, VALID_TO |
Constructor Summary | |
---|---|
PersonTnst()
|
|
PersonTnst(java.lang.String name)
|
Method Summary | |
---|---|
PersonTnst |
clone()
For copy and unique constraint checking this is required. |
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getEndValid()
|
java.lang.String |
getId()
|
int |
getLeft()
DO NOT use this, is for the DAO exclusively. |
java.lang.String |
getName()
|
int |
getRight()
DO NOT use this, is for the DAO exclusively. |
NestedSetsTreeNode |
getTopLevel()
DO NOT use this, is for the DAO exclusively. |
java.util.Date |
getValidFrom()
|
java.util.Date |
getValidTo()
|
int |
hashCode()
|
void |
setEndValid(java.util.Date endValid)
|
void |
setLeft(int left)
DO NOT use this, is for the DAO exclusively. |
void |
setName(java.lang.String name)
|
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. |
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()
Overridden to avoid super.toString() calling hashCode(), as this might throw exception when no id exists yet. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersonTnst()
public PersonTnst(java.lang.String name)
Method Detail |
---|
public java.lang.String getId()
getId
in interface TreeNode
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Date getEndValid()
public void setEndValid(java.util.Date endValid)
public NestedSetsTreeNode getTopLevel()
NestedSetsTreeNode
getTopLevel
in interface NestedSetsTreeNode
public void setTopLevel(NestedSetsTreeNode topLevel)
NestedSetsTreeNode
setTopLevel
in interface NestedSetsTreeNode
public int getLeft()
NestedSetsTreeNode
getLeft
in interface NestedSetsTreeNode
public void setLeft(int left)
NestedSetsTreeNode
setLeft
in interface NestedSetsTreeNode
public int getRight()
NestedSetsTreeNode
getRight
in interface NestedSetsTreeNode
public void setRight(int right)
NestedSetsTreeNode
setRight
in interface NestedSetsTreeNode
public PersonTnst clone()
NestedSetsTreeNode
clone
in interface NestedSetsTreeNode
clone
in interface TreeNode
clone
in class java.lang.Object
public java.util.Date getValidTo()
getValidTo
in interface Temporal
public void setValidTo(java.util.Date validTo)
Temporal
setValidTo
in interface Temporal
public java.util.Date getValidFrom()
getValidFrom
in interface Temporal
public void setValidFrom(java.util.Date validFrom)
Temporal
setValidFrom
in interface Temporal
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
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 |