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 WorkflowInstanceLinkWrapper implements WorkflowInstanceLink,
031 ModelWrapper<WorkflowInstanceLink> {
032 public WorkflowInstanceLinkWrapper(
033 WorkflowInstanceLink workflowInstanceLink) {
034 _workflowInstanceLink = workflowInstanceLink;
035 }
036
037 public Class<?> getModelClass() {
038 return WorkflowInstanceLink.class;
039 }
040
041 public String getModelClassName() {
042 return WorkflowInstanceLink.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("workflowInstanceLinkId", getWorkflowInstanceLinkId());
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("workflowInstanceId", getWorkflowInstanceId());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 Long workflowInstanceLinkId = (Long)attributes.get(
064 "workflowInstanceLinkId");
065
066 if (workflowInstanceLinkId != null) {
067 setWorkflowInstanceLinkId(workflowInstanceLinkId);
068 }
069
070 Long groupId = (Long)attributes.get("groupId");
071
072 if (groupId != null) {
073 setGroupId(groupId);
074 }
075
076 Long companyId = (Long)attributes.get("companyId");
077
078 if (companyId != null) {
079 setCompanyId(companyId);
080 }
081
082 Long userId = (Long)attributes.get("userId");
083
084 if (userId != null) {
085 setUserId(userId);
086 }
087
088 String userName = (String)attributes.get("userName");
089
090 if (userName != null) {
091 setUserName(userName);
092 }
093
094 Date createDate = (Date)attributes.get("createDate");
095
096 if (createDate != null) {
097 setCreateDate(createDate);
098 }
099
100 Date modifiedDate = (Date)attributes.get("modifiedDate");
101
102 if (modifiedDate != null) {
103 setModifiedDate(modifiedDate);
104 }
105
106 Long classNameId = (Long)attributes.get("classNameId");
107
108 if (classNameId != null) {
109 setClassNameId(classNameId);
110 }
111
112 Long classPK = (Long)attributes.get("classPK");
113
114 if (classPK != null) {
115 setClassPK(classPK);
116 }
117
118 Long workflowInstanceId = (Long)attributes.get("workflowInstanceId");
119
120 if (workflowInstanceId != null) {
121 setWorkflowInstanceId(workflowInstanceId);
122 }
123 }
124
125
130 public long getPrimaryKey() {
131 return _workflowInstanceLink.getPrimaryKey();
132 }
133
134
139 public void setPrimaryKey(long primaryKey) {
140 _workflowInstanceLink.setPrimaryKey(primaryKey);
141 }
142
143
148 public long getWorkflowInstanceLinkId() {
149 return _workflowInstanceLink.getWorkflowInstanceLinkId();
150 }
151
152
157 public void setWorkflowInstanceLinkId(long workflowInstanceLinkId) {
158 _workflowInstanceLink.setWorkflowInstanceLinkId(workflowInstanceLinkId);
159 }
160
161
166 public long getGroupId() {
167 return _workflowInstanceLink.getGroupId();
168 }
169
170
175 public void setGroupId(long groupId) {
176 _workflowInstanceLink.setGroupId(groupId);
177 }
178
179
184 public long getCompanyId() {
185 return _workflowInstanceLink.getCompanyId();
186 }
187
188
193 public void setCompanyId(long companyId) {
194 _workflowInstanceLink.setCompanyId(companyId);
195 }
196
197
202 public long getUserId() {
203 return _workflowInstanceLink.getUserId();
204 }
205
206
211 public void setUserId(long userId) {
212 _workflowInstanceLink.setUserId(userId);
213 }
214
215
221 public java.lang.String getUserUuid()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return _workflowInstanceLink.getUserUuid();
224 }
225
226
231 public void setUserUuid(java.lang.String userUuid) {
232 _workflowInstanceLink.setUserUuid(userUuid);
233 }
234
235
240 public java.lang.String getUserName() {
241 return _workflowInstanceLink.getUserName();
242 }
243
244
249 public void setUserName(java.lang.String userName) {
250 _workflowInstanceLink.setUserName(userName);
251 }
252
253
258 public java.util.Date getCreateDate() {
259 return _workflowInstanceLink.getCreateDate();
260 }
261
262
267 public void setCreateDate(java.util.Date createDate) {
268 _workflowInstanceLink.setCreateDate(createDate);
269 }
270
271
276 public java.util.Date getModifiedDate() {
277 return _workflowInstanceLink.getModifiedDate();
278 }
279
280
285 public void setModifiedDate(java.util.Date modifiedDate) {
286 _workflowInstanceLink.setModifiedDate(modifiedDate);
287 }
288
289
294 public java.lang.String getClassName() {
295 return _workflowInstanceLink.getClassName();
296 }
297
298 public void setClassName(java.lang.String className) {
299 _workflowInstanceLink.setClassName(className);
300 }
301
302
307 public long getClassNameId() {
308 return _workflowInstanceLink.getClassNameId();
309 }
310
311
316 public void setClassNameId(long classNameId) {
317 _workflowInstanceLink.setClassNameId(classNameId);
318 }
319
320
325 public long getClassPK() {
326 return _workflowInstanceLink.getClassPK();
327 }
328
329
334 public void setClassPK(long classPK) {
335 _workflowInstanceLink.setClassPK(classPK);
336 }
337
338
343 public long getWorkflowInstanceId() {
344 return _workflowInstanceLink.getWorkflowInstanceId();
345 }
346
347
352 public void setWorkflowInstanceId(long workflowInstanceId) {
353 _workflowInstanceLink.setWorkflowInstanceId(workflowInstanceId);
354 }
355
356 public boolean isNew() {
357 return _workflowInstanceLink.isNew();
358 }
359
360 public void setNew(boolean n) {
361 _workflowInstanceLink.setNew(n);
362 }
363
364 public boolean isCachedModel() {
365 return _workflowInstanceLink.isCachedModel();
366 }
367
368 public void setCachedModel(boolean cachedModel) {
369 _workflowInstanceLink.setCachedModel(cachedModel);
370 }
371
372 public boolean isEscapedModel() {
373 return _workflowInstanceLink.isEscapedModel();
374 }
375
376 public java.io.Serializable getPrimaryKeyObj() {
377 return _workflowInstanceLink.getPrimaryKeyObj();
378 }
379
380 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
381 _workflowInstanceLink.setPrimaryKeyObj(primaryKeyObj);
382 }
383
384 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
385 return _workflowInstanceLink.getExpandoBridge();
386 }
387
388 public void setExpandoBridgeAttributes(
389 com.liferay.portal.model.BaseModel<?> baseModel) {
390 _workflowInstanceLink.setExpandoBridgeAttributes(baseModel);
391 }
392
393 public void setExpandoBridgeAttributes(
394 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
395 _workflowInstanceLink.setExpandoBridgeAttributes(expandoBridge);
396 }
397
398 public void setExpandoBridgeAttributes(
399 com.liferay.portal.service.ServiceContext serviceContext) {
400 _workflowInstanceLink.setExpandoBridgeAttributes(serviceContext);
401 }
402
403 @Override
404 public java.lang.Object clone() {
405 return new WorkflowInstanceLinkWrapper((WorkflowInstanceLink)_workflowInstanceLink.clone());
406 }
407
408 public int compareTo(
409 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
410 return _workflowInstanceLink.compareTo(workflowInstanceLink);
411 }
412
413 @Override
414 public int hashCode() {
415 return _workflowInstanceLink.hashCode();
416 }
417
418 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowInstanceLink> toCacheModel() {
419 return _workflowInstanceLink.toCacheModel();
420 }
421
422 public com.liferay.portal.model.WorkflowInstanceLink toEscapedModel() {
423 return new WorkflowInstanceLinkWrapper(_workflowInstanceLink.toEscapedModel());
424 }
425
426 public com.liferay.portal.model.WorkflowInstanceLink toUnescapedModel() {
427 return new WorkflowInstanceLinkWrapper(_workflowInstanceLink.toUnescapedModel());
428 }
429
430 @Override
431 public java.lang.String toString() {
432 return _workflowInstanceLink.toString();
433 }
434
435 public java.lang.String toXmlString() {
436 return _workflowInstanceLink.toXmlString();
437 }
438
439 public void persist()
440 throws com.liferay.portal.kernel.exception.SystemException {
441 _workflowInstanceLink.persist();
442 }
443
444
447 public WorkflowInstanceLink getWrappedWorkflowInstanceLink() {
448 return _workflowInstanceLink;
449 }
450
451 public WorkflowInstanceLink getWrappedModel() {
452 return _workflowInstanceLink;
453 }
454
455 public void resetOriginalValues() {
456 _workflowInstanceLink.resetOriginalValues();
457 }
458
459 private WorkflowInstanceLink _workflowInstanceLink;
460 }