001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * @throws PortalException if a asset tag stats with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteAssetTagStats(long tagStatsId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _assetTagStatsLocalService.deleteAssetTagStats(tagStatsId);
071            }
072    
073            /**
074            * Deletes the asset tag stats from the database. Also notifies the appropriate model listeners.
075            *
076            * @param assetTagStats the asset tag stats
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteAssetTagStats(
080                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _assetTagStatsLocalService.deleteAssetTagStats(assetTagStats);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portlet.asset.model.AssetTagStats fetchAssetTagStats(
157                    long tagStatsId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _assetTagStatsLocalService.fetchAssetTagStats(tagStatsId);
160            }
161    
162            /**
163            * Returns the asset tag stats with the primary key.
164            *
165            * @param tagStatsId the primary key of the asset tag stats
166            * @return the asset tag stats
167            * @throws PortalException if a asset tag stats with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.asset.model.AssetTagStats getAssetTagStats(
171                    long tagStatsId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _assetTagStatsLocalService.getAssetTagStats(tagStatsId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _assetTagStatsLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the asset tag statses.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of asset tag statses
192            * @param end the upper bound of the range of asset tag statses (not inclusive)
193            * @return the range of asset tag statses
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getAssetTagStatses(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _assetTagStatsLocalService.getAssetTagStatses(start, end);
200            }
201    
202            /**
203            * Returns the number of asset tag statses.
204            *
205            * @return the number of asset tag statses
206            * @throws SystemException if a system exception occurred
207            */
208            public int getAssetTagStatsesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _assetTagStatsLocalService.getAssetTagStatsesCount();
211            }
212    
213            /**
214            * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param assetTagStats the asset tag stats
217            * @return the asset tag stats that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats(
221                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats);
224            }
225    
226            /**
227            * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param assetTagStats the asset tag stats
230            * @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.
231            * @return the asset tag stats that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats(
235                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats,
239                            merge);
240            }
241    
242            /**
243            * Returns the Spring bean ID for this bean.
244            *
245            * @return the Spring bean ID for this bean
246            */
247            public java.lang.String getBeanIdentifier() {
248                    return _assetTagStatsLocalService.getBeanIdentifier();
249            }
250    
251            /**
252            * Sets the Spring bean ID for this bean.
253            *
254            * @param beanIdentifier the Spring bean ID for this bean
255            */
256            public void setBeanIdentifier(java.lang.String beanIdentifier) {
257                    _assetTagStatsLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            /**
261            * Adds an asset tag statistics instance.
262            *
263            * @param tagId the primary key of the tag
264            * @param classNameId the asset entry's class name ID
265            * @return the asset tag statistics instance
266            * @throws SystemException if a system exception occurred
267            */
268            public com.liferay.portlet.asset.model.AssetTagStats addTagStats(
269                    long tagId, long classNameId)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _assetTagStatsLocalService.addTagStats(tagId, classNameId);
272            }
273    
274            /**
275            * Deletes the asset tag statistics instance.
276            *
277            * @param tagStats the asset tag statistics instance
278            * @throws SystemException if a system exception occurred
279            */
280            public void deleteTagStats(
281                    com.liferay.portlet.asset.model.AssetTagStats tagStats)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _assetTagStatsLocalService.deleteTagStats(tagStats);
284            }
285    
286            /**
287            * Deletes the asset tag statistics instance matching the tag statistics
288            * ID.
289            *
290            * @param tagStatsId the primary key of the asset tag statistics instance
291            * @throws PortalException if the assetTagStats with the primary key could
292            not be found
293            * @throws SystemException if a system exception occurred
294            */
295            public void deleteTagStats(long tagStatsId)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _assetTagStatsLocalService.deleteTagStats(tagStatsId);
299            }
300    
301            /**
302            * Deletes all asset tag statistics instances associated with the asset
303            * entry matching the class name ID.
304            *
305            * @param classNameId the asset entry's class name ID
306            * @throws SystemException if a system exception occurred
307            */
308            public void deleteTagStatsByClassNameId(long classNameId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    _assetTagStatsLocalService.deleteTagStatsByClassNameId(classNameId);
311            }
312    
313            /**
314            * Deletes all asset tag statistics instances associated with the tag.
315            *
316            * @param tagId the primary key of the tag
317            * @throws SystemException if a system exception occurred
318            */
319            public void deleteTagStatsByTagId(long tagId)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    _assetTagStatsLocalService.deleteTagStatsByTagId(tagId);
322            }
323    
324            /**
325            * Returns a range of all the asset tag statistics instances associated
326            * with the asset entry matching the class name ID.
327            *
328            * <p>
329            * Useful when paginating results. Returns a maximum of <code>end -
330            * start</code> instances. <code>start</code> and <code>end</code> are not
331            * primary keys, they are indexes in the result set. Thus, <code>0</code>
332            * refers to the first result in the set. Setting both <code>start</code>
333            * and <code>end</code> to {@link
334            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
335            * full result set.
336            * </p>
337            *
338            * @param classNameId the asset entry's class name ID
339            * @param start the lower bound of the range of results
340            * @param end the upper bound of the range of results (not inclusive)
341            * @return the range of asset tag statistics associated with the asset
342            entry matching the class name ID
343            * @throws SystemException if a system exception occurred
344            */
345            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getTagStats(
346                    long classNameId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return _assetTagStatsLocalService.getTagStats(classNameId, start, end);
349            }
350    
351            /**
352            * Returns the asset tag statistics instance with the tag and asset entry
353            * matching the class name ID
354            *
355            * @param tagId the primary key of the tag
356            * @param classNameId the asset entry's class name ID
357            * @return Returns the asset tag statistics instance with the tag and asset
358            entry  matching the class name ID
359            * @throws SystemException if a system exception occurred
360            */
361            public com.liferay.portlet.asset.model.AssetTagStats getTagStats(
362                    long tagId, long classNameId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _assetTagStatsLocalService.getTagStats(tagId, classNameId);
365            }
366    
367            /**
368            * Updates the asset tag statistics instance.
369            *
370            * @param tagId the primary key of the tag
371            * @param classNameId the asset entry's class name ID
372            * @return the updated asset tag statistics instance
373            * @throws PortalException if an asset tag with the tag ID could not be
374            found
375            * @throws SystemException if a system exception occurred
376            */
377            public com.liferay.portlet.asset.model.AssetTagStats updateTagStats(
378                    long tagId, long classNameId)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _assetTagStatsLocalService.updateTagStats(tagId, classNameId);
382            }
383    
384            /**
385             * @deprecated Renamed to {@link #getWrappedService}
386             */
387            public AssetTagStatsLocalService getWrappedAssetTagStatsLocalService() {
388                    return _assetTagStatsLocalService;
389            }
390    
391            /**
392             * @deprecated Renamed to {@link #setWrappedService}
393             */
394            public void setWrappedAssetTagStatsLocalService(
395                    AssetTagStatsLocalService assetTagStatsLocalService) {
396                    _assetTagStatsLocalService = assetTagStatsLocalService;
397            }
398    
399            public AssetTagStatsLocalService getWrappedService() {
400                    return _assetTagStatsLocalService;
401            }
402    
403            public void setWrappedService(
404                    AssetTagStatsLocalService assetTagStatsLocalService) {
405                    _assetTagStatsLocalService = assetTagStatsLocalService;
406            }
407    
408            private AssetTagStatsLocalService _assetTagStatsLocalService;
409    }