Source Code Cross Referenced for CastorContact.java in  » Web-Mail » Jwma » dtw » webmail » plugin » std » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » Jwma » dtw.webmail.plugin.std 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /***
002:         * jwma Java WebMail
003:         * Copyright (c) 2000-2003 jwma team
004:         *
005:         * jwma is free software; you can distribute and use this source
006:         * under the terms of the BSD-style license received along with
007:         * the distribution.
008:         ***/package dtw.webmail.plugin.std;
009:
010:        import dtw.webmail.model.JwmaContactImpl;
011:        import dtw.webmail.util.AssociatedAbstractIdentifiable;
012:        import org.apache.log4j.Logger;
013:        import org.exolab.castor.jdo.TimeStampable;
014:
015:        import java.util.Date;
016:
017:        /**
018:         * Class implementing a specialized <tt>JwmaContactImpl</tt>
019:         * for being persisted with the Castor Plugins.
020:         *
021:         * @author Dieter Wimberger
022:         * @version 0.9.7 07/02/2003
023:         */
024:        public class CastorContact extends AssociatedAbstractIdentifiable
025:                implements  JwmaContactImpl, TimeStampable {
026:
027:            private static Logger log = Logger.getLogger(CastorContact.class);
028:
029:            //instance attributes
030:            private String m_Category = EMPTY;
031:            private String m_Nickname = EMPTY;
032:            private String m_Firstname = EMPTY;
033:            private String m_Lastname = EMPTY;
034:            private String m_Middlename = EMPTY;
035:            private String m_Company = EMPTY;
036:            private String m_Title = EMPTY;
037:            private String m_Role = EMPTY;
038:            private String m_HomePhoneNumber = EMPTY;
039:            private String m_WorkPhoneNumber = EMPTY;
040:            private String m_PagerNumber = EMPTY;
041:            private String m_FaxNumber = EMPTY;
042:            private String m_MobileNumber = EMPTY;
043:            private boolean m_PrimarilyWorkContact = false;
044:            private String m_WorkStreet = EMPTY;
045:            private String m_WorkCity = EMPTY;
046:            private String m_WorkRegion = EMPTY;
047:            private String m_WorkCountry = EMPTY;
048:            private String m_WorkZIP = EMPTY;
049:            private String m_HomeStreet = EMPTY;
050:            private String m_HomeCity = EMPTY;
051:            private String m_HomeRegion = EMPTY;
052:            private String m_HomeCountry = EMPTY;
053:            private String m_HomeZIP = EMPTY;
054:            private String m_Email = EMPTY;
055:            private String m_AlternateEmail = EMPTY;
056:            private String m_URL = EMPTY;
057:            private String m_CompanyURL = EMPTY;
058:            private String m_Comments = EMPTY;
059:            private Date m_BirthDate = new Date();
060:            private boolean m_FrequentRecipient = false;
061:            private long m_Timestamp = TimeStampable.NO_TIMESTAMP;
062:
063:            public CastorContact() {
064:            }//constructor
065:
066:            public String getCategory() {
067:                return m_Category;
068:            }//getCategory
069:
070:            public void setCategory(String category) {
071:                m_Category = (category == null) ? EMPTY : category;
072:            }//setCategory
073:
074:            public String getNickname() {
075:                return m_Nickname;
076:            }//getNickname
077:
078:            public void setNickname(String nickname) {
079:                m_Nickname = (nickname == null) ? EMPTY : nickname;
080:            }//setNickname
081:
082:            public String getFirstname() {
083:                return m_Firstname;
084:            }//getFirstname
085:
086:            public void setFirstname(String name) {
087:                m_Firstname = (name == null) ? EMPTY : name;
088:            }//getFirstname
089:
090:            public String getLastname() {
091:                return m_Lastname;
092:            }//getLastname
093:
094:            public void setLastname(String name) {
095:                m_Lastname = (name == null) ? EMPTY : name;
096:            }//getLastname
097:
098:            public String getMiddlename() {
099:                return m_Middlename;
100:            }//getMiddlename
101:
102:            public void setMiddlename(String name) {
103:                m_Middlename = (name == null) ? EMPTY : name;
104:            }//getMiddlename
105:
106:            public String getCompany() {
107:                return m_Company;
108:            }//getCompany
109:
110:            public void setCompany(String name) {
111:                m_Company = (name == null) ? EMPTY : name;
112:            }//setCompany
113:
114:            public String getTitle() {
115:                return m_Title;
116:            }//getTitle
117:
118:            public void setTitle(String title) {
119:                m_Title = (title == null) ? EMPTY : title;
120:            }//setTitle
121:
122:            public String getRole() {
123:                return m_Role;
124:            }//getRole
125:
126:            public void setRole(String role) {
127:                m_Role = (role == null) ? EMPTY : role;
128:            }//setRole
129:
130:            public String getHomePhoneNumber() {
131:                return m_HomePhoneNumber;
132:            }//getHomePhoneNumber
133:
134:            public void setHomePhoneNumber(String number) {
135:                m_HomePhoneNumber = (number == null) ? EMPTY : number;
136:            }//setHomePhoneNumber
137:
138:            public String getWorkPhoneNumber() {
139:                return m_WorkPhoneNumber;
140:            }//getWorkPhoneNumber
141:
142:            public void setWorkPhoneNumber(String number) {
143:                m_WorkPhoneNumber = (number == null) ? EMPTY : number;
144:            }//setWorkPhoneNumber
145:
146:            public String getPagerNumber() {
147:                return m_PagerNumber;
148:            }//getPagerNumber
149:
150:            public void setPagerNumber(String number) {
151:                m_PagerNumber = (number == null) ? EMPTY : number;
152:            }//setPagerNumber
153:
154:            public String getFaxNumber() {
155:                return m_FaxNumber;
156:            }//getFaxNumber
157:
158:            public void setFaxNumber(String number) {
159:                m_FaxNumber = (number == null) ? EMPTY : number;
160:            }//setFaxNumber
161:
162:            public String getMobileNumber() {
163:                return m_MobileNumber;
164:            }//getMobileNumber
165:
166:            public void setMobileNumber(String number) {
167:                m_MobileNumber = (number == null) ? EMPTY : number;
168:            }//setMobileNumber
169:
170:            public boolean isPrimarilyWorkContact() {
171:                return m_PrimarilyWorkContact;
172:            }//isPrimarilyWorkContact
173:
174:            public void setPrimarilyWorkContact(boolean b) {
175:                m_PrimarilyWorkContact = b;
176:            }//setPrimarilyWorkContact
177:
178:            public String getWorkStreet() {
179:                return m_WorkStreet;
180:            }//getWorkStreet
181:
182:            public void setWorkStreet(String street) {
183:                m_WorkStreet = (street == null) ? EMPTY : street;
184:            }//setWorkStreet
185:
186:            public String getWorkCity() {
187:                return m_WorkCity;
188:            }//getWorkCity
189:
190:            public void setWorkCity(String city) {
191:                m_WorkCity = (city == null) ? EMPTY : city;
192:            }//setWorkCity
193:
194:            public String getWorkRegion() {
195:                return m_WorkRegion;
196:            }//getWorkRegion
197:
198:            public void setWorkRegion(String region) {
199:                m_WorkRegion = (region == null) ? EMPTY : region;
200:            }//setWorkRegion
201:
202:            public String getWorkCountry() {
203:                return m_WorkCountry;
204:            }//getWorkCountry
205:
206:            public void setWorkCountry(String country) {
207:                m_WorkCountry = (country == null) ? EMPTY : country;
208:            }//setWorkCountry
209:
210:            public String getWorkZIP() {
211:                return m_WorkZIP;
212:            }//getWorkZIP
213:
214:            public void setWorkZIP(String zip) {
215:                m_WorkZIP = (zip == null) ? EMPTY : zip;
216:            }//setWorkZIP
217:
218:            public String getHomeStreet() {
219:                return m_HomeStreet;
220:            }//getHomeStreet
221:
222:            public void setHomeStreet(String street) {
223:                m_HomeStreet = (street == null) ? EMPTY : street;
224:            }//setHomeStreet
225:
226:            public String getHomeCity() {
227:                return m_HomeCity;
228:            }//getHomeCity
229:
230:            public void setHomeCity(String city) {
231:                m_HomeCity = (city == null) ? EMPTY : city;
232:            }//setHomeCity
233:
234:            public String getHomeRegion() {
235:                return m_HomeRegion;
236:            }//getHomeRegion
237:
238:            public void setHomeRegion(String region) {
239:                m_HomeRegion = (region == null) ? EMPTY : region;
240:            }//setHomeRegion
241:
242:            public String getHomeCountry() {
243:                return m_HomeCountry;
244:            }//getHomeCountry
245:
246:            public void setHomeCountry(String country) {
247:                m_HomeCountry = (country == null) ? EMPTY : country;
248:            }//setHomeCountry
249:
250:            public String getHomeZIP() {
251:                return m_HomeZIP;
252:            }//getHomeZIP
253:
254:            public void setHomeZIP(String zip) {
255:                m_HomeZIP = (zip == null) ? EMPTY : zip;
256:            }//setHomeZIP
257:
258:            public String getEmail() {
259:                return m_Email;
260:            }//getEmail
261:
262:            public void setEmail(String email) {
263:                m_Email = (email == null) ? EMPTY : email;
264:            }//setEmail
265:
266:            public String getAlternateEmail() {
267:                return m_AlternateEmail;
268:            }//getAlternateEmail
269:
270:            public void setAlternateEmail(String email) {
271:                m_AlternateEmail = (email == null) ? EMPTY : email;
272:            }//setAlternateEmail
273:
274:            public String getURL() {
275:                return m_URL;
276:            }//getURL
277:
278:            public void setURL(String url) {
279:                m_URL = (url == null) ? EMPTY : url;
280:            }//setURL
281:
282:            public String getCompanyURL() {
283:                return m_CompanyURL;
284:            }//getCompanyUrl
285:
286:            public void setCompanyURL(String url) {
287:                m_CompanyURL = (url == null) ? EMPTY : url;
288:            }//setCompanyUrl
289:
290:            public String getComments() {
291:                return m_Comments;
292:            }//getComments
293:
294:            public void setComments(String comments) {
295:                m_Comments = (comments == null) ? EMPTY : comments;
296:            }//setComments
297:
298:            public Date getBirthDate() {
299:                return m_BirthDate;
300:            }//getBirthDate
301:
302:            public void setBirthDate(Date date) {
303:                if (date != null) {
304:                    m_BirthDate = date;
305:                } else {
306:                    m_BirthDate = new Date();
307:                }
308:            }//setBirthDate
309:
310:            public boolean isFrequentRecipient() {
311:                return m_FrequentRecipient;
312:            }//isFrequentRecipient
313:
314:            public void setFrequentRecipient(boolean b) {
315:                m_FrequentRecipient = b;
316:            }//setFrequentRecipient
317:
318:            public long jdoGetTimeStamp() {
319:                return m_Timestamp;
320:            }//jdoGetTimeStamp
321:
322:            public void jdoSetTimeStamp(long timeStamp) {
323:                m_Timestamp = timeStamp;
324:            }//jdoSetTimeStamp
325:
326:            private final static String EMPTY = "";
327:
328:        }//CastorContact
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.