4 * @author Daniel Brunier-Coulin
5 * @copyright OPEN CASCADE 2012
8 import org.splat.kernel.Persistent;
9 import org.splat.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 (Study from, 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();
45 public ValidationCycle getTo () {
46 // -------------------------------
50 protected void setTo (Persistent to) {
51 // ------------------------------------
52 refer = (ValidationCycle)to;