KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > business > base > Note


1 package org.enhydra.pim.business.base;
2
3 import java.math.BigDecimal JavaDoc;
4 import org.enhydra.pim.business.api.*;
5
6 /**
7  * @author P.Djojic Apr 20, 2005 3:49:50 AM
8  *
9  * TODO Note
10  */

11 public class Note extends BasePimImpl implements NoteI, java.io.Serializable JavaDoc {
12
13     private String JavaDoc note = null;
14
15     private java.sql.Date JavaDoc date = null;
16
17     private java.sql.Time JavaDoc time = null;
18
19     private OwnerI owner = null;
20
21     /**
22      * @param note
23      * @param date
24      * @param time
25      * @param parent
26      * @param user
27      */

28     public Note(String JavaDoc note, java.sql.Date JavaDoc date, java.sql.Time JavaDoc time, OwnerI owner) {
29         super(null);
30         this.note = note;
31         this.date = date;
32         this.time = time;
33         this.owner = owner;
34     }
35
36     /**
37      * @param handle
38      * @param note
39      * @param date
40      * @param time
41      * @param parent
42      * @param user
43      */

44     public Note(BigDecimal JavaDoc handle, String JavaDoc note, java.sql.Date JavaDoc date, java.sql.Time JavaDoc time, OwnerI owner) {
45         super(handle);
46         this.note = note;
47         this.date = date;
48         this.time = time;
49         this.owner = owner;
50     }
51
52     public void clean() {
53         super.clean();
54         this.note = null;
55         this.date = null;
56         this.time = null;
57         this.owner = null;
58     }
59
60     /**
61      * Sets Note.
62      *
63      * @param _note
64      * new value.
65      */

66     public void setNote(String JavaDoc _note) {
67         note = _note;
68     }
69
70     /**
71      * Return value of Note.
72      *
73      * @return value of Note.
74      */

75     public String JavaDoc getNote() {
76         return note;
77     }
78
79     /**
80      * Sets Date.
81      *
82      * @param _date
83      * new value.
84      */

85     public void setDate(java.sql.Date JavaDoc _date) {
86         date = _date;
87     }
88
89     /**
90      * Return value of Date.
91      *
92      * @return value of Date.
93      */

94     public java.sql.Date JavaDoc getDate() {
95         return date;
96     }
97
98     /**
99      * Sets Time.
100      *
101      * @param _time
102      * new.
103      */

104     public void setTime(java.sql.Time JavaDoc _time) {
105         time = _time;
106     }
107
108     /**
109      * Return value of Time.
110      *
111      * @return value of Time.
112      */

113     public java.sql.Time JavaDoc getTime() {
114         return time;
115     }
116
117     /**
118      * Sets Owner.
119      *
120      * @param _owner
121      * new value.
122      */

123     public void setOwner(OwnerI _owner) {
124         this.owner = _owner;
125     }
126
127     /**
128      * Return value of Owner.
129      *
130      * @return value of Owner.
131      */

132     public OwnerI getOwner() {
133         return this.owner;
134     }
135
136 }
Popular Tags