pt.ist.fenixframework.dml.runtime
Class DirectRelation<C1 extends DomainObject,C2 extends DomainObject>
java.lang.Object
pt.ist.fenixframework.dml.runtime.DirectRelation<C1,C2>
- All Implemented Interfaces:
- Relation<C1,C2>
public class DirectRelation<C1 extends DomainObject,C2 extends DomainObject>
- extends Object
- implements Relation<C1,C2>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectRelation
public DirectRelation(Role<C1,C2> firstRole,
String name)
DirectRelation
public DirectRelation(Role<C1,C2> firstRole,
String name,
RelationListener<C1,C2>... listeners)
add
public void add(C1 o1,
C2 o2)
- Specified by:
add
in interface Relation<C1 extends DomainObject,C2 extends DomainObject>
remove
public void remove(C1 o1,
C2 o2)
- Specified by:
remove
in interface Relation<C1 extends DomainObject,C2 extends DomainObject>
getInverseRelation
public Relation<C2,C1> getInverseRelation()
- Specified by:
getInverseRelation
in interface Relation<C1 extends DomainObject,C2 extends DomainObject>
getListeners
protected LinkedList<RelationListener<C1,C2>> getListeners()
addListener
public void addListener(RelationListener<C1,C2> listener)
removeListener
public void removeListener(RelationListener<C1,C2> listener)
getName
public String getName()
- Specified by:
getName
in interface Relation<C1 extends DomainObject,C2 extends DomainObject>
Copyright © 2013. All Rights Reserved.