KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > LockedByTimestamp


1 package org.apache.ojb.broker;
2
3 import java.io.Serializable JavaDoc;
4 import java.sql.Timestamp JavaDoc;
5
6 /**
7  *
8  */

9 public class LockedByTimestamp implements Serializable JavaDoc
10 {
11     private int id;
12     private String JavaDoc value;
13
14     private Timestamp JavaDoc timestamp;
15
16     public LockedByTimestamp()
17     {
18
19     }
20
21     public LockedByTimestamp(int theId, String JavaDoc theValue, Timestamp JavaDoc theTimestamp)
22     {
23         id = theId;
24         value = theValue;
25         timestamp = theTimestamp;
26     }
27
28     /**
29      * Gets the id.
30      * @return Returns a int
31      */

32     public int getId()
33     {
34         return id;
35     }
36
37     /**
38      * Sets the id.
39      * @param id The id to set
40      */

41     public void setId(int id)
42     {
43         this.id = id;
44     }
45
46     /**
47      * Gets the value.
48      * @return Returns a String
49      */

50     public String JavaDoc getValue()
51     {
52         return value;
53     }
54
55     /**
56      * Sets the value.
57      * @param value The value to set
58      */

59     public void setValue(String JavaDoc value)
60     {
61         this.value = value;
62     }
63
64
65     /**
66      * Gets the timestamp.
67      * @return Returns a Timestamp
68      */

69     public Timestamp JavaDoc getTimestamp()
70     {
71         return timestamp;
72     }
73
74     /**
75      * Sets the timestamp.
76      * @param timestamp The timestamp to set
77      */

78     public void setTimestamp(Timestamp JavaDoc timestamp)
79     {
80         this.timestamp = timestamp;
81     }
82
83 }
84
Popular Tags