001    /**
002     * Copyright (c) 2000-2012 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.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link BrowserTrackerLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       BrowserTrackerLocalService
024     * @generated
025     */
026    public class BrowserTrackerLocalServiceWrapper
027            implements BrowserTrackerLocalService,
028                    ServiceWrapper<BrowserTrackerLocalService> {
029            public BrowserTrackerLocalServiceWrapper(
030                    BrowserTrackerLocalService browserTrackerLocalService) {
031                    _browserTrackerLocalService = browserTrackerLocalService;
032            }
033    
034            /**
035            * Adds the browser tracker to the database. Also notifies the appropriate model listeners.
036            *
037            * @param browserTracker the browser tracker
038            * @return the browser tracker that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.BrowserTracker addBrowserTracker(
042                    com.liferay.portal.model.BrowserTracker browserTracker)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _browserTrackerLocalService.addBrowserTracker(browserTracker);
045            }
046    
047            /**
048            * Creates a new browser tracker with the primary key. Does not add the browser tracker to the database.
049            *
050            * @param browserTrackerId the primary key for the new browser tracker
051            * @return the new browser tracker
052            */
053            public com.liferay.portal.model.BrowserTracker createBrowserTracker(
054                    long browserTrackerId) {
055                    return _browserTrackerLocalService.createBrowserTracker(browserTrackerId);
056            }
057    
058            /**
059            * Deletes the browser tracker with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param browserTrackerId the primary key of the browser tracker
062            * @throws PortalException if a browser tracker with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteBrowserTracker(long browserTrackerId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _browserTrackerLocalService.deleteBrowserTracker(browserTrackerId);
069            }
070    
071            /**
072            * Deletes the browser tracker from the database. Also notifies the appropriate model listeners.
073            *
074            * @param browserTracker the browser tracker
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteBrowserTracker(
078                    com.liferay.portal.model.BrowserTracker browserTracker)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _browserTrackerLocalService.deleteBrowserTracker(browserTracker);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _browserTrackerLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _browserTrackerLocalService.dynamicQuery(dynamicQuery, start, end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _browserTrackerLocalService.dynamicQuery(dynamicQuery, start,
138                            end, orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _browserTrackerLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            public com.liferay.portal.model.BrowserTracker fetchBrowserTracker(
155                    long browserTrackerId)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _browserTrackerLocalService.fetchBrowserTracker(browserTrackerId);
158            }
159    
160            /**
161            * Returns the browser tracker with the primary key.
162            *
163            * @param browserTrackerId the primary key of the browser tracker
164            * @return the browser tracker
165            * @throws PortalException if a browser tracker with the primary key could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portal.model.BrowserTracker getBrowserTracker(
169                    long browserTrackerId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _browserTrackerLocalService.getBrowserTracker(browserTrackerId);
173            }
174    
175            public com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _browserTrackerLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns a range of all the browser trackers.
184            *
185            * <p>
186            * 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.
187            * </p>
188            *
189            * @param start the lower bound of the range of browser trackers
190            * @param end the upper bound of the range of browser trackers (not inclusive)
191            * @return the range of browser trackers
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portal.model.BrowserTracker> getBrowserTrackers(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _browserTrackerLocalService.getBrowserTrackers(start, end);
198            }
199    
200            /**
201            * Returns the number of browser trackers.
202            *
203            * @return the number of browser trackers
204            * @throws SystemException if a system exception occurred
205            */
206            public int getBrowserTrackersCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _browserTrackerLocalService.getBrowserTrackersCount();
209            }
210    
211            /**
212            * Updates the browser tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param browserTracker the browser tracker
215            * @return the browser tracker that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.BrowserTracker updateBrowserTracker(
219                    com.liferay.portal.model.BrowserTracker browserTracker)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _browserTrackerLocalService.updateBrowserTracker(browserTracker);
222            }
223    
224            /**
225            * Updates the browser tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param browserTracker the browser tracker
228            * @param merge whether to merge the browser tracker 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.
229            * @return the browser tracker that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.BrowserTracker updateBrowserTracker(
233                    com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _browserTrackerLocalService.updateBrowserTracker(browserTracker,
236                            merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _browserTrackerLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _browserTrackerLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public void deleteUserBrowserTracker(long userId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _browserTrackerLocalService.deleteUserBrowserTracker(userId);
260            }
261    
262            public com.liferay.portal.model.BrowserTracker getBrowserTracker(
263                    long userId, long browserKey)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _browserTrackerLocalService.getBrowserTracker(userId, browserKey);
266            }
267    
268            public com.liferay.portal.model.BrowserTracker updateBrowserTracker(
269                    long userId, long browserKey)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _browserTrackerLocalService.updateBrowserTracker(userId,
272                            browserKey);
273            }
274    
275            /**
276             * @deprecated Renamed to {@link #getWrappedService}
277             */
278            public BrowserTrackerLocalService getWrappedBrowserTrackerLocalService() {
279                    return _browserTrackerLocalService;
280            }
281    
282            /**
283             * @deprecated Renamed to {@link #setWrappedService}
284             */
285            public void setWrappedBrowserTrackerLocalService(
286                    BrowserTrackerLocalService browserTrackerLocalService) {
287                    _browserTrackerLocalService = browserTrackerLocalService;
288            }
289    
290            public BrowserTrackerLocalService getWrappedService() {
291                    return _browserTrackerLocalService;
292            }
293    
294            public void setWrappedService(
295                    BrowserTrackerLocalService browserTrackerLocalService) {
296                    _browserTrackerLocalService = browserTrackerLocalService;
297            }
298    
299            private BrowserTrackerLocalService _browserTrackerLocalService;
300    }