01: package org.apache.ojb.broker;
02:
03: import java.io.Serializable;
04: import java.sql.Timestamp;
05:
06: /**
07: *
08: */
09: public class LockedByTimestamp implements Serializable {
10: private int id;
11: private String value;
12:
13: private Timestamp timestamp;
14:
15: public LockedByTimestamp() {
16:
17: }
18:
19: public LockedByTimestamp(int theId, String theValue,
20: Timestamp theTimestamp) {
21: id = theId;
22: value = theValue;
23: timestamp = theTimestamp;
24: }
25:
26: /**
27: * Gets the id.
28: * @return Returns a int
29: */
30: public int getId() {
31: return id;
32: }
33:
34: /**
35: * Sets the id.
36: * @param id The id to set
37: */
38: public void setId(int id) {
39: this .id = id;
40: }
41:
42: /**
43: * Gets the value.
44: * @return Returns a String
45: */
46: public String getValue() {
47: return value;
48: }
49:
50: /**
51: * Sets the value.
52: * @param value The value to set
53: */
54: public void setValue(String value) {
55: this .value = value;
56: }
57:
58: /**
59: * Gets the timestamp.
60: * @return Returns a Timestamp
61: */
62: public Timestamp getTimestamp() {
63: return timestamp;
64: }
65:
66: /**
67: * Sets the timestamp.
68: * @param timestamp The timestamp to set
69: */
70: public void setTimestamp(Timestamp timestamp) {
71: this.timestamp = timestamp;
72: }
73:
74: }
|