001    /**
002     * Copyright (c) 2000-2013 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.portal.model;
016    
017    import java.util.Date;
018    import java.util.HashMap;
019    import java.util.Map;
020    
021    /**
022     * <p>
023     * This class is a wrapper for {@link WebDAVProps}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       WebDAVProps
028     * @generated
029     */
030    public class WebDAVPropsWrapper implements WebDAVProps,
031            ModelWrapper<WebDAVProps> {
032            public WebDAVPropsWrapper(WebDAVProps webDAVProps) {
033                    _webDAVProps = webDAVProps;
034            }
035    
036            public Class<?> getModelClass() {
037                    return WebDAVProps.class;
038            }
039    
040            public String getModelClassName() {
041                    return WebDAVProps.class.getName();
042            }
043    
044            public Map<String, Object> getModelAttributes() {
045                    Map<String, Object> attributes = new HashMap<String, Object>();
046    
047                    attributes.put("webDavPropsId", getWebDavPropsId());
048                    attributes.put("companyId", getCompanyId());
049                    attributes.put("createDate", getCreateDate());
050                    attributes.put("modifiedDate", getModifiedDate());
051                    attributes.put("classNameId", getClassNameId());
052                    attributes.put("classPK", getClassPK());
053                    attributes.put("props", getProps());
054    
055                    return attributes;
056            }
057    
058            public void setModelAttributes(Map<String, Object> attributes) {
059                    Long webDavPropsId = (Long)attributes.get("webDavPropsId");
060    
061                    if (webDavPropsId != null) {
062                            setWebDavPropsId(webDavPropsId);
063                    }
064    
065                    Long companyId = (Long)attributes.get("companyId");
066    
067                    if (companyId != null) {
068                            setCompanyId(companyId);
069                    }
070    
071                    Date createDate = (Date)attributes.get("createDate");
072    
073                    if (createDate != null) {
074                            setCreateDate(createDate);
075                    }
076    
077                    Date modifiedDate = (Date)attributes.get("modifiedDate");
078    
079                    if (modifiedDate != null) {
080                            setModifiedDate(modifiedDate);
081                    }
082    
083                    Long classNameId = (Long)attributes.get("classNameId");
084    
085                    if (classNameId != null) {
086                            setClassNameId(classNameId);
087                    }
088    
089                    Long classPK = (Long)attributes.get("classPK");
090    
091                    if (classPK != null) {
092                            setClassPK(classPK);
093                    }
094    
095                    String props = (String)attributes.get("props");
096    
097                    if (props != null) {
098                            setProps(props);
099                    }
100            }
101    
102            /**
103            * Returns the primary key of this web d a v props.
104            *
105            * @return the primary key of this web d a v props
106            */
107            public long getPrimaryKey() {
108                    return _webDAVProps.getPrimaryKey();
109            }
110    
111            /**
112            * Sets the primary key of this web d a v props.
113            *
114            * @param primaryKey the primary key of this web d a v props
115            */
116            public void setPrimaryKey(long primaryKey) {
117                    _webDAVProps.setPrimaryKey(primaryKey);
118            }
119    
120            /**
121            * Returns the web dav props ID of this web d a v props.
122            *
123            * @return the web dav props ID of this web d a v props
124            */
125            public long getWebDavPropsId() {
126                    return _webDAVProps.getWebDavPropsId();
127            }
128    
129            /**
130            * Sets the web dav props ID of this web d a v props.
131            *
132            * @param webDavPropsId the web dav props ID of this web d a v props
133            */
134            public void setWebDavPropsId(long webDavPropsId) {
135                    _webDAVProps.setWebDavPropsId(webDavPropsId);
136            }
137    
138            /**
139            * Returns the company ID of this web d a v props.
140            *
141            * @return the company ID of this web d a v props
142            */
143            public long getCompanyId() {
144                    return _webDAVProps.getCompanyId();
145            }
146    
147            /**
148            * Sets the company ID of this web d a v props.
149            *
150            * @param companyId the company ID of this web d a v props
151            */
152            public void setCompanyId(long companyId) {
153                    _webDAVProps.setCompanyId(companyId);
154            }
155    
156            /**
157            * Returns the create date of this web d a v props.
158            *
159            * @return the create date of this web d a v props
160            */
161            public java.util.Date getCreateDate() {
162                    return _webDAVProps.getCreateDate();
163            }
164    
165            /**
166            * Sets the create date of this web d a v props.
167            *
168            * @param createDate the create date of this web d a v props
169            */
170            public void setCreateDate(java.util.Date createDate) {
171                    _webDAVProps.setCreateDate(createDate);
172            }
173    
174            /**
175            * Returns the modified date of this web d a v props.
176            *
177            * @return the modified date of this web d a v props
178            */
179            public java.util.Date getModifiedDate() {
180                    return _webDAVProps.getModifiedDate();
181            }
182    
183            /**
184            * Sets the modified date of this web d a v props.
185            *
186            * @param modifiedDate the modified date of this web d a v props
187            */
188            public void setModifiedDate(java.util.Date modifiedDate) {
189                    _webDAVProps.setModifiedDate(modifiedDate);
190            }
191    
192            /**
193            * Returns the fully qualified class name of this web d a v props.
194            *
195            * @return the fully qualified class name of this web d a v props
196            */
197            public java.lang.String getClassName() {
198                    return _webDAVProps.getClassName();
199            }
200    
201            public void setClassName(java.lang.String className) {
202                    _webDAVProps.setClassName(className);
203            }
204    
205            /**
206            * Returns the class name ID of this web d a v props.
207            *
208            * @return the class name ID of this web d a v props
209            */
210            public long getClassNameId() {
211                    return _webDAVProps.getClassNameId();
212            }
213    
214            /**
215            * Sets the class name ID of this web d a v props.
216            *
217            * @param classNameId the class name ID of this web d a v props
218            */
219            public void setClassNameId(long classNameId) {
220                    _webDAVProps.setClassNameId(classNameId);
221            }
222    
223            /**
224            * Returns the class p k of this web d a v props.
225            *
226            * @return the class p k of this web d a v props
227            */
228            public long getClassPK() {
229                    return _webDAVProps.getClassPK();
230            }
231    
232            /**
233            * Sets the class p k of this web d a v props.
234            *
235            * @param classPK the class p k of this web d a v props
236            */
237            public void setClassPK(long classPK) {
238                    _webDAVProps.setClassPK(classPK);
239            }
240    
241            /**
242            * Returns the props of this web d a v props.
243            *
244            * @return the props of this web d a v props
245            */
246            public java.lang.String getProps() {
247                    return _webDAVProps.getProps();
248            }
249    
250            /**
251            * Sets the props of this web d a v props.
252            *
253            * @param props the props of this web d a v props
254            */
255            public void setProps(java.lang.String props) {
256                    _webDAVProps.setProps(props);
257            }
258    
259            public boolean isNew() {
260                    return _webDAVProps.isNew();
261            }
262    
263            public void setNew(boolean n) {
264                    _webDAVProps.setNew(n);
265            }
266    
267            public boolean isCachedModel() {
268                    return _webDAVProps.isCachedModel();
269            }
270    
271            public void setCachedModel(boolean cachedModel) {
272                    _webDAVProps.setCachedModel(cachedModel);
273            }
274    
275            public boolean isEscapedModel() {
276                    return _webDAVProps.isEscapedModel();
277            }
278    
279            public java.io.Serializable getPrimaryKeyObj() {
280                    return _webDAVProps.getPrimaryKeyObj();
281            }
282    
283            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
284                    _webDAVProps.setPrimaryKeyObj(primaryKeyObj);
285            }
286    
287            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
288                    return _webDAVProps.getExpandoBridge();
289            }
290    
291            public void setExpandoBridgeAttributes(
292                    com.liferay.portal.model.BaseModel<?> baseModel) {
293                    _webDAVProps.setExpandoBridgeAttributes(baseModel);
294            }
295    
296            public void setExpandoBridgeAttributes(
297                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
298                    _webDAVProps.setExpandoBridgeAttributes(expandoBridge);
299            }
300    
301            public void setExpandoBridgeAttributes(
302                    com.liferay.portal.service.ServiceContext serviceContext) {
303                    _webDAVProps.setExpandoBridgeAttributes(serviceContext);
304            }
305    
306            @Override
307            public java.lang.Object clone() {
308                    return new WebDAVPropsWrapper((WebDAVProps)_webDAVProps.clone());
309            }
310    
311            public int compareTo(com.liferay.portal.model.WebDAVProps webDAVProps) {
312                    return _webDAVProps.compareTo(webDAVProps);
313            }
314    
315            @Override
316            public int hashCode() {
317                    return _webDAVProps.hashCode();
318            }
319    
320            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WebDAVProps> toCacheModel() {
321                    return _webDAVProps.toCacheModel();
322            }
323    
324            public com.liferay.portal.model.WebDAVProps toEscapedModel() {
325                    return new WebDAVPropsWrapper(_webDAVProps.toEscapedModel());
326            }
327    
328            public com.liferay.portal.model.WebDAVProps toUnescapedModel() {
329                    return new WebDAVPropsWrapper(_webDAVProps.toUnescapedModel());
330            }
331    
332            @Override
333            public java.lang.String toString() {
334                    return _webDAVProps.toString();
335            }
336    
337            public java.lang.String toXmlString() {
338                    return _webDAVProps.toXmlString();
339            }
340    
341            public void persist()
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    _webDAVProps.persist();
344            }
345    
346            public void addProp(java.lang.String name, java.lang.String prefix,
347                    java.lang.String uri) throws java.lang.Exception {
348                    _webDAVProps.addProp(name, prefix, uri);
349            }
350    
351            public void addProp(java.lang.String name, java.lang.String prefix,
352                    java.lang.String uri, java.lang.String text) throws java.lang.Exception {
353                    _webDAVProps.addProp(name, prefix, uri, text);
354            }
355    
356            public java.util.Set<com.liferay.portal.kernel.xml.QName> getPropsSet()
357                    throws java.lang.Exception {
358                    return _webDAVProps.getPropsSet();
359            }
360    
361            public java.lang.String getText(java.lang.String name,
362                    java.lang.String prefix, java.lang.String uri)
363                    throws java.lang.Exception {
364                    return _webDAVProps.getText(name, prefix, uri);
365            }
366    
367            public void removeProp(java.lang.String name, java.lang.String prefix,
368                    java.lang.String uri) throws java.lang.Exception {
369                    _webDAVProps.removeProp(name, prefix, uri);
370            }
371    
372            public void store() throws java.lang.Exception {
373                    _webDAVProps.store();
374            }
375    
376            /**
377             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
378             */
379            public WebDAVProps getWrappedWebDAVProps() {
380                    return _webDAVProps;
381            }
382    
383            public WebDAVProps getWrappedModel() {
384                    return _webDAVProps;
385            }
386    
387            public void resetOriginalValues() {
388                    _webDAVProps.resetOriginalValues();
389            }
390    
391            private WebDAVProps _webDAVProps;
392    }