1 package org.splat.dal.bo.som;
4 * @author Daniel Brunier-Coulin
5 * @copyright OPEN CASCADE 2012-2015
8 import org.splat.dal.bo.kernel.Persistent;
9 import org.splat.dal.bo.kernel.Relation;
12 public class UsesRelation extends Relation {
14 private Document refer;
16 // ==============================================================================================================================
18 // ==============================================================================================================================
20 // Database fetch constructor
21 protected UsesRelation () {
23 // Initialization constructors
24 public UsesRelation (final Document from, final Document to) {
25 // ---------------------------------------------------
28 this.reverse = new UsedByRelation(this, to, from);
30 // Internal constructor
31 protected UsesRelation (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 UsedByRelation.class;
49 public Document getTo () {
50 // -------------------------
54 public boolean isBidirectional () {
55 // ---------------------------------
59 public void setTo (final Persistent to) {
60 // ------------------------------------