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.portlet.dynamicdatalists.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDLRecordVersion}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDLRecordVersion
026     * @generated
027     */
028    public class DDLRecordVersionWrapper implements DDLRecordVersion,
029            ModelWrapper<DDLRecordVersion> {
030            public DDLRecordVersionWrapper(DDLRecordVersion ddlRecordVersion) {
031                    _ddlRecordVersion = ddlRecordVersion;
032            }
033    
034            public Class<?> getModelClass() {
035                    return DDLRecordVersion.class;
036            }
037    
038            public String getModelClassName() {
039                    return DDLRecordVersion.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this d d l record version.
044            *
045            * @return the primary key of this d d l record version
046            */
047            public long getPrimaryKey() {
048                    return _ddlRecordVersion.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this d d l record version.
053            *
054            * @param primaryKey the primary key of this d d l record version
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _ddlRecordVersion.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the record version ID of this d d l record version.
062            *
063            * @return the record version ID of this d d l record version
064            */
065            public long getRecordVersionId() {
066                    return _ddlRecordVersion.getRecordVersionId();
067            }
068    
069            /**
070            * Sets the record version ID of this d d l record version.
071            *
072            * @param recordVersionId the record version ID of this d d l record version
073            */
074            public void setRecordVersionId(long recordVersionId) {
075                    _ddlRecordVersion.setRecordVersionId(recordVersionId);
076            }
077    
078            /**
079            * Returns the group ID of this d d l record version.
080            *
081            * @return the group ID of this d d l record version
082            */
083            public long getGroupId() {
084                    return _ddlRecordVersion.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this d d l record version.
089            *
090            * @param groupId the group ID of this d d l record version
091            */
092            public void setGroupId(long groupId) {
093                    _ddlRecordVersion.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the company ID of this d d l record version.
098            *
099            * @return the company ID of this d d l record version
100            */
101            public long getCompanyId() {
102                    return _ddlRecordVersion.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this d d l record version.
107            *
108            * @param companyId the company ID of this d d l record version
109            */
110            public void setCompanyId(long companyId) {
111                    _ddlRecordVersion.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the user ID of this d d l record version.
116            *
117            * @return the user ID of this d d l record version
118            */
119            public long getUserId() {
120                    return _ddlRecordVersion.getUserId();
121            }
122    
123            /**
124            * Sets the user ID of this d d l record version.
125            *
126            * @param userId the user ID of this d d l record version
127            */
128            public void setUserId(long userId) {
129                    _ddlRecordVersion.setUserId(userId);
130            }
131    
132            /**
133            * Returns the user uuid of this d d l record version.
134            *
135            * @return the user uuid of this d d l record version
136            * @throws SystemException if a system exception occurred
137            */
138            public java.lang.String getUserUuid()
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _ddlRecordVersion.getUserUuid();
141            }
142    
143            /**
144            * Sets the user uuid of this d d l record version.
145            *
146            * @param userUuid the user uuid of this d d l record version
147            */
148            public void setUserUuid(java.lang.String userUuid) {
149                    _ddlRecordVersion.setUserUuid(userUuid);
150            }
151    
152            /**
153            * Returns the user name of this d d l record version.
154            *
155            * @return the user name of this d d l record version
156            */
157            public java.lang.String getUserName() {
158                    return _ddlRecordVersion.getUserName();
159            }
160    
161            /**
162            * Sets the user name of this d d l record version.
163            *
164            * @param userName the user name of this d d l record version
165            */
166            public void setUserName(java.lang.String userName) {
167                    _ddlRecordVersion.setUserName(userName);
168            }
169    
170            /**
171            * Returns the create date of this d d l record version.
172            *
173            * @return the create date of this d d l record version
174            */
175            public java.util.Date getCreateDate() {
176                    return _ddlRecordVersion.getCreateDate();
177            }
178    
179            /**
180            * Sets the create date of this d d l record version.
181            *
182            * @param createDate the create date of this d d l record version
183            */
184            public void setCreateDate(java.util.Date createDate) {
185                    _ddlRecordVersion.setCreateDate(createDate);
186            }
187    
188            /**
189            * Returns the d d m storage ID of this d d l record version.
190            *
191            * @return the d d m storage ID of this d d l record version
192            */
193            public long getDDMStorageId() {
194                    return _ddlRecordVersion.getDDMStorageId();
195            }
196    
197            /**
198            * Sets the d d m storage ID of this d d l record version.
199            *
200            * @param DDMStorageId the d d m storage ID of this d d l record version
201            */
202            public void setDDMStorageId(long DDMStorageId) {
203                    _ddlRecordVersion.setDDMStorageId(DDMStorageId);
204            }
205    
206            /**
207            * Returns the record set ID of this d d l record version.
208            *
209            * @return the record set ID of this d d l record version
210            */
211            public long getRecordSetId() {
212                    return _ddlRecordVersion.getRecordSetId();
213            }
214    
215            /**
216            * Sets the record set ID of this d d l record version.
217            *
218            * @param recordSetId the record set ID of this d d l record version
219            */
220            public void setRecordSetId(long recordSetId) {
221                    _ddlRecordVersion.setRecordSetId(recordSetId);
222            }
223    
224            /**
225            * Returns the record ID of this d d l record version.
226            *
227            * @return the record ID of this d d l record version
228            */
229            public long getRecordId() {
230                    return _ddlRecordVersion.getRecordId();
231            }
232    
233            /**
234            * Sets the record ID of this d d l record version.
235            *
236            * @param recordId the record ID of this d d l record version
237            */
238            public void setRecordId(long recordId) {
239                    _ddlRecordVersion.setRecordId(recordId);
240            }
241    
242            /**
243            * Returns the version of this d d l record version.
244            *
245            * @return the version of this d d l record version
246            */
247            public java.lang.String getVersion() {
248                    return _ddlRecordVersion.getVersion();
249            }
250    
251            /**
252            * Sets the version of this d d l record version.
253            *
254            * @param version the version of this d d l record version
255            */
256            public void setVersion(java.lang.String version) {
257                    _ddlRecordVersion.setVersion(version);
258            }
259    
260            /**
261            * Returns the display index of this d d l record version.
262            *
263            * @return the display index of this d d l record version
264            */
265            public int getDisplayIndex() {
266                    return _ddlRecordVersion.getDisplayIndex();
267            }
268    
269            /**
270            * Sets the display index of this d d l record version.
271            *
272            * @param displayIndex the display index of this d d l record version
273            */
274            public void setDisplayIndex(int displayIndex) {
275                    _ddlRecordVersion.setDisplayIndex(displayIndex);
276            }
277    
278            /**
279            * Returns the status of this d d l record version.
280            *
281            * @return the status of this d d l record version
282            */
283            public int getStatus() {
284                    return _ddlRecordVersion.getStatus();
285            }
286    
287            /**
288            * Sets the status of this d d l record version.
289            *
290            * @param status the status of this d d l record version
291            */
292            public void setStatus(int status) {
293                    _ddlRecordVersion.setStatus(status);
294            }
295    
296            /**
297            * Returns the status by user ID of this d d l record version.
298            *
299            * @return the status by user ID of this d d l record version
300            */
301            public long getStatusByUserId() {
302                    return _ddlRecordVersion.getStatusByUserId();
303            }
304    
305            /**
306            * Sets the status by user ID of this d d l record version.
307            *
308            * @param statusByUserId the status by user ID of this d d l record version
309            */
310            public void setStatusByUserId(long statusByUserId) {
311                    _ddlRecordVersion.setStatusByUserId(statusByUserId);
312            }
313    
314            /**
315            * Returns the status by user uuid of this d d l record version.
316            *
317            * @return the status by user uuid of this d d l record version
318            * @throws SystemException if a system exception occurred
319            */
320            public java.lang.String getStatusByUserUuid()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _ddlRecordVersion.getStatusByUserUuid();
323            }
324    
325            /**
326            * Sets the status by user uuid of this d d l record version.
327            *
328            * @param statusByUserUuid the status by user uuid of this d d l record version
329            */
330            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
331                    _ddlRecordVersion.setStatusByUserUuid(statusByUserUuid);
332            }
333    
334            /**
335            * Returns the status by user name of this d d l record version.
336            *
337            * @return the status by user name of this d d l record version
338            */
339            public java.lang.String getStatusByUserName() {
340                    return _ddlRecordVersion.getStatusByUserName();
341            }
342    
343            /**
344            * Sets the status by user name of this d d l record version.
345            *
346            * @param statusByUserName the status by user name of this d d l record version
347            */
348            public void setStatusByUserName(java.lang.String statusByUserName) {
349                    _ddlRecordVersion.setStatusByUserName(statusByUserName);
350            }
351    
352            /**
353            * Returns the status date of this d d l record version.
354            *
355            * @return the status date of this d d l record version
356            */
357            public java.util.Date getStatusDate() {
358                    return _ddlRecordVersion.getStatusDate();
359            }
360    
361            /**
362            * Sets the status date of this d d l record version.
363            *
364            * @param statusDate the status date of this d d l record version
365            */
366            public void setStatusDate(java.util.Date statusDate) {
367                    _ddlRecordVersion.setStatusDate(statusDate);
368            }
369    
370            /**
371            * @deprecated Renamed to {@link #isApproved()}
372            */
373            public boolean getApproved() {
374                    return _ddlRecordVersion.getApproved();
375            }
376    
377            /**
378            * Returns <code>true</code> if this d d l record version is approved.
379            *
380            * @return <code>true</code> if this d d l record version is approved; <code>false</code> otherwise
381            */
382            public boolean isApproved() {
383                    return _ddlRecordVersion.isApproved();
384            }
385    
386            /**
387            * Returns <code>true</code> if this d d l record version is a draft.
388            *
389            * @return <code>true</code> if this d d l record version is a draft; <code>false</code> otherwise
390            */
391            public boolean isDraft() {
392                    return _ddlRecordVersion.isDraft();
393            }
394    
395            /**
396            * Returns <code>true</code> if this d d l record version is expired.
397            *
398            * @return <code>true</code> if this d d l record version is expired; <code>false</code> otherwise
399            */
400            public boolean isExpired() {
401                    return _ddlRecordVersion.isExpired();
402            }
403    
404            /**
405            * Returns <code>true</code> if this d d l record version is pending.
406            *
407            * @return <code>true</code> if this d d l record version is pending; <code>false</code> otherwise
408            */
409            public boolean isPending() {
410                    return _ddlRecordVersion.isPending();
411            }
412    
413            public boolean isNew() {
414                    return _ddlRecordVersion.isNew();
415            }
416    
417            public void setNew(boolean n) {
418                    _ddlRecordVersion.setNew(n);
419            }
420    
421            public boolean isCachedModel() {
422                    return _ddlRecordVersion.isCachedModel();
423            }
424    
425            public void setCachedModel(boolean cachedModel) {
426                    _ddlRecordVersion.setCachedModel(cachedModel);
427            }
428    
429            public boolean isEscapedModel() {
430                    return _ddlRecordVersion.isEscapedModel();
431            }
432    
433            public java.io.Serializable getPrimaryKeyObj() {
434                    return _ddlRecordVersion.getPrimaryKeyObj();
435            }
436    
437            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
438                    _ddlRecordVersion.setPrimaryKeyObj(primaryKeyObj);
439            }
440    
441            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
442                    return _ddlRecordVersion.getExpandoBridge();
443            }
444    
445            public void setExpandoBridgeAttributes(
446                    com.liferay.portal.service.ServiceContext serviceContext) {
447                    _ddlRecordVersion.setExpandoBridgeAttributes(serviceContext);
448            }
449    
450            @Override
451            public java.lang.Object clone() {
452                    return new DDLRecordVersionWrapper((DDLRecordVersion)_ddlRecordVersion.clone());
453            }
454    
455            public int compareTo(
456                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) {
457                    return _ddlRecordVersion.compareTo(ddlRecordVersion);
458            }
459    
460            @Override
461            public int hashCode() {
462                    return _ddlRecordVersion.hashCode();
463            }
464    
465            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> toCacheModel() {
466                    return _ddlRecordVersion.toCacheModel();
467            }
468    
469            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion toEscapedModel() {
470                    return new DDLRecordVersionWrapper(_ddlRecordVersion.toEscapedModel());
471            }
472    
473            @Override
474            public java.lang.String toString() {
475                    return _ddlRecordVersion.toString();
476            }
477    
478            public java.lang.String toXmlString() {
479                    return _ddlRecordVersion.toXmlString();
480            }
481    
482            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord()
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    return _ddlRecordVersion.getRecord();
486            }
487    
488            /**
489             * @deprecated Renamed to {@link #getWrappedModel}
490             */
491            public DDLRecordVersion getWrappedDDLRecordVersion() {
492                    return _ddlRecordVersion;
493            }
494    
495            public DDLRecordVersion getWrappedModel() {
496                    return _ddlRecordVersion;
497            }
498    
499            public void resetOriginalValues() {
500                    _ddlRecordVersion.resetOriginalValues();
501            }
502    
503            private DDLRecordVersion _ddlRecordVersion;
504    }