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    /**
018     * <p>
019     * This class is a wrapper for {@link WorkflowDefinitionLink}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WorkflowDefinitionLink
024     * @generated
025     */
026    public class WorkflowDefinitionLinkWrapper implements WorkflowDefinitionLink,
027            ModelWrapper<WorkflowDefinitionLink> {
028            public WorkflowDefinitionLinkWrapper(
029                    WorkflowDefinitionLink workflowDefinitionLink) {
030                    _workflowDefinitionLink = workflowDefinitionLink;
031            }
032    
033            public Class<?> getModelClass() {
034                    return WorkflowDefinitionLink.class;
035            }
036    
037            public String getModelClassName() {
038                    return WorkflowDefinitionLink.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this workflow definition link.
043            *
044            * @return the primary key of this workflow definition link
045            */
046            public long getPrimaryKey() {
047                    return _workflowDefinitionLink.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this workflow definition link.
052            *
053            * @param primaryKey the primary key of this workflow definition link
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _workflowDefinitionLink.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the workflow definition link ID of this workflow definition link.
061            *
062            * @return the workflow definition link ID of this workflow definition link
063            */
064            public long getWorkflowDefinitionLinkId() {
065                    return _workflowDefinitionLink.getWorkflowDefinitionLinkId();
066            }
067    
068            /**
069            * Sets the workflow definition link ID of this workflow definition link.
070            *
071            * @param workflowDefinitionLinkId the workflow definition link ID of this workflow definition link
072            */
073            public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
074                    _workflowDefinitionLink.setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
075            }
076    
077            /**
078            * Returns the group ID of this workflow definition link.
079            *
080            * @return the group ID of this workflow definition link
081            */
082            public long getGroupId() {
083                    return _workflowDefinitionLink.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this workflow definition link.
088            *
089            * @param groupId the group ID of this workflow definition link
090            */
091            public void setGroupId(long groupId) {
092                    _workflowDefinitionLink.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the company ID of this workflow definition link.
097            *
098            * @return the company ID of this workflow definition link
099            */
100            public long getCompanyId() {
101                    return _workflowDefinitionLink.getCompanyId();
102            }
103    
104            /**
105            * Sets the company ID of this workflow definition link.
106            *
107            * @param companyId the company ID of this workflow definition link
108            */
109            public void setCompanyId(long companyId) {
110                    _workflowDefinitionLink.setCompanyId(companyId);
111            }
112    
113            /**
114            * Returns the user ID of this workflow definition link.
115            *
116            * @return the user ID of this workflow definition link
117            */
118            public long getUserId() {
119                    return _workflowDefinitionLink.getUserId();
120            }
121    
122            /**
123            * Sets the user ID of this workflow definition link.
124            *
125            * @param userId the user ID of this workflow definition link
126            */
127            public void setUserId(long userId) {
128                    _workflowDefinitionLink.setUserId(userId);
129            }
130    
131            /**
132            * Returns the user uuid of this workflow definition link.
133            *
134            * @return the user uuid of this workflow definition link
135            * @throws SystemException if a system exception occurred
136            */
137            public java.lang.String getUserUuid()
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _workflowDefinitionLink.getUserUuid();
140            }
141    
142            /**
143            * Sets the user uuid of this workflow definition link.
144            *
145            * @param userUuid the user uuid of this workflow definition link
146            */
147            public void setUserUuid(java.lang.String userUuid) {
148                    _workflowDefinitionLink.setUserUuid(userUuid);
149            }
150    
151            /**
152            * Returns the user name of this workflow definition link.
153            *
154            * @return the user name of this workflow definition link
155            */
156            public java.lang.String getUserName() {
157                    return _workflowDefinitionLink.getUserName();
158            }
159    
160            /**
161            * Sets the user name of this workflow definition link.
162            *
163            * @param userName the user name of this workflow definition link
164            */
165            public void setUserName(java.lang.String userName) {
166                    _workflowDefinitionLink.setUserName(userName);
167            }
168    
169            /**
170            * Returns the create date of this workflow definition link.
171            *
172            * @return the create date of this workflow definition link
173            */
174            public java.util.Date getCreateDate() {
175                    return _workflowDefinitionLink.getCreateDate();
176            }
177    
178            /**
179            * Sets the create date of this workflow definition link.
180            *
181            * @param createDate the create date of this workflow definition link
182            */
183            public void setCreateDate(java.util.Date createDate) {
184                    _workflowDefinitionLink.setCreateDate(createDate);
185            }
186    
187            /**
188            * Returns the modified date of this workflow definition link.
189            *
190            * @return the modified date of this workflow definition link
191            */
192            public java.util.Date getModifiedDate() {
193                    return _workflowDefinitionLink.getModifiedDate();
194            }
195    
196            /**
197            * Sets the modified date of this workflow definition link.
198            *
199            * @param modifiedDate the modified date of this workflow definition link
200            */
201            public void setModifiedDate(java.util.Date modifiedDate) {
202                    _workflowDefinitionLink.setModifiedDate(modifiedDate);
203            }
204    
205            /**
206            * Returns the fully qualified class name of this workflow definition link.
207            *
208            * @return the fully qualified class name of this workflow definition link
209            */
210            public java.lang.String getClassName() {
211                    return _workflowDefinitionLink.getClassName();
212            }
213    
214            /**
215            * Returns the class name ID of this workflow definition link.
216            *
217            * @return the class name ID of this workflow definition link
218            */
219            public long getClassNameId() {
220                    return _workflowDefinitionLink.getClassNameId();
221            }
222    
223            /**
224            * Sets the class name ID of this workflow definition link.
225            *
226            * @param classNameId the class name ID of this workflow definition link
227            */
228            public void setClassNameId(long classNameId) {
229                    _workflowDefinitionLink.setClassNameId(classNameId);
230            }
231    
232            /**
233            * Returns the class p k of this workflow definition link.
234            *
235            * @return the class p k of this workflow definition link
236            */
237            public long getClassPK() {
238                    return _workflowDefinitionLink.getClassPK();
239            }
240    
241            /**
242            * Sets the class p k of this workflow definition link.
243            *
244            * @param classPK the class p k of this workflow definition link
245            */
246            public void setClassPK(long classPK) {
247                    _workflowDefinitionLink.setClassPK(classPK);
248            }
249    
250            /**
251            * Returns the type p k of this workflow definition link.
252            *
253            * @return the type p k of this workflow definition link
254            */
255            public long getTypePK() {
256                    return _workflowDefinitionLink.getTypePK();
257            }
258    
259            /**
260            * Sets the type p k of this workflow definition link.
261            *
262            * @param typePK the type p k of this workflow definition link
263            */
264            public void setTypePK(long typePK) {
265                    _workflowDefinitionLink.setTypePK(typePK);
266            }
267    
268            /**
269            * Returns the workflow definition name of this workflow definition link.
270            *
271            * @return the workflow definition name of this workflow definition link
272            */
273            public java.lang.String getWorkflowDefinitionName() {
274                    return _workflowDefinitionLink.getWorkflowDefinitionName();
275            }
276    
277            /**
278            * Sets the workflow definition name of this workflow definition link.
279            *
280            * @param workflowDefinitionName the workflow definition name of this workflow definition link
281            */
282            public void setWorkflowDefinitionName(
283                    java.lang.String workflowDefinitionName) {
284                    _workflowDefinitionLink.setWorkflowDefinitionName(workflowDefinitionName);
285            }
286    
287            /**
288            * Returns the workflow definition version of this workflow definition link.
289            *
290            * @return the workflow definition version of this workflow definition link
291            */
292            public int getWorkflowDefinitionVersion() {
293                    return _workflowDefinitionLink.getWorkflowDefinitionVersion();
294            }
295    
296            /**
297            * Sets the workflow definition version of this workflow definition link.
298            *
299            * @param workflowDefinitionVersion the workflow definition version of this workflow definition link
300            */
301            public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
302                    _workflowDefinitionLink.setWorkflowDefinitionVersion(workflowDefinitionVersion);
303            }
304    
305            public boolean isNew() {
306                    return _workflowDefinitionLink.isNew();
307            }
308    
309            public void setNew(boolean n) {
310                    _workflowDefinitionLink.setNew(n);
311            }
312    
313            public boolean isCachedModel() {
314                    return _workflowDefinitionLink.isCachedModel();
315            }
316    
317            public void setCachedModel(boolean cachedModel) {
318                    _workflowDefinitionLink.setCachedModel(cachedModel);
319            }
320    
321            public boolean isEscapedModel() {
322                    return _workflowDefinitionLink.isEscapedModel();
323            }
324    
325            public java.io.Serializable getPrimaryKeyObj() {
326                    return _workflowDefinitionLink.getPrimaryKeyObj();
327            }
328    
329            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
330                    _workflowDefinitionLink.setPrimaryKeyObj(primaryKeyObj);
331            }
332    
333            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
334                    return _workflowDefinitionLink.getExpandoBridge();
335            }
336    
337            public void setExpandoBridgeAttributes(
338                    com.liferay.portal.service.ServiceContext serviceContext) {
339                    _workflowDefinitionLink.setExpandoBridgeAttributes(serviceContext);
340            }
341    
342            @Override
343            public java.lang.Object clone() {
344                    return new WorkflowDefinitionLinkWrapper((WorkflowDefinitionLink)_workflowDefinitionLink.clone());
345            }
346    
347            public int compareTo(
348                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
349                    return _workflowDefinitionLink.compareTo(workflowDefinitionLink);
350            }
351    
352            @Override
353            public int hashCode() {
354                    return _workflowDefinitionLink.hashCode();
355            }
356    
357            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowDefinitionLink> toCacheModel() {
358                    return _workflowDefinitionLink.toCacheModel();
359            }
360    
361            public com.liferay.portal.model.WorkflowDefinitionLink toEscapedModel() {
362                    return new WorkflowDefinitionLinkWrapper(_workflowDefinitionLink.toEscapedModel());
363            }
364    
365            @Override
366            public java.lang.String toString() {
367                    return _workflowDefinitionLink.toString();
368            }
369    
370            public java.lang.String toXmlString() {
371                    return _workflowDefinitionLink.toXmlString();
372            }
373    
374            public void persist()
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    _workflowDefinitionLink.persist();
377            }
378    
379            /**
380             * @deprecated Renamed to {@link #getWrappedModel}
381             */
382            public WorkflowDefinitionLink getWrappedWorkflowDefinitionLink() {
383                    return _workflowDefinitionLink;
384            }
385    
386            public WorkflowDefinitionLink getWrappedModel() {
387                    return _workflowDefinitionLink;
388            }
389    
390            public void resetOriginalValues() {
391                    _workflowDefinitionLink.resetOriginalValues();
392            }
393    
394            private WorkflowDefinitionLink _workflowDefinitionLink;
395    }