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