Salome HOME
ef4cb1bf73c3562714ff84ad7aedc57d4c0f49b9
[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 (Document from, Timestamp to) {
25 //  -----------------------------------------------------
26       super(from);
27       this.refer = to;
28     }
29
30 //  ==============================================================================================================================
31 //  Public member functions
32 //  ==============================================================================================================================
33
34     public Timestamp getTo () {
35 //  -------------------------
36       return refer;
37     }
38
39     public ValidationStep getStampType () {
40 //  -------------------------------------
41       return refer.getType();
42     }
43
44     protected void setTo (Persistent to) {
45 //  ------------------------------------
46         refer = (Timestamp)to;
47     }
48 }