01: package org.objectweb.salome_tmf.server;
02:
03: import java.sql.Connection;
04:
05: public class TransactionClient {
06: private String key;
07: private Connection connection;
08: private long time;
09:
10: public TransactionClient(String key, Connection connection) {
11: setKey(key);
12: setConnection(connection);
13: setTime(System.currentTimeMillis());
14: }
15:
16: public Connection getConnection() {
17: return connection;
18: }
19:
20: public void setConnection(Connection connection) {
21: this .connection = connection;
22: }
23:
24: public long getTime() {
25: return time;
26: }
27:
28: public void setTime(long time) {
29: this .time = time;
30: }
31:
32: public String getKey() {
33: return key;
34: }
35:
36: public void setKey(String key) {
37: this.key = key;
38: }
39:
40: }
|