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.HashMap;
020    import java.util.Map;
021    
022    /**
023     * <p>
024     * This class is a wrapper for {@link AssetTagStats}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       AssetTagStats
029     * @generated
030     */
031    public class AssetTagStatsWrapper implements AssetTagStats,
032            ModelWrapper<AssetTagStats> {
033            public AssetTagStatsWrapper(AssetTagStats assetTagStats) {
034                    _assetTagStats = assetTagStats;
035            }
036    
037            public Class<?> getModelClass() {
038                    return AssetTagStats.class;
039            }
040    
041            public String getModelClassName() {
042                    return AssetTagStats.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("tagStatsId", getTagStatsId());
049                    attributes.put("tagId", getTagId());
050                    attributes.put("classNameId", getClassNameId());
051                    attributes.put("assetCount", getAssetCount());
052    
053                    return attributes;
054            }
055    
056            public void setModelAttributes(Map<String, Object> attributes) {
057                    Long tagStatsId = (Long)attributes.get("tagStatsId");
058    
059                    if (tagStatsId != null) {
060                            setTagStatsId(tagStatsId);
061                    }
062    
063                    Long tagId = (Long)attributes.get("tagId");
064    
065                    if (tagId != null) {
066                            setTagId(tagId);
067                    }
068    
069                    Long classNameId = (Long)attributes.get("classNameId");
070    
071                    if (classNameId != null) {
072                            setClassNameId(classNameId);
073                    }
074    
075                    Integer assetCount = (Integer)attributes.get("assetCount");
076    
077                    if (assetCount != null) {
078                            setAssetCount(assetCount);
079                    }
080            }
081    
082            /**
083            * Returns the primary key of this asset tag stats.
084            *
085            * @return the primary key of this asset tag stats
086            */
087            public long getPrimaryKey() {
088                    return _assetTagStats.getPrimaryKey();
089            }
090    
091            /**
092            * Sets the primary key of this asset tag stats.
093            *
094            * @param primaryKey the primary key of this asset tag stats
095            */
096            public void setPrimaryKey(long primaryKey) {
097                    _assetTagStats.setPrimaryKey(primaryKey);
098            }
099    
100            /**
101            * Returns the tag stats ID of this asset tag stats.
102            *
103            * @return the tag stats ID of this asset tag stats
104            */
105            public long getTagStatsId() {
106                    return _assetTagStats.getTagStatsId();
107            }
108    
109            /**
110            * Sets the tag stats ID of this asset tag stats.
111            *
112            * @param tagStatsId the tag stats ID of this asset tag stats
113            */
114            public void setTagStatsId(long tagStatsId) {
115                    _assetTagStats.setTagStatsId(tagStatsId);
116            }
117    
118            /**
119            * Returns the tag ID of this asset tag stats.
120            *
121            * @return the tag ID of this asset tag stats
122            */
123            public long getTagId() {
124                    return _assetTagStats.getTagId();
125            }
126    
127            /**
128            * Sets the tag ID of this asset tag stats.
129            *
130            * @param tagId the tag ID of this asset tag stats
131            */
132            public void setTagId(long tagId) {
133                    _assetTagStats.setTagId(tagId);
134            }
135    
136            /**
137            * Returns the fully qualified class name of this asset tag stats.
138            *
139            * @return the fully qualified class name of this asset tag stats
140            */
141            public java.lang.String getClassName() {
142                    return _assetTagStats.getClassName();
143            }
144    
145            public void setClassName(java.lang.String className) {
146                    _assetTagStats.setClassName(className);
147            }
148    
149            /**
150            * Returns the class name ID of this asset tag stats.
151            *
152            * @return the class name ID of this asset tag stats
153            */
154            public long getClassNameId() {
155                    return _assetTagStats.getClassNameId();
156            }
157    
158            /**
159            * Sets the class name ID of this asset tag stats.
160            *
161            * @param classNameId the class name ID of this asset tag stats
162            */
163            public void setClassNameId(long classNameId) {
164                    _assetTagStats.setClassNameId(classNameId);
165            }
166    
167            /**
168            * Returns the asset count of this asset tag stats.
169            *
170            * @return the asset count of this asset tag stats
171            */
172            public int getAssetCount() {
173                    return _assetTagStats.getAssetCount();
174            }
175    
176            /**
177            * Sets the asset count of this asset tag stats.
178            *
179            * @param assetCount the asset count of this asset tag stats
180            */
181            public void setAssetCount(int assetCount) {
182                    _assetTagStats.setAssetCount(assetCount);
183            }
184    
185            public boolean isNew() {
186                    return _assetTagStats.isNew();
187            }
188    
189            public void setNew(boolean n) {
190                    _assetTagStats.setNew(n);
191            }
192    
193            public boolean isCachedModel() {
194                    return _assetTagStats.isCachedModel();
195            }
196    
197            public void setCachedModel(boolean cachedModel) {
198                    _assetTagStats.setCachedModel(cachedModel);
199            }
200    
201            public boolean isEscapedModel() {
202                    return _assetTagStats.isEscapedModel();
203            }
204    
205            public java.io.Serializable getPrimaryKeyObj() {
206                    return _assetTagStats.getPrimaryKeyObj();
207            }
208    
209            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
210                    _assetTagStats.setPrimaryKeyObj(primaryKeyObj);
211            }
212    
213            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
214                    return _assetTagStats.getExpandoBridge();
215            }
216    
217            public void setExpandoBridgeAttributes(
218                    com.liferay.portal.model.BaseModel<?> baseModel) {
219                    _assetTagStats.setExpandoBridgeAttributes(baseModel);
220            }
221    
222            public void setExpandoBridgeAttributes(
223                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
224                    _assetTagStats.setExpandoBridgeAttributes(expandoBridge);
225            }
226    
227            public void setExpandoBridgeAttributes(
228                    com.liferay.portal.service.ServiceContext serviceContext) {
229                    _assetTagStats.setExpandoBridgeAttributes(serviceContext);
230            }
231    
232            @Override
233            public java.lang.Object clone() {
234                    return new AssetTagStatsWrapper((AssetTagStats)_assetTagStats.clone());
235            }
236    
237            public int compareTo(
238                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
239                    return _assetTagStats.compareTo(assetTagStats);
240            }
241    
242            @Override
243            public int hashCode() {
244                    return _assetTagStats.hashCode();
245            }
246    
247            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetTagStats> toCacheModel() {
248                    return _assetTagStats.toCacheModel();
249            }
250    
251            public com.liferay.portlet.asset.model.AssetTagStats toEscapedModel() {
252                    return new AssetTagStatsWrapper(_assetTagStats.toEscapedModel());
253            }
254    
255            public com.liferay.portlet.asset.model.AssetTagStats toUnescapedModel() {
256                    return new AssetTagStatsWrapper(_assetTagStats.toUnescapedModel());
257            }
258    
259            @Override
260            public java.lang.String toString() {
261                    return _assetTagStats.toString();
262            }
263    
264            public java.lang.String toXmlString() {
265                    return _assetTagStats.toXmlString();
266            }
267    
268            public void persist()
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    _assetTagStats.persist();
271            }
272    
273            /**
274             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
275             */
276            public AssetTagStats getWrappedAssetTagStats() {
277                    return _assetTagStats;
278            }
279    
280            public AssetTagStats getWrappedModel() {
281                    return _assetTagStats;
282            }
283    
284            public void resetOriginalValues() {
285                    _assetTagStats.resetOriginalValues();
286            }
287    
288            private AssetTagStats _assetTagStats;
289    }