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 WorkflowDefinitionLinkWrapper implements WorkflowDefinitionLink,
031 ModelWrapper<WorkflowDefinitionLink> {
032 public WorkflowDefinitionLinkWrapper(
033 WorkflowDefinitionLink workflowDefinitionLink) {
034 _workflowDefinitionLink = workflowDefinitionLink;
035 }
036
037 public Class<?> getModelClass() {
038 return WorkflowDefinitionLink.class;
039 }
040
041 public String getModelClassName() {
042 return WorkflowDefinitionLink.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("workflowDefinitionLinkId", getWorkflowDefinitionLinkId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("userName", getUserName());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("classNameId", getClassNameId());
056 attributes.put("classPK", getClassPK());
057 attributes.put("typePK", getTypePK());
058 attributes.put("workflowDefinitionName", getWorkflowDefinitionName());
059 attributes.put("workflowDefinitionVersion",
060 getWorkflowDefinitionVersion());
061
062 return attributes;
063 }
064
065 public void setModelAttributes(Map<String, Object> attributes) {
066 Long workflowDefinitionLinkId = (Long)attributes.get(
067 "workflowDefinitionLinkId");
068
069 if (workflowDefinitionLinkId != null) {
070 setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
071 }
072
073 Long groupId = (Long)attributes.get("groupId");
074
075 if (groupId != null) {
076 setGroupId(groupId);
077 }
078
079 Long companyId = (Long)attributes.get("companyId");
080
081 if (companyId != null) {
082 setCompanyId(companyId);
083 }
084
085 Long userId = (Long)attributes.get("userId");
086
087 if (userId != null) {
088 setUserId(userId);
089 }
090
091 String userName = (String)attributes.get("userName");
092
093 if (userName != null) {
094 setUserName(userName);
095 }
096
097 Date createDate = (Date)attributes.get("createDate");
098
099 if (createDate != null) {
100 setCreateDate(createDate);
101 }
102
103 Date modifiedDate = (Date)attributes.get("modifiedDate");
104
105 if (modifiedDate != null) {
106 setModifiedDate(modifiedDate);
107 }
108
109 Long classNameId = (Long)attributes.get("classNameId");
110
111 if (classNameId != null) {
112 setClassNameId(classNameId);
113 }
114
115 Long classPK = (Long)attributes.get("classPK");
116
117 if (classPK != null) {
118 setClassPK(classPK);
119 }
120
121 Long typePK = (Long)attributes.get("typePK");
122
123 if (typePK != null) {
124 setTypePK(typePK);
125 }
126
127 String workflowDefinitionName = (String)attributes.get(
128 "workflowDefinitionName");
129
130 if (workflowDefinitionName != null) {
131 setWorkflowDefinitionName(workflowDefinitionName);
132 }
133
134 Integer workflowDefinitionVersion = (Integer)attributes.get(
135 "workflowDefinitionVersion");
136
137 if (workflowDefinitionVersion != null) {
138 setWorkflowDefinitionVersion(workflowDefinitionVersion);
139 }
140 }
141
142
147 public long getPrimaryKey() {
148 return _workflowDefinitionLink.getPrimaryKey();
149 }
150
151
156 public void setPrimaryKey(long primaryKey) {
157 _workflowDefinitionLink.setPrimaryKey(primaryKey);
158 }
159
160
165 public long getWorkflowDefinitionLinkId() {
166 return _workflowDefinitionLink.getWorkflowDefinitionLinkId();
167 }
168
169
174 public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
175 _workflowDefinitionLink.setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
176 }
177
178
183 public long getGroupId() {
184 return _workflowDefinitionLink.getGroupId();
185 }
186
187
192 public void setGroupId(long groupId) {
193 _workflowDefinitionLink.setGroupId(groupId);
194 }
195
196
201 public long getCompanyId() {
202 return _workflowDefinitionLink.getCompanyId();
203 }
204
205
210 public void setCompanyId(long companyId) {
211 _workflowDefinitionLink.setCompanyId(companyId);
212 }
213
214
219 public long getUserId() {
220 return _workflowDefinitionLink.getUserId();
221 }
222
223
228 public void setUserId(long userId) {
229 _workflowDefinitionLink.setUserId(userId);
230 }
231
232
238 public java.lang.String getUserUuid()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return _workflowDefinitionLink.getUserUuid();
241 }
242
243
248 public void setUserUuid(java.lang.String userUuid) {
249 _workflowDefinitionLink.setUserUuid(userUuid);
250 }
251
252
257 public java.lang.String getUserName() {
258 return _workflowDefinitionLink.getUserName();
259 }
260
261
266 public void setUserName(java.lang.String userName) {
267 _workflowDefinitionLink.setUserName(userName);
268 }
269
270
275 public java.util.Date getCreateDate() {
276 return _workflowDefinitionLink.getCreateDate();
277 }
278
279
284 public void setCreateDate(java.util.Date createDate) {
285 _workflowDefinitionLink.setCreateDate(createDate);
286 }
287
288
293 public java.util.Date getModifiedDate() {
294 return _workflowDefinitionLink.getModifiedDate();
295 }
296
297
302 public void setModifiedDate(java.util.Date modifiedDate) {
303 _workflowDefinitionLink.setModifiedDate(modifiedDate);
304 }
305
306
311 public java.lang.String getClassName() {
312 return _workflowDefinitionLink.getClassName();
313 }
314
315 public void setClassName(java.lang.String className) {
316 _workflowDefinitionLink.setClassName(className);
317 }
318
319
324 public long getClassNameId() {
325 return _workflowDefinitionLink.getClassNameId();
326 }
327
328
333 public void setClassNameId(long classNameId) {
334 _workflowDefinitionLink.setClassNameId(classNameId);
335 }
336
337
342 public long getClassPK() {
343 return _workflowDefinitionLink.getClassPK();
344 }
345
346
351 public void setClassPK(long classPK) {
352 _workflowDefinitionLink.setClassPK(classPK);
353 }
354
355
360 public long getTypePK() {
361 return _workflowDefinitionLink.getTypePK();
362 }
363
364
369 public void setTypePK(long typePK) {
370 _workflowDefinitionLink.setTypePK(typePK);
371 }
372
373
378 public java.lang.String getWorkflowDefinitionName() {
379 return _workflowDefinitionLink.getWorkflowDefinitionName();
380 }
381
382
387 public void setWorkflowDefinitionName(
388 java.lang.String workflowDefinitionName) {
389 _workflowDefinitionLink.setWorkflowDefinitionName(workflowDefinitionName);
390 }
391
392
397 public int getWorkflowDefinitionVersion() {
398 return _workflowDefinitionLink.getWorkflowDefinitionVersion();
399 }
400
401
406 public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
407 _workflowDefinitionLink.setWorkflowDefinitionVersion(workflowDefinitionVersion);
408 }
409
410 public boolean isNew() {
411 return _workflowDefinitionLink.isNew();
412 }
413
414 public void setNew(boolean n) {
415 _workflowDefinitionLink.setNew(n);
416 }
417
418 public boolean isCachedModel() {
419 return _workflowDefinitionLink.isCachedModel();
420 }
421
422 public void setCachedModel(boolean cachedModel) {
423 _workflowDefinitionLink.setCachedModel(cachedModel);
424 }
425
426 public boolean isEscapedModel() {
427 return _workflowDefinitionLink.isEscapedModel();
428 }
429
430 public java.io.Serializable getPrimaryKeyObj() {
431 return _workflowDefinitionLink.getPrimaryKeyObj();
432 }
433
434 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
435 _workflowDefinitionLink.setPrimaryKeyObj(primaryKeyObj);
436 }
437
438 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
439 return _workflowDefinitionLink.getExpandoBridge();
440 }
441
442 public void setExpandoBridgeAttributes(
443 com.liferay.portal.service.ServiceContext serviceContext) {
444 _workflowDefinitionLink.setExpandoBridgeAttributes(serviceContext);
445 }
446
447 @Override
448 public java.lang.Object clone() {
449 return new WorkflowDefinitionLinkWrapper((WorkflowDefinitionLink)_workflowDefinitionLink.clone());
450 }
451
452 public int compareTo(
453 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
454 return _workflowDefinitionLink.compareTo(workflowDefinitionLink);
455 }
456
457 @Override
458 public int hashCode() {
459 return _workflowDefinitionLink.hashCode();
460 }
461
462 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowDefinitionLink> toCacheModel() {
463 return _workflowDefinitionLink.toCacheModel();
464 }
465
466 public com.liferay.portal.model.WorkflowDefinitionLink toEscapedModel() {
467 return new WorkflowDefinitionLinkWrapper(_workflowDefinitionLink.toEscapedModel());
468 }
469
470 public com.liferay.portal.model.WorkflowDefinitionLink toUnescapedModel() {
471 return new WorkflowDefinitionLinkWrapper(_workflowDefinitionLink.toUnescapedModel());
472 }
473
474 @Override
475 public java.lang.String toString() {
476 return _workflowDefinitionLink.toString();
477 }
478
479 public java.lang.String toXmlString() {
480 return _workflowDefinitionLink.toXmlString();
481 }
482
483 public void persist()
484 throws com.liferay.portal.kernel.exception.SystemException {
485 _workflowDefinitionLink.persist();
486 }
487
488
491 public WorkflowDefinitionLink getWrappedWorkflowDefinitionLink() {
492 return _workflowDefinitionLink;
493 }
494
495 public WorkflowDefinitionLink getWrappedModel() {
496 return _workflowDefinitionLink;
497 }
498
499 public void resetOriginalValues() {
500 _workflowDefinitionLink.resetOriginalValues();
501 }
502
503 private WorkflowDefinitionLink _workflowDefinitionLink;
504 }