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