KickJava   Java API By Example, From Geeks To Geeks.

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


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:51:45 AM
8  *
9  * TODO Contact
10  */

11 public class Contact extends BasePimImpl implements ContactI, java.io.Serializable JavaDoc {
12
13     private String JavaDoc contact_data = null;
14
15     private ContactTypeI contact_type = null;
16
17     private PersonI person = null;
18
19     private String JavaDoc note = null;
20
21     /**
22      * @param contact_data
23      * @param contact_type
24      * @param person
25      * @param note
26      */

27     public Contact(String JavaDoc contact_data, ContactTypeI contact_type, PersonI person, String JavaDoc note) {
28         super(null);
29         this.contact_data = contact_data;
30         this.contact_type = contact_type;
31         this.person = person;
32         this.note = note;
33     }
34
35     /**
36      * @param handle
37      * @param contact_data
38      * @param contact_type
39      * @param person
40      * @param note
41      */

42     public Contact(BigDecimal JavaDoc handle, String JavaDoc contact_data, ContactTypeI contact_type, PersonI person, String JavaDoc note) {
43         super(handle);
44         this.contact_data = contact_data;
45         this.contact_type = contact_type;
46         this.person = person;
47         this.note = note;
48     }
49
50     public void clean() {
51         super.clean();
52         this.contact_data = null;
53         this.contact_type = null;
54         this.person = null;
55         this.note = null;
56     }
57
58     /**
59      * Sets Contact_data .
60      *
61      * @param _contact_data
62      * new value.
63      */

64     public void setContact_data(String JavaDoc _contact_data) {
65         contact_data = _contact_data;
66     }
67
68     /**
69      * Return value of Contact_data .
70      *
71      * @return value of Contact_data .
72      */

73     public String JavaDoc getContact_data() {
74         return contact_data;
75     }
76
77     /**
78      * Sets Contact_type .
79      *
80      * @param _contact_type
81      * new value.
82      */

83     public void setContact_type(ContactTypeI _contact_type) {
84         contact_type = _contact_type;
85     }
86
87     /**
88      * Return value of Contact_type .
89      *
90      * @return value of Contact_type .
91      */

92     public ContactTypeI getContact_type() {
93         return contact_type;
94     }
95
96     /**
97      * Sets Note.
98      *
99      * @param _note
100      * new value.
101      */

102     public void setNote(String JavaDoc _note) {
103         note = _note;
104     }
105
106     /**
107      * Return value of Note.
108      *
109      * @return value of Note.
110      */

111     public String JavaDoc getNote() {
112         return note;
113     }
114
115     /**
116      * Sets Person.
117      *
118      * @param _person
119      * new value.
120      */

121     public void setPerson(PersonI _person) {
122         person = _person;
123     }
124
125     /**
126      * Return value of Person column.
127      *
128      * @return value of Person column.
129      */

130     public PersonI getPerson() {
131         return person;
132     }
133
134 }
Popular Tags