001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
022     * <p>
023     * This class is a wrapper for {@link WorkflowInstanceLink}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       WorkflowInstanceLink
028     * @generated
029     */
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            /**
126            * Returns the primary key of this workflow instance link.
127            *
128            * @return the primary key of this workflow instance link
129            */
130            public long getPrimaryKey() {
131                    return _workflowInstanceLink.getPrimaryKey();
132            }
133    
134            /**
135            * Sets the primary key of this workflow instance link.
136            *
137            * @param primaryKey the primary key of this workflow instance link
138            */
139            public void setPrimaryKey(long primaryKey) {
140                    _workflowInstanceLink.setPrimaryKey(primaryKey);
141            }
142    
143            /**
144            * Returns the workflow instance link ID of this workflow instance link.
145            *
146            * @return the workflow instance link ID of this workflow instance link
147            */
148            public long getWorkflowInstanceLinkId() {
149                    return _workflowInstanceLink.getWorkflowInstanceLinkId();
150            }
151    
152            /**
153            * Sets the workflow instance link ID of this workflow instance link.
154            *
155            * @param workflowInstanceLinkId the workflow instance link ID of this workflow instance link
156            */
157            public void setWorkflowInstanceLinkId(long workflowInstanceLinkId) {
158                    _workflowInstanceLink.setWorkflowInstanceLinkId(workflowInstanceLinkId);
159            }
160    
161            /**
162            * Returns the group ID of this workflow instance link.
163            *
164            * @return the group ID of this workflow instance link
165            */
166            public long getGroupId() {
167                    return _workflowInstanceLink.getGroupId();
168            }
169    
170            /**
171            * Sets the group ID of this workflow instance link.
172            *
173            * @param groupId the group ID of this workflow instance link
174            */
175            public void setGroupId(long groupId) {
176                    _workflowInstanceLink.setGroupId(groupId);
177            }
178    
179            /**
180            * Returns the company ID of this workflow instance link.
181            *
182            * @return the company ID of this workflow instance link
183            */
184            public long getCompanyId() {
185                    return _workflowInstanceLink.getCompanyId();
186            }
187    
188            /**
189            * Sets the company ID of this workflow instance link.
190            *
191            * @param companyId the company ID of this workflow instance link
192            */
193            public void setCompanyId(long companyId) {
194                    _workflowInstanceLink.setCompanyId(companyId);
195            }
196    
197            /**
198            * Returns the user ID of this workflow instance link.
199            *
200            * @return the user ID of this workflow instance link
201            */
202            public long getUserId() {
203                    return _workflowInstanceLink.getUserId();
204            }
205    
206            /**
207            * Sets the user ID of this workflow instance link.
208            *
209            * @param userId the user ID of this workflow instance link
210            */
211            public void setUserId(long userId) {
212                    _workflowInstanceLink.setUserId(userId);
213            }
214    
215            /**
216            * Returns the user uuid of this workflow instance link.
217            *
218            * @return the user uuid of this workflow instance link
219            * @throws SystemException if a system exception occurred
220            */
221            public java.lang.String getUserUuid()
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _workflowInstanceLink.getUserUuid();
224            }
225    
226            /**
227            * Sets the user uuid of this workflow instance link.
228            *
229            * @param userUuid the user uuid of this workflow instance link
230            */
231            public void setUserUuid(java.lang.String userUuid) {
232                    _workflowInstanceLink.setUserUuid(userUuid);
233            }
234    
235            /**
236            * Returns the user name of this workflow instance link.
237            *
238            * @return the user name of this workflow instance link
239            */
240            public java.lang.String getUserName() {
241                    return _workflowInstanceLink.getUserName();
242            }
243    
244            /**
245            * Sets the user name of this workflow instance link.
246            *
247            * @param userName the user name of this workflow instance link
248            */
249            public void setUserName(java.lang.String userName) {
250                    _workflowInstanceLink.setUserName(userName);
251            }
252    
253            /**
254            * Returns the create date of this workflow instance link.
255            *
256            * @return the create date of this workflow instance link
257            */
258            public java.util.Date getCreateDate() {
259                    return _workflowInstanceLink.getCreateDate();
260            }
261    
262            /**
263            * Sets the create date of this workflow instance link.
264            *
265            * @param createDate the create date of this workflow instance link
266            */
267            public void setCreateDate(java.util.Date createDate) {
268                    _workflowInstanceLink.setCreateDate(createDate);
269            }
270    
271            /**
272            * Returns the modified date of this workflow instance link.
273            *
274            * @return the modified date of this workflow instance link
275            */
276            public java.util.Date getModifiedDate() {
277                    return _workflowInstanceLink.getModifiedDate();
278            }
279    
280            /**
281            * Sets the modified date of this workflow instance link.
282            *
283            * @param modifiedDate the modified date of this workflow instance link
284            */
285            public void setModifiedDate(java.util.Date modifiedDate) {
286                    _workflowInstanceLink.setModifiedDate(modifiedDate);
287            }
288    
289            /**
290            * Returns the fully qualified class name of this workflow instance link.
291            *
292            * @return the fully qualified class name of this workflow instance link
293            */
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            /**
303            * Returns the class name ID of this workflow instance link.
304            *
305            * @return the class name ID of this workflow instance link
306            */
307            public long getClassNameId() {
308                    return _workflowInstanceLink.getClassNameId();
309            }
310    
311            /**
312            * Sets the class name ID of this workflow instance link.
313            *
314            * @param classNameId the class name ID of this workflow instance link
315            */
316            public void setClassNameId(long classNameId) {
317                    _workflowInstanceLink.setClassNameId(classNameId);
318            }
319    
320            /**
321            * Returns the class p k of this workflow instance link.
322            *
323            * @return the class p k of this workflow instance link
324            */
325            public long getClassPK() {
326                    return _workflowInstanceLink.getClassPK();
327            }
328    
329            /**
330            * Sets the class p k of this workflow instance link.
331            *
332            * @param classPK the class p k of this workflow instance link
333            */
334            public void setClassPK(long classPK) {
335                    _workflowInstanceLink.setClassPK(classPK);
336            }
337    
338            /**
339            * Returns the workflow instance ID of this workflow instance link.
340            *
341            * @return the workflow instance ID of this workflow instance link
342            */
343            public long getWorkflowInstanceId() {
344                    return _workflowInstanceLink.getWorkflowInstanceId();
345            }
346    
347            /**
348            * Sets the workflow instance ID of this workflow instance link.
349            *
350            * @param workflowInstanceId the workflow instance ID of this workflow instance link
351            */
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.service.ServiceContext serviceContext) {
390                    _workflowInstanceLink.setExpandoBridgeAttributes(serviceContext);
391            }
392    
393            @Override
394            public java.lang.Object clone() {
395                    return new WorkflowInstanceLinkWrapper((WorkflowInstanceLink)_workflowInstanceLink.clone());
396            }
397    
398            public int compareTo(
399                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
400                    return _workflowInstanceLink.compareTo(workflowInstanceLink);
401            }
402    
403            @Override
404            public int hashCode() {
405                    return _workflowInstanceLink.hashCode();
406            }
407    
408            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowInstanceLink> toCacheModel() {
409                    return _workflowInstanceLink.toCacheModel();
410            }
411    
412            public com.liferay.portal.model.WorkflowInstanceLink toEscapedModel() {
413                    return new WorkflowInstanceLinkWrapper(_workflowInstanceLink.toEscapedModel());
414            }
415    
416            @Override
417            public java.lang.String toString() {
418                    return _workflowInstanceLink.toString();
419            }
420    
421            public java.lang.String toXmlString() {
422                    return _workflowInstanceLink.toXmlString();
423            }
424    
425            public void persist()
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    _workflowInstanceLink.persist();
428            }
429    
430            /**
431             * @deprecated Renamed to {@link #getWrappedModel}
432             */
433            public WorkflowInstanceLink getWrappedWorkflowInstanceLink() {
434                    return _workflowInstanceLink;
435            }
436    
437            public WorkflowInstanceLink getWrappedModel() {
438                    return _workflowInstanceLink;
439            }
440    
441            public void resetOriginalValues() {
442                    _workflowInstanceLink.resetOriginalValues();
443            }
444    
445            private WorkflowInstanceLink _workflowInstanceLink;
446    }