KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > timebase > UtcT


1 package org.enhydra.shark.api.client.timebase;
2
3 /**
4  * The pure Java definition of data type defined by
5  * the OMG Time Service. It is used in Event audits
6  * for recording the time of the event.
7  */

8 public final class UtcT
9 {
10    public long time = (long)0;
11
12    // 8 octets
13
public int inacclo = (int)0;
14
15    // 4 octets
16
public short inacchi = (short)0;
17
18    // 2 octets
19
public short tdf = (short)0;
20
21    public UtcT ()
22    {
23    } // ctor
24

25    public UtcT (long _time, int _inacclo, short _inacchi, short _tdf)
26    {
27       time = _time;
28       inacclo = _inacclo;
29       inacchi = _inacchi;
30       tdf = _tdf;
31    } // ctor
32

33    public long getTime() {
34       return this.time;
35    }
36
37    public int getInacclo() {
38       return this.inacclo;
39    }
40
41    public short getInacchi() {
42       return this.inacchi;
43    }
44
45    public short getTdf() {
46       return this.tdf;
47    }
48
49    public java.sql.Timestamp JavaDoc getTimestamp() {
50       return new java.sql.Timestamp JavaDoc(time);
51    }
52
53 }
54
Popular Tags