Source Code Cross Referenced for ReportsEntryModelImpl.java in  » Portal » liferay-portal-4.4.2 » com » ext » portlet » reports » model » impl » 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 » Portal » liferay portal 4.4.2 » com.ext.portlet.reports.model.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.ext.portlet.reports.model.impl;
002:
003:        import com.ext.portlet.reports.model.ReportsEntry;
004:
005:        import com.liferay.portal.kernel.bean.ReadOnlyBeanHandler;
006:        import com.liferay.portal.kernel.util.GetterUtil;
007:        import com.liferay.portal.model.impl.BaseModelImpl;
008:        import com.liferay.portal.util.PropsUtil;
009:
010:        import com.liferay.util.Html;
011:
012:        import java.io.Serializable;
013:
014:        import java.lang.reflect.Proxy;
015:
016:        import java.sql.Types;
017:
018:        import java.util.Date;
019:
020:        /**
021:         * <a href="ReportsEntryModelImpl.java.html"><b><i>View Source</i></b></a>
022:         *
023:         * <p>
024:         * ServiceBuilder generated this class. Modifications in this class will be
025:         * overwritten the next time is generated.
026:         * </p>
027:         *
028:         * <p>
029:         * This class is a model that represents the <code>ReportsEntry</code> table
030:         * in the database.
031:         * </p>
032:         *
033:         * @author Brian Wing Shun Chan
034:         *
035:         * @see com.ext.portlet.reports.service.model.ReportsEntry
036:         * @see com.ext.portlet.reports.service.model.ReportsEntryModel
037:         * @see com.ext.portlet.reports.service.model.impl.ReportsEntryImpl
038:         *
039:         */
040:        public class ReportsEntryModelImpl extends BaseModelImpl {
041:            public static final String TABLE_NAME = "ReportsEntry";
042:            public static final Object[][] TABLE_COLUMNS = {
043:                    { "entryId", new Integer(Types.VARCHAR) },
044:
045:                    { "companyId", new Integer(Types.VARCHAR) },
046:
047:                    { "userId", new Integer(Types.VARCHAR) },
048:
049:                    { "userName", new Integer(Types.VARCHAR) },
050:
051:                    { "createDate", new Integer(Types.TIMESTAMP) },
052:
053:                    { "modifiedDate", new Integer(Types.TIMESTAMP) },
054:
055:                    { "name", new Integer(Types.VARCHAR) } };
056:            public static final String TABLE_SQL_CREATE = "create table ReportsEntry (entryId VARCHAR(75) not null primary key,companyId VARCHAR(75) null,userId VARCHAR(75) null,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,name VARCHAR(75) null)";
057:            public static final String TABLE_SQL_DROP = "drop table ReportsEntry";
058:            public static final boolean CACHE_ENABLED = GetterUtil
059:                    .getBoolean(
060:                            PropsUtil
061:                                    .get("value.object.finder.cache.enabled.com.ext.portlet.reports.model.ReportsEntry"),
062:                            true);
063:            public static final long LOCK_EXPIRATION_TIME = GetterUtil
064:                    .getLong(PropsUtil
065:                            .get("lock.expiration.time.com.ext.portlet.reports.model.ReportsEntry"));
066:            private String _entryId;
067:            private String _companyId;
068:            private String _userId;
069:            private String _userName;
070:            private Date _createDate;
071:            private Date _modifiedDate;
072:            private String _name;
073:
074:            public ReportsEntryModelImpl() {
075:            }
076:
077:            public String getPrimaryKey() {
078:                return _entryId;
079:            }
080:
081:            public void setPrimaryKey(String pk) {
082:                setEntryId(pk);
083:            }
084:
085:            public Serializable getPrimaryKeyObj() {
086:                return _entryId;
087:            }
088:
089:            public String getEntryId() {
090:                return GetterUtil.getString(_entryId);
091:            }
092:
093:            public void setEntryId(String entryId) {
094:                if (((entryId == null) && (_entryId != null))
095:                        || ((entryId != null) && (_entryId == null))
096:                        || ((entryId != null) && (_entryId != null) && !entryId
097:                                .equals(_entryId))) {
098:                    _entryId = entryId;
099:                }
100:            }
101:
102:            public String getCompanyId() {
103:                return GetterUtil.getString(_companyId);
104:            }
105:
106:            public void setCompanyId(String companyId) {
107:                if (((companyId == null) && (_companyId != null))
108:                        || ((companyId != null) && (_companyId == null))
109:                        || ((companyId != null) && (_companyId != null) && !companyId
110:                                .equals(_companyId))) {
111:                    _companyId = companyId;
112:                }
113:            }
114:
115:            public String getUserId() {
116:                return GetterUtil.getString(_userId);
117:            }
118:
119:            public void setUserId(String userId) {
120:                if (((userId == null) && (_userId != null))
121:                        || ((userId != null) && (_userId == null))
122:                        || ((userId != null) && (_userId != null) && !userId
123:                                .equals(_userId))) {
124:                    _userId = userId;
125:                }
126:            }
127:
128:            public String getUserName() {
129:                return GetterUtil.getString(_userName);
130:            }
131:
132:            public void setUserName(String userName) {
133:                if (((userName == null) && (_userName != null))
134:                        || ((userName != null) && (_userName == null))
135:                        || ((userName != null) && (_userName != null) && !userName
136:                                .equals(_userName))) {
137:                    _userName = userName;
138:                }
139:            }
140:
141:            public Date getCreateDate() {
142:                return _createDate;
143:            }
144:
145:            public void setCreateDate(Date createDate) {
146:                if (((createDate == null) && (_createDate != null))
147:                        || ((createDate != null) && (_createDate == null))
148:                        || ((createDate != null) && (_createDate != null) && !createDate
149:                                .equals(_createDate))) {
150:                    _createDate = createDate;
151:                }
152:            }
153:
154:            public Date getModifiedDate() {
155:                return _modifiedDate;
156:            }
157:
158:            public void setModifiedDate(Date modifiedDate) {
159:                if (((modifiedDate == null) && (_modifiedDate != null))
160:                        || ((modifiedDate != null) && (_modifiedDate == null))
161:                        || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate
162:                                .equals(_modifiedDate))) {
163:                    _modifiedDate = modifiedDate;
164:                }
165:            }
166:
167:            public String getName() {
168:                return GetterUtil.getString(_name);
169:            }
170:
171:            public void setName(String name) {
172:                if (((name == null) && (_name != null))
173:                        || ((name != null) && (_name == null))
174:                        || ((name != null) && (_name != null) && !name
175:                                .equals(_name))) {
176:                    _name = name;
177:                }
178:            }
179:
180:            public ReportsEntry toEscapedModel() {
181:                if (isEscapedModel()) {
182:                    return (ReportsEntry) this ;
183:                } else {
184:                    ReportsEntry model = new ReportsEntryImpl();
185:
186:                    model.setEscapedModel(true);
187:
188:                    model.setEntryId(Html.escape(getEntryId()));
189:                    model.setCompanyId(Html.escape(getCompanyId()));
190:                    model.setUserId(Html.escape(getUserId()));
191:                    model.setUserName(Html.escape(getUserName()));
192:                    model.setCreateDate(getCreateDate());
193:                    model.setModifiedDate(getModifiedDate());
194:                    model.setName(Html.escape(getName()));
195:
196:                    model = (ReportsEntry) Proxy.newProxyInstance(
197:                            ReportsEntry.class.getClassLoader(),
198:                            new Class[] { ReportsEntry.class },
199:                            new ReadOnlyBeanHandler(model));
200:
201:                    return model;
202:                }
203:            }
204:
205:            public Object clone() {
206:                ReportsEntryImpl clone = new ReportsEntryImpl();
207:
208:                clone.setEntryId(getEntryId());
209:                clone.setCompanyId(getCompanyId());
210:                clone.setUserId(getUserId());
211:                clone.setUserName(getUserName());
212:                clone.setCreateDate(getCreateDate());
213:                clone.setModifiedDate(getModifiedDate());
214:                clone.setName(getName());
215:
216:                return clone;
217:            }
218:
219:            public int compareTo(Object obj) {
220:                if (obj == null) {
221:                    return -1;
222:                }
223:
224:                ReportsEntryImpl reportsEntry = (ReportsEntryImpl) obj;
225:
226:                int value = 0;
227:
228:                value = getName().toLowerCase().compareTo(
229:                        reportsEntry.getName().toLowerCase());
230:
231:                if (value != 0) {
232:                    return value;
233:                }
234:
235:                return 0;
236:            }
237:
238:            public boolean equals(Object obj) {
239:                if (obj == null) {
240:                    return false;
241:                }
242:
243:                ReportsEntryImpl reportsEntry = null;
244:
245:                try {
246:                    reportsEntry = (ReportsEntryImpl) obj;
247:                } catch (ClassCastException cce) {
248:                    return false;
249:                }
250:
251:                String pk = reportsEntry.getPrimaryKey();
252:
253:                if (getPrimaryKey().equals(pk)) {
254:                    return true;
255:                } else {
256:                    return false;
257:                }
258:            }
259:
260:            public int hashCode() {
261:                return getPrimaryKey().hashCode();
262:            }
263:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.