1 package org.splat.dal.bo.som;
4 * @author Daniel Brunier-Coulin
5 * @copyright OPEN CASCADE 2012
8 import org.splat.dal.bo.kernel.Persistent;
9 import org.splat.dal.bo.kernel.Relation;
12 public class UsedByRelation extends Relation {
14 private Document refer;
16 // ==============================================================================================================================
18 // ==============================================================================================================================
20 // Database fetch constructor
21 protected UsedByRelation () {
23 // Initialization constructors
24 protected UsedByRelation (final Document from, final Document to) {
25 // -----------------------------------------------------
28 this.reverse = new UsesRelation(this, to, from);
30 // Internal constructor
31 protected UsedByRelation (final Relation back, final Document from, final Document to) {
32 // --------------------------------------------------------------------
38 // ==============================================================================================================================
39 // Public member functions
40 // ==============================================================================================================================
43 public Class<? extends Relation> getReverseClass () {
44 // ---------------------------------------------------
45 return UsesRelation.class;
48 public Document getTo () {
49 // -------------------------
53 public boolean isBidirectional () {
54 // ---------------------------------
58 public void setTo (final Persistent to) {
59 // ------------------------------------