pt.ist.fenixframework.dml.runtime
Class RoleOne<C1 extends DomainObject,C2 extends DomainObject>

Package class diagram package RoleOne
java.lang.Object
  extended by pt.ist.fenixframework.dml.runtime.RoleOne<C1,C2>
All Implemented Interfaces:
Role<C1,C2>

public abstract class RoleOne<C1 extends DomainObject,C2 extends DomainObject>
extends Object
implements Role<C1,C2>

This class handles one side of a one-to-something relation: the side that keeps the single reference corresponding to the multiplicity one.


Constructor Summary
RoleOne()
           
 
Method Summary
 void add(C1 o1, C2 o2, Relation<C1,C2> relation)
           
abstract  C2 getValue(C1 o1)
           
 void remove(C1 o1, C2 o2)
           
abstract  void setValue(C1 o1, C2 o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pt.ist.fenixframework.dml.runtime.Role
getInverseRole
 

Constructor Detail

RoleOne

public RoleOne()
Method Detail

add

public void add(C1 o1,
                C2 o2,
                Relation<C1,C2> relation)
Specified by:
add in interface Role<C1 extends DomainObject,C2 extends DomainObject>

remove

public void remove(C1 o1,
                   C2 o2)
Specified by:
remove in interface Role<C1 extends DomainObject,C2 extends DomainObject>

getValue

public abstract C2 getValue(C1 o1)

setValue

public abstract void setValue(C1 o1,
                              C2 o2)


Copyright © 2013. All Rights Reserved.