01: package org.enhydra.shark.api.client.timebase;
02:
03: import java.io.Serializable;
04:
05: /**
06: * The pure Java definition of data type defined by
07: * the OMG Time Service. It is used in Event audits
08: * for recording the time of the event.
09: */
10: public final class UtcT implements Serializable {
11: public long time = (long) 0;
12:
13: // 8 octets
14: public int inacclo = (int) 0;
15:
16: // 4 octets
17: public short inacchi = (short) 0;
18:
19: // 2 octets
20: public short tdf = (short) 0;
21:
22: public UtcT() {
23: } // ctor
24:
25: public UtcT(long _time, int _inacclo, short _inacchi, short _tdf) {
26: time = _time;
27: inacclo = _inacclo;
28: inacchi = _inacchi;
29: tdf = _tdf;
30: } // ctor
31:
32: public long getTime() {
33: return this .time;
34: }
35:
36: public int getInacclo() {
37: return this .inacclo;
38: }
39:
40: public short getInacchi() {
41: return this .inacchi;
42: }
43:
44: public short getTdf() {
45: return this .tdf;
46: }
47:
48: public java.sql.Timestamp getTimestamp() {
49: return new java.sql.Timestamp(time);
50: }
51:
52: }
|