001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class TicketWrapper implements Ticket, ModelWrapper<Ticket> {
031 public TicketWrapper(Ticket ticket) {
032 _ticket = ticket;
033 }
034
035 public Class<?> getModelClass() {
036 return Ticket.class;
037 }
038
039 public String getModelClassName() {
040 return Ticket.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("ticketId", getTicketId());
047 attributes.put("companyId", getCompanyId());
048 attributes.put("createDate", getCreateDate());
049 attributes.put("classNameId", getClassNameId());
050 attributes.put("classPK", getClassPK());
051 attributes.put("key", getKey());
052 attributes.put("type", getType());
053 attributes.put("extraInfo", getExtraInfo());
054 attributes.put("expirationDate", getExpirationDate());
055
056 return attributes;
057 }
058
059 public void setModelAttributes(Map<String, Object> attributes) {
060 Long ticketId = (Long)attributes.get("ticketId");
061
062 if (ticketId != null) {
063 setTicketId(ticketId);
064 }
065
066 Long companyId = (Long)attributes.get("companyId");
067
068 if (companyId != null) {
069 setCompanyId(companyId);
070 }
071
072 Date createDate = (Date)attributes.get("createDate");
073
074 if (createDate != null) {
075 setCreateDate(createDate);
076 }
077
078 Long classNameId = (Long)attributes.get("classNameId");
079
080 if (classNameId != null) {
081 setClassNameId(classNameId);
082 }
083
084 Long classPK = (Long)attributes.get("classPK");
085
086 if (classPK != null) {
087 setClassPK(classPK);
088 }
089
090 String key = (String)attributes.get("key");
091
092 if (key != null) {
093 setKey(key);
094 }
095
096 Integer type = (Integer)attributes.get("type");
097
098 if (type != null) {
099 setType(type);
100 }
101
102 String extraInfo = (String)attributes.get("extraInfo");
103
104 if (extraInfo != null) {
105 setExtraInfo(extraInfo);
106 }
107
108 Date expirationDate = (Date)attributes.get("expirationDate");
109
110 if (expirationDate != null) {
111 setExpirationDate(expirationDate);
112 }
113 }
114
115
120 public long getPrimaryKey() {
121 return _ticket.getPrimaryKey();
122 }
123
124
129 public void setPrimaryKey(long primaryKey) {
130 _ticket.setPrimaryKey(primaryKey);
131 }
132
133
138 public long getTicketId() {
139 return _ticket.getTicketId();
140 }
141
142
147 public void setTicketId(long ticketId) {
148 _ticket.setTicketId(ticketId);
149 }
150
151
156 public long getCompanyId() {
157 return _ticket.getCompanyId();
158 }
159
160
165 public void setCompanyId(long companyId) {
166 _ticket.setCompanyId(companyId);
167 }
168
169
174 public java.util.Date getCreateDate() {
175 return _ticket.getCreateDate();
176 }
177
178
183 public void setCreateDate(java.util.Date createDate) {
184 _ticket.setCreateDate(createDate);
185 }
186
187
192 public java.lang.String getClassName() {
193 return _ticket.getClassName();
194 }
195
196 public void setClassName(java.lang.String className) {
197 _ticket.setClassName(className);
198 }
199
200
205 public long getClassNameId() {
206 return _ticket.getClassNameId();
207 }
208
209
214 public void setClassNameId(long classNameId) {
215 _ticket.setClassNameId(classNameId);
216 }
217
218
223 public long getClassPK() {
224 return _ticket.getClassPK();
225 }
226
227
232 public void setClassPK(long classPK) {
233 _ticket.setClassPK(classPK);
234 }
235
236
241 public java.lang.String getKey() {
242 return _ticket.getKey();
243 }
244
245
250 public void setKey(java.lang.String key) {
251 _ticket.setKey(key);
252 }
253
254
259 public int getType() {
260 return _ticket.getType();
261 }
262
263
268 public void setType(int type) {
269 _ticket.setType(type);
270 }
271
272
277 public java.lang.String getExtraInfo() {
278 return _ticket.getExtraInfo();
279 }
280
281
286 public void setExtraInfo(java.lang.String extraInfo) {
287 _ticket.setExtraInfo(extraInfo);
288 }
289
290
295 public java.util.Date getExpirationDate() {
296 return _ticket.getExpirationDate();
297 }
298
299
304 public void setExpirationDate(java.util.Date expirationDate) {
305 _ticket.setExpirationDate(expirationDate);
306 }
307
308 public boolean isNew() {
309 return _ticket.isNew();
310 }
311
312 public void setNew(boolean n) {
313 _ticket.setNew(n);
314 }
315
316 public boolean isCachedModel() {
317 return _ticket.isCachedModel();
318 }
319
320 public void setCachedModel(boolean cachedModel) {
321 _ticket.setCachedModel(cachedModel);
322 }
323
324 public boolean isEscapedModel() {
325 return _ticket.isEscapedModel();
326 }
327
328 public java.io.Serializable getPrimaryKeyObj() {
329 return _ticket.getPrimaryKeyObj();
330 }
331
332 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
333 _ticket.setPrimaryKeyObj(primaryKeyObj);
334 }
335
336 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
337 return _ticket.getExpandoBridge();
338 }
339
340 public void setExpandoBridgeAttributes(
341 com.liferay.portal.service.ServiceContext serviceContext) {
342 _ticket.setExpandoBridgeAttributes(serviceContext);
343 }
344
345 @Override
346 public java.lang.Object clone() {
347 return new TicketWrapper((Ticket)_ticket.clone());
348 }
349
350 public int compareTo(com.liferay.portal.model.Ticket ticket) {
351 return _ticket.compareTo(ticket);
352 }
353
354 @Override
355 public int hashCode() {
356 return _ticket.hashCode();
357 }
358
359 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Ticket> toCacheModel() {
360 return _ticket.toCacheModel();
361 }
362
363 public com.liferay.portal.model.Ticket toEscapedModel() {
364 return new TicketWrapper(_ticket.toEscapedModel());
365 }
366
367 @Override
368 public java.lang.String toString() {
369 return _ticket.toString();
370 }
371
372 public java.lang.String toXmlString() {
373 return _ticket.toXmlString();
374 }
375
376 public void persist()
377 throws com.liferay.portal.kernel.exception.SystemException {
378 _ticket.persist();
379 }
380
381 public boolean isExpired() {
382 return _ticket.isExpired();
383 }
384
385
388 public Ticket getWrappedTicket() {
389 return _ticket;
390 }
391
392 public Ticket getWrappedModel() {
393 return _ticket;
394 }
395
396 public void resetOriginalValues() {
397 _ticket.resetOriginalValues();
398 }
399
400 private Ticket _ticket;
401 }