fri.util.database.jpa.tree.closuretable.pojos
Class AbstractTreePathImpl.CompositeId

java.lang.Object
  extended by fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl.CompositeId
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
AbstractTreePathImpl

public static class AbstractTreePathImpl.CompositeId
extends java.lang.Object
implements java.io.Serializable

Primary key mapping class, holding the node id of both ancestor and descendant, which in combination will be unique and thus suitable as primary key for any TreePathImpl.

See Also:
Serialized Form

Constructor Summary
AbstractTreePathImpl.CompositeId()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAncestor()
           
 java.lang.String getDescendant()
           
 int hashCode()
           
 void setAncestor(java.lang.String ancestorId)
           
 void setDescendant(java.lang.String descendantId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTreePathImpl.CompositeId

public AbstractTreePathImpl.CompositeId()
Method Detail

getAncestor

public java.lang.String getAncestor()

setAncestor

public void setAncestor(java.lang.String ancestorId)

getDescendant

public java.lang.String getDescendant()

setDescendant

public void setDescendant(java.lang.String descendantId)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object