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