Source Code Cross Referenced for HistoricalEvent.java in  » Project-Management » XPlanner-0.7b7 » com » technoetic » xplanner » history » 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 » Project Management » XPlanner 0.7b7 » com.technoetic.xplanner.history 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.technoetic.xplanner.history;
002:
003:        import com.technoetic.xplanner.domain.Identifiable;
004:
005:        import java.util.Date;
006:
007:        public class HistoricalEvent implements  Identifiable {
008:            public static final String CREATED = "created";
009:            public static final String UPDATED = "updated";
010:            public static final String DELETED = "deleted";
011:            public static final String REESTIMATED = "reestimated";
012:            public static final String ITERATION_STARTED = "started";
013:            public static final String ITERATION_CLOSED = "closed";
014:            public static final String MOVED = "moved";
015:            public static final String MOVED_IN = "moved in";
016:            public static final String MOVED_OUT = "moved out";
017:            public static final String CONTINUED = "continued";
018:
019:            private Date when;
020:            private int targetObjectId;
021:            private int containerId;
022:            private String objectType;
023:            private String action;
024:            private String description;
025:            private int personId;
026:            private boolean notified;
027:            private int id;
028:
029:            //For hibernate
030:            HistoricalEvent() {
031:            }
032:
033:            public HistoricalEvent(int containerId, int targetObjectId,
034:                    String objectType, String action, String description,
035:                    int personId, Date when) {
036:                this .containerId = containerId;
037:                this .objectType = objectType;
038:                this .when = when;
039:                this .targetObjectId = targetObjectId;
040:                this .action = action;
041:                this .description = description;
042:                this .personId = personId;
043:            }
044:
045:            public Date getWhen() {
046:                return when;
047:            }
048:
049:            public void setWhen(Date when) {
050:                this .when = when;
051:            }
052:
053:            public int getTargetObjectId() {
054:                return targetObjectId;
055:            }
056:
057:            public void setTargetObjectId(int targetObjectId) {
058:                this .targetObjectId = targetObjectId;
059:            }
060:
061:            public String getAction() {
062:                return action;
063:            }
064:
065:            public void setAction(String action) {
066:                this .action = action;
067:            }
068:
069:            public String getDescription() {
070:                return description;
071:            }
072:
073:            public void setDescription(String description) {
074:                this .description = description;
075:            }
076:
077:            public int getPersonId() {
078:                return personId;
079:            }
080:
081:            public void setPersonId(int personId) {
082:                this .personId = personId;
083:            }
084:
085:            public boolean isNotified() {
086:                return notified;
087:            }
088:
089:            public void setNotified(boolean notified) {
090:                this .notified = notified;
091:            }
092:
093:            public int getId() {
094:                return id;
095:            }
096:
097:            public void setId(int id) {
098:                this .id = id;
099:            }
100:
101:            public String getObjectType() {
102:                return objectType;
103:            }
104:
105:            public void setObjectType(String objectType) {
106:                this .objectType = objectType;
107:            }
108:
109:            public int getContainerId() {
110:                return containerId;
111:            }
112:
113:            public void setContainerId(int containerId) {
114:                this .containerId = containerId;
115:            }
116:
117:            public String toString() {
118:                return "HistoricalEvent(id=" + this .getId() + ", personId="
119:                        + this .getPersonId() + ", targetObjectId="
120:                        + this .getTargetObjectId() + ", objectType="
121:                        + objectType + ", action=" + this .getAction()
122:                        + ", containerId=" + this .getContainerId()
123:                        + ", desc.='" + this .getDescription() + '\''
124:                        + ", date=" + this .getWhen() + ", notified=" + notified
125:                        + ")";
126:            }
127:
128:            public boolean equals(Object o) {
129:                if (this  == o)
130:                    return true;
131:                if (o == null || getClass() != o.getClass())
132:                    return false;
133:
134:                final HistoricalEvent event = (HistoricalEvent) o;
135:
136:                if (containerId != event.containerId)
137:                    return false;
138:                if (id != event.id)
139:                    return false;
140:                if (notified != event.notified)
141:                    return false;
142:                if (personId != event.personId)
143:                    return false;
144:                if (targetObjectId != event.targetObjectId)
145:                    return false;
146:                if (action != null ? !action.equals(event.action)
147:                        : event.action != null)
148:                    return false;
149:                if (description != null ? !description
150:                        .equals(event.description) : event.description != null)
151:                    return false;
152:                if (objectType != null ? !objectType.equals(event.objectType)
153:                        : event.objectType != null)
154:                    return false;
155:                return !(when != null ? !when.equals(event.when)
156:                        : event.when != null);
157:
158:            }
159:
160:            public int hashCode() {
161:                int result;
162:                result = (when != null ? when.hashCode() : 0);
163:                result = 29 * result + targetObjectId;
164:                result = 29 * result + containerId;
165:                result = 29 * result
166:                        + (objectType != null ? objectType.hashCode() : 0);
167:                result = 29 * result + (action != null ? action.hashCode() : 0);
168:                result = 29 * result
169:                        + (description != null ? description.hashCode() : 0);
170:                result = 29 * result + personId;
171:                result = 29 * result + (notified ? 1 : 0);
172:                result = 29 * result + id;
173:                return result;
174:            }
175:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.