com.jgraph.example.adapter
Class JGraphSQLEntity

java.lang.Object
  extended by com.jgraph.example.adapter.JGraphBusinessObject
      extended by com.jgraph.example.adapter.JGraphSQLEntity
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
JGraphSQLRelation

public class JGraphSQLEntity
extends JGraphBusinessObject

An object that represents an entity in a tree.

See Also:
Serialized Form

Constructor Summary
JGraphSQLEntity()
           
JGraphSQLEntity(java.lang.Object userObject)
           
JGraphSQLEntity(java.lang.Object id, JGraphSQLEntity parent)
           
JGraphSQLEntity(java.lang.Object userObject, java.lang.Object id, JGraphSQLEntity parent)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object other)
           
 java.lang.Object getID()
           
 JGraphSQLEntity getParent()
           
 int hashCode()
           
 void setID(java.lang.Object id)
           
 void setParent(JGraphSQLEntity parent)
           
 
Methods inherited from class com.jgraph.example.adapter.JGraphBusinessObject
getProperties, getProperty, getValue, getValueKey, putProperty, setProperties, setValue, setValueKey, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGraphSQLEntity

public JGraphSQLEntity()

JGraphSQLEntity

public JGraphSQLEntity(java.lang.Object userObject)

JGraphSQLEntity

public JGraphSQLEntity(java.lang.Object id,
                       JGraphSQLEntity parent)

JGraphSQLEntity

public JGraphSQLEntity(java.lang.Object userObject,
                       java.lang.Object id,
                       JGraphSQLEntity parent)
Method Detail

getID

public java.lang.Object getID()
Returns:
Returns the id.

setID

public void setID(java.lang.Object id)
Parameters:
id - The id to set.

getParent

public JGraphSQLEntity getParent()
Returns:
Returns the parent.

setParent

public void setParent(JGraphSQLEntity parent)
Parameters:
parent - The parent to set.

clone

public java.lang.Object clone()
Overrides:
clone in class JGraphBusinessObject

hashCode

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

equals

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