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