001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class WorkflowInstanceLinkWrapper implements WorkflowInstanceLink,
033 ModelWrapper<WorkflowInstanceLink> {
034 public WorkflowInstanceLinkWrapper(
035 WorkflowInstanceLink workflowInstanceLink) {
036 _workflowInstanceLink = workflowInstanceLink;
037 }
038
039 public Class<?> getModelClass() {
040 return WorkflowInstanceLink.class;
041 }
042
043 public String getModelClassName() {
044 return WorkflowInstanceLink.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("workflowInstanceLinkId", getWorkflowInstanceLinkId());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("userId", getUserId());
054 attributes.put("userName", getUserName());
055 attributes.put("createDate", getCreateDate());
056 attributes.put("modifiedDate", getModifiedDate());
057 attributes.put("classNameId", getClassNameId());
058 attributes.put("classPK", getClassPK());
059 attributes.put("workflowInstanceId", getWorkflowInstanceId());
060
061 return attributes;
062 }
063
064 public void setModelAttributes(Map<String, Object> attributes) {
065 Long workflowInstanceLinkId = (Long)attributes.get(
066 "workflowInstanceLinkId");
067
068 if (workflowInstanceLinkId != null) {
069 setWorkflowInstanceLinkId(workflowInstanceLinkId);
070 }
071
072 Long groupId = (Long)attributes.get("groupId");
073
074 if (groupId != null) {
075 setGroupId(groupId);
076 }
077
078 Long companyId = (Long)attributes.get("companyId");
079
080 if (companyId != null) {
081 setCompanyId(companyId);
082 }
083
084 Long userId = (Long)attributes.get("userId");
085
086 if (userId != null) {
087 setUserId(userId);
088 }
089
090 String userName = (String)attributes.get("userName");
091
092 if (userName != null) {
093 setUserName(userName);
094 }
095
096 Date createDate = (Date)attributes.get("createDate");
097
098 if (createDate != null) {
099 setCreateDate(createDate);
100 }
101
102 Date modifiedDate = (Date)attributes.get("modifiedDate");
103
104 if (modifiedDate != null) {
105 setModifiedDate(modifiedDate);
106 }
107
108 Long classNameId = (Long)attributes.get("classNameId");
109
110 if (classNameId != null) {
111 setClassNameId(classNameId);
112 }
113
114 Long classPK = (Long)attributes.get("classPK");
115
116 if (classPK != null) {
117 setClassPK(classPK);
118 }
119
120 Long workflowInstanceId = (Long)attributes.get("workflowInstanceId");
121
122 if (workflowInstanceId != null) {
123 setWorkflowInstanceId(workflowInstanceId);
124 }
125 }
126
127
132 public long getPrimaryKey() {
133 return _workflowInstanceLink.getPrimaryKey();
134 }
135
136
141 public void setPrimaryKey(long primaryKey) {
142 _workflowInstanceLink.setPrimaryKey(primaryKey);
143 }
144
145
150 public long getWorkflowInstanceLinkId() {
151 return _workflowInstanceLink.getWorkflowInstanceLinkId();
152 }
153
154
159 public void setWorkflowInstanceLinkId(long workflowInstanceLinkId) {
160 _workflowInstanceLink.setWorkflowInstanceLinkId(workflowInstanceLinkId);
161 }
162
163
168 public long getGroupId() {
169 return _workflowInstanceLink.getGroupId();
170 }
171
172
177 public void setGroupId(long groupId) {
178 _workflowInstanceLink.setGroupId(groupId);
179 }
180
181
186 public long getCompanyId() {
187 return _workflowInstanceLink.getCompanyId();
188 }
189
190
195 public void setCompanyId(long companyId) {
196 _workflowInstanceLink.setCompanyId(companyId);
197 }
198
199
204 public long getUserId() {
205 return _workflowInstanceLink.getUserId();
206 }
207
208
213 public void setUserId(long userId) {
214 _workflowInstanceLink.setUserId(userId);
215 }
216
217
223 public java.lang.String getUserUuid()
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return _workflowInstanceLink.getUserUuid();
226 }
227
228
233 public void setUserUuid(java.lang.String userUuid) {
234 _workflowInstanceLink.setUserUuid(userUuid);
235 }
236
237
242 public java.lang.String getUserName() {
243 return _workflowInstanceLink.getUserName();
244 }
245
246
251 public void setUserName(java.lang.String userName) {
252 _workflowInstanceLink.setUserName(userName);
253 }
254
255
260 public java.util.Date getCreateDate() {
261 return _workflowInstanceLink.getCreateDate();
262 }
263
264
269 public void setCreateDate(java.util.Date createDate) {
270 _workflowInstanceLink.setCreateDate(createDate);
271 }
272
273
278 public java.util.Date getModifiedDate() {
279 return _workflowInstanceLink.getModifiedDate();
280 }
281
282
287 public void setModifiedDate(java.util.Date modifiedDate) {
288 _workflowInstanceLink.setModifiedDate(modifiedDate);
289 }
290
291
296 public java.lang.String getClassName() {
297 return _workflowInstanceLink.getClassName();
298 }
299
300 public void setClassName(java.lang.String className) {
301 _workflowInstanceLink.setClassName(className);
302 }
303
304
309 public long getClassNameId() {
310 return _workflowInstanceLink.getClassNameId();
311 }
312
313
318 public void setClassNameId(long classNameId) {
319 _workflowInstanceLink.setClassNameId(classNameId);
320 }
321
322
327 public long getClassPK() {
328 return _workflowInstanceLink.getClassPK();
329 }
330
331
336 public void setClassPK(long classPK) {
337 _workflowInstanceLink.setClassPK(classPK);
338 }
339
340
345 public long getWorkflowInstanceId() {
346 return _workflowInstanceLink.getWorkflowInstanceId();
347 }
348
349
354 public void setWorkflowInstanceId(long workflowInstanceId) {
355 _workflowInstanceLink.setWorkflowInstanceId(workflowInstanceId);
356 }
357
358 public boolean isNew() {
359 return _workflowInstanceLink.isNew();
360 }
361
362 public void setNew(boolean n) {
363 _workflowInstanceLink.setNew(n);
364 }
365
366 public boolean isCachedModel() {
367 return _workflowInstanceLink.isCachedModel();
368 }
369
370 public void setCachedModel(boolean cachedModel) {
371 _workflowInstanceLink.setCachedModel(cachedModel);
372 }
373
374 public boolean isEscapedModel() {
375 return _workflowInstanceLink.isEscapedModel();
376 }
377
378 public java.io.Serializable getPrimaryKeyObj() {
379 return _workflowInstanceLink.getPrimaryKeyObj();
380 }
381
382 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
383 _workflowInstanceLink.setPrimaryKeyObj(primaryKeyObj);
384 }
385
386 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
387 return _workflowInstanceLink.getExpandoBridge();
388 }
389
390 public void setExpandoBridgeAttributes(
391 com.liferay.portal.service.ServiceContext serviceContext) {
392 _workflowInstanceLink.setExpandoBridgeAttributes(serviceContext);
393 }
394
395 @Override
396 public java.lang.Object clone() {
397 return new WorkflowInstanceLinkWrapper((WorkflowInstanceLink)_workflowInstanceLink.clone());
398 }
399
400 public int compareTo(
401 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
402 return _workflowInstanceLink.compareTo(workflowInstanceLink);
403 }
404
405 @Override
406 public int hashCode() {
407 return _workflowInstanceLink.hashCode();
408 }
409
410 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowInstanceLink> toCacheModel() {
411 return _workflowInstanceLink.toCacheModel();
412 }
413
414 public com.liferay.portal.model.WorkflowInstanceLink toEscapedModel() {
415 return new WorkflowInstanceLinkWrapper(_workflowInstanceLink.toEscapedModel());
416 }
417
418 public com.liferay.portal.model.WorkflowInstanceLink toUnescapedModel() {
419 return new WorkflowInstanceLinkWrapper(_workflowInstanceLink.toUnescapedModel());
420 }
421
422 @Override
423 public java.lang.String toString() {
424 return _workflowInstanceLink.toString();
425 }
426
427 public java.lang.String toXmlString() {
428 return _workflowInstanceLink.toXmlString();
429 }
430
431 public void persist()
432 throws com.liferay.portal.kernel.exception.SystemException {
433 _workflowInstanceLink.persist();
434 }
435
436 @Override
437 public boolean equals(Object obj) {
438 if (this == obj) {
439 return true;
440 }
441
442 if (!(obj instanceof WorkflowInstanceLinkWrapper)) {
443 return false;
444 }
445
446 WorkflowInstanceLinkWrapper workflowInstanceLinkWrapper = (WorkflowInstanceLinkWrapper)obj;
447
448 if (Validator.equals(_workflowInstanceLink,
449 workflowInstanceLinkWrapper._workflowInstanceLink)) {
450 return true;
451 }
452
453 return false;
454 }
455
456
459 public WorkflowInstanceLink getWrappedWorkflowInstanceLink() {
460 return _workflowInstanceLink;
461 }
462
463 public WorkflowInstanceLink getWrappedModel() {
464 return _workflowInstanceLink;
465 }
466
467 public void resetOriginalValues() {
468 _workflowInstanceLink.resetOriginalValues();
469 }
470
471 private WorkflowInstanceLink _workflowInstanceLink;
472 }