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