com.jgraph.example.adapter
Class JGraphSQLRelation

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

public class JGraphSQLRelation
extends JGraphSQLEntity

A business object that represents a relation between two entities.

See Also:
Serialized Form

Constructor Summary
JGraphSQLRelation()
           
JGraphSQLRelation(java.lang.Object userObject)
           
JGraphSQLRelation(java.lang.Object id, JGraphSQLEntity parent, JGraphSQLEntity source, JGraphSQLEntity target)
           
JGraphSQLRelation(java.lang.Object userObject, java.lang.Object id, JGraphSQLEntity parent, JGraphSQLEntity source, JGraphSQLEntity target)
           
 
Method Summary
 JGraphSQLEntity getSource()
           
 JGraphSQLEntity getTarget()
           
 void setSource(JGraphSQLEntity source)
           
 void setTarget(JGraphSQLEntity target)
           
 
Methods inherited from class com.jgraph.example.adapter.JGraphSQLEntity
clone, equals, getID, getParent, hashCode, setID, setParent
 
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

JGraphSQLRelation

public JGraphSQLRelation()

JGraphSQLRelation

public JGraphSQLRelation(java.lang.Object userObject)

JGraphSQLRelation

public JGraphSQLRelation(java.lang.Object id,
                         JGraphSQLEntity parent,
                         JGraphSQLEntity source,
                         JGraphSQLEntity target)

JGraphSQLRelation

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

getSource

public JGraphSQLEntity getSource()
Returns:
Returns the source.

setSource

public void setSource(JGraphSQLEntity source)
Parameters:
source - The source to set.

getTarget

public JGraphSQLEntity getTarget()
Returns:
Returns the target.

setTarget

public void setTarget(JGraphSQLEntity target)
Parameters:
target - The target to set.