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 ValidationCycleRelation extends Relation {
14 private ValidationCycle refer;
16 // ==============================================================================================================================
18 // ==============================================================================================================================
20 // Database fetch constructor
21 protected ValidationCycleRelation () {
23 // Internal constructor
24 protected ValidationCycleRelation (final Study from, final ValidationCycle to) {
25 // ------------------------------------------------------------------
30 // ==============================================================================================================================
31 // Public member functions
32 // ==============================================================================================================================
35 * Returns the document type to which the validation cycle referenced by this relation applies. If the referenced validation cycle
36 * is a default one, the associated document type is not defined.
38 * @return the document type involved by the referenced validation cycle, or null if this latter is a default one.
40 public DocumentType getDocumentType () {
41 // --------------------------------------
42 return refer.getDocumentType();
46 public ValidationCycle getTo () {
47 // -------------------------------
52 public void setTo (final Persistent to) {
53 // ------------------------------------
54 refer = (ValidationCycle)to;