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