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