Salome HOME
2b6162ddd94adaa4faeb75744e4d0904c957f3a5
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / StampRelation.java
1 package org.splat.dal.bo.som;
2 /**
3  * 
4  * @author    Daniel Brunier-Coulin
5  * @copyright OPEN CASCADE 2012
6  */
7
8 import org.splat.dal.bo.kernel.Persistent;
9 import org.splat.dal.bo.kernel.Relation;
10
11
12 public class StampRelation extends Relation {
13
14     private  Timestamp refer;
15
16 //  ==============================================================================================================================
17 //  Constructors
18 //  ==============================================================================================================================
19
20 //  Database fetch constructor
21     protected StampRelation () {
22     }
23 //  Internal constructor
24     protected StampRelation (final Document from, final Timestamp to) {
25 //  -----------------------------------------------------
26       super(from);
27       this.refer = to;
28     }
29
30 //  ==============================================================================================================================
31 //  Public member functions
32 //  ==============================================================================================================================
33
34     @Override
35         public Timestamp getTo () {
36 //  -------------------------
37       return refer;
38     }
39
40     public ValidationStep getStampType () {
41 //  -------------------------------------
42       return refer.getType();
43     }
44
45     @Override
46         public void setTo (final Persistent to) {
47 //  ------------------------------------
48         refer = (Timestamp)to;
49     }
50 }