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.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetTagStatsLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetTagStatsLocalService
026     * @generated
027     */
028    public class AssetTagStatsLocalServiceWrapper
029            implements AssetTagStatsLocalService,
030                    ServiceWrapper<AssetTagStatsLocalService> {
031            public AssetTagStatsLocalServiceWrapper(
032                    AssetTagStatsLocalService assetTagStatsLocalService) {
033                    _assetTagStatsLocalService = assetTagStatsLocalService;
034            }
035    
036            /**
037            * Adds the asset tag stats to the database. Also notifies the appropriate model listeners.
038            *
039            * @param assetTagStats the asset tag stats
040            * @return the asset tag stats that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.asset.model.AssetTagStats addAssetTagStats(
044                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _assetTagStatsLocalService.addAssetTagStats(assetTagStats);
047            }
048    
049            /**
050            * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.
051            *
052            * @param tagStatsId the primary key for the new asset tag stats
053            * @return the new asset tag stats
054            */
055            public com.liferay.portlet.asset.model.AssetTagStats createAssetTagStats(
056                    long tagStatsId) {
057                    return _assetTagStatsLocalService.createAssetTagStats(tagStatsId);
058            }
059    
060            /**
061            * Deletes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param tagStatsId the primary key of the asset tag stats
064            * @return the asset tag stats that was removed
065            * @throws PortalException if a asset tag stats with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats(
069                    long tagStatsId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _assetTagStatsLocalService.deleteAssetTagStats(tagStatsId);
073            }
074    
075            /**
076            * Deletes the asset tag stats from the database. Also notifies the appropriate model listeners.
077            *
078            * @param assetTagStats the asset tag stats
079            * @return the asset tag stats that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats(
083                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _assetTagStatsLocalService.deleteAssetTagStats(assetTagStats);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _assetTagStatsLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.asset.model.AssetTagStats fetchAssetTagStats(
164                    long tagStatsId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _assetTagStatsLocalService.fetchAssetTagStats(tagStatsId);
167            }
168    
169            /**
170            * Returns the asset tag stats with the primary key.
171            *
172            * @param tagStatsId the primary key of the asset tag stats
173            * @return the asset tag stats
174            * @throws PortalException if a asset tag stats with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.asset.model.AssetTagStats getAssetTagStats(
178                    long tagStatsId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _assetTagStatsLocalService.getAssetTagStats(tagStatsId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _assetTagStatsLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns a range of all the asset tag statses.
193            *
194            * <p>
195            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
196            * </p>
197            *
198            * @param start the lower bound of the range of asset tag statses
199            * @param end the upper bound of the range of asset tag statses (not inclusive)
200            * @return the range of asset tag statses
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getAssetTagStatses(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _assetTagStatsLocalService.getAssetTagStatses(start, end);
207            }
208    
209            /**
210            * Returns the number of asset tag statses.
211            *
212            * @return the number of asset tag statses
213            * @throws SystemException if a system exception occurred
214            */
215            public int getAssetTagStatsesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _assetTagStatsLocalService.getAssetTagStatsesCount();
218            }
219    
220            /**
221            * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param assetTagStats the asset tag stats
224            * @return the asset tag stats that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats(
228                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats);
231            }
232    
233            /**
234            * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param assetTagStats the asset tag stats
237            * @param merge whether to merge the asset tag stats with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
238            * @return the asset tag stats that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats(
242                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats,
246                            merge);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _assetTagStatsLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _assetTagStatsLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            /**
268            * Adds an asset tag statistics instance.
269            *
270            * @param tagId the primary key of the tag
271            * @param classNameId the asset entry's class name ID
272            * @return the asset tag statistics instance
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portlet.asset.model.AssetTagStats addTagStats(
276                    long tagId, long classNameId)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return _assetTagStatsLocalService.addTagStats(tagId, classNameId);
279            }
280    
281            /**
282            * Deletes the asset tag statistics instance.
283            *
284            * @param tagStats the asset tag statistics instance
285            * @throws SystemException if a system exception occurred
286            */
287            public void deleteTagStats(
288                    com.liferay.portlet.asset.model.AssetTagStats tagStats)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    _assetTagStatsLocalService.deleteTagStats(tagStats);
291            }
292    
293            /**
294            * Deletes the asset tag statistics instance matching the tag statistics ID.
295            *
296            * @param tagStatsId the primary key of the asset tag statistics instance
297            * @throws PortalException if the assetTagStats with the primary key could
298            not be found
299            * @throws SystemException if a system exception occurred
300            */
301            public void deleteTagStats(long tagStatsId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    _assetTagStatsLocalService.deleteTagStats(tagStatsId);
305            }
306    
307            /**
308            * Deletes all asset tag statistics instances associated with the asset
309            * entry matching the class name ID.
310            *
311            * @param classNameId the asset entry's class name ID
312            * @throws SystemException if a system exception occurred
313            */
314            public void deleteTagStatsByClassNameId(long classNameId)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    _assetTagStatsLocalService.deleteTagStatsByClassNameId(classNameId);
317            }
318    
319            /**
320            * Deletes all asset tag statistics instances associated with the tag.
321            *
322            * @param tagId the primary key of the tag
323            * @throws SystemException if a system exception occurred
324            */
325            public void deleteTagStatsByTagId(long tagId)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    _assetTagStatsLocalService.deleteTagStatsByTagId(tagId);
328            }
329    
330            /**
331            * Returns a range of all the asset tag statistics instances associated with
332            * the asset entry matching the class name ID.
333            *
334            * <p>
335            * Useful when paginating results. Returns a maximum of <code>end -
336            * start</code> instances. <code>start</code> and <code>end</code> are not
337            * primary keys, they are indexes in the result set. Thus, <code>0</code>
338            * refers to the first result in the set. Setting both <code>start</code>
339            * and <code>end</code> to {@link
340            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
341            * result set.
342            * </p>
343            *
344            * @param classNameId the asset entry's class name ID
345            * @param start the lower bound of the range of results
346            * @param end the upper bound of the range of results (not inclusive)
347            * @return the range of asset tag statistics associated with the asset entry
348            matching the class name ID
349            * @throws SystemException if a system exception occurred
350            */
351            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getTagStats(
352                    long classNameId, int start, int end)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _assetTagStatsLocalService.getTagStats(classNameId, start, end);
355            }
356    
357            /**
358            * Returns the asset tag statistics instance with the tag and asset entry
359            * matching the class name ID
360            *
361            * @param tagId the primary key of the tag
362            * @param classNameId the asset entry's class name ID
363            * @return Returns the asset tag statistics instance with the tag and asset
364            entry  matching the class name ID
365            * @throws SystemException if a system exception occurred
366            */
367            public com.liferay.portlet.asset.model.AssetTagStats getTagStats(
368                    long tagId, long classNameId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _assetTagStatsLocalService.getTagStats(tagId, classNameId);
371            }
372    
373            /**
374            * Updates the asset tag statistics instance.
375            *
376            * @param tagId the primary key of the tag
377            * @param classNameId the asset entry's class name ID
378            * @return the updated asset tag statistics instance
379            * @throws PortalException if an asset tag with the tag ID could not be
380            found
381            * @throws SystemException if a system exception occurred
382            */
383            public com.liferay.portlet.asset.model.AssetTagStats updateTagStats(
384                    long tagId, long classNameId)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _assetTagStatsLocalService.updateTagStats(tagId, classNameId);
388            }
389    
390            /**
391             * @deprecated Renamed to {@link #getWrappedService}
392             */
393            public AssetTagStatsLocalService getWrappedAssetTagStatsLocalService() {
394                    return _assetTagStatsLocalService;
395            }
396    
397            /**
398             * @deprecated Renamed to {@link #setWrappedService}
399             */
400            public void setWrappedAssetTagStatsLocalService(
401                    AssetTagStatsLocalService assetTagStatsLocalService) {
402                    _assetTagStatsLocalService = assetTagStatsLocalService;
403            }
404    
405            public AssetTagStatsLocalService getWrappedService() {
406                    return _assetTagStatsLocalService;
407            }
408    
409            public void setWrappedService(
410                    AssetTagStatsLocalService assetTagStatsLocalService) {
411                    _assetTagStatsLocalService = assetTagStatsLocalService;
412            }
413    
414            private AssetTagStatsLocalService _assetTagStatsLocalService;
415    }