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