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