2
* $Id: JGraphSQLRelation.java,v 1.1.1.1 2005/08/06 05:26:45 gaudenz Exp $
4
* Copyright (c) 2001-2005, Gaudenz Alder
6
* See LICENSE file in distribution for licensing details of this source file
8
package com.jgraph.example.adapter;
11
* A business object that represents a relation between two entities.
13
public class JGraphSQLRelation extends JGraphSQLEntity {
15
protected JGraphSQLEntity source, target;
17
public JGraphSQLRelation() {
21
public JGraphSQLRelation(Object userObject) {
22
this(userObject, null, null, null, null);
25
public JGraphSQLRelation(Object id, JGraphSQLEntity parent,
26
JGraphSQLEntity source, JGraphSQLEntity target) {
27
this(null, id, parent, source, target);
30
public JGraphSQLRelation(Object userObject, Object id,
31
JGraphSQLEntity parent, JGraphSQLEntity source,
32
JGraphSQLEntity target) {
33
super(userObject, id, parent);
39
* @return Returns the source.
41
public JGraphSQLEntity getSource() {
49
public void setSource(JGraphSQLEntity source) {
54
* @return Returns the target.
56
public JGraphSQLEntity getTarget() {
64
public void setTarget(JGraphSQLEntity target) {
b'\\ No newline at end of file'