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