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.kernel.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 @Override 036 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 037 return _browserTrackerLocalService.getActionableDynamicQuery(); 038 } 039 040 @Override 041 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 042 return _browserTrackerLocalService.dynamicQuery(); 043 } 044 045 @Override 046 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 047 return _browserTrackerLocalService.getIndexableActionableDynamicQuery(); 048 } 049 050 /** 051 * Adds the browser tracker to the database. Also notifies the appropriate model listeners. 052 * 053 * @param browserTracker the browser tracker 054 * @return the browser tracker that was added 055 */ 056 @Override 057 public com.liferay.portal.kernel.model.BrowserTracker addBrowserTracker( 058 com.liferay.portal.kernel.model.BrowserTracker browserTracker) { 059 return _browserTrackerLocalService.addBrowserTracker(browserTracker); 060 } 061 062 /** 063 * Creates a new browser tracker with the primary key. Does not add the browser tracker to the database. 064 * 065 * @param browserTrackerId the primary key for the new browser tracker 066 * @return the new browser tracker 067 */ 068 @Override 069 public com.liferay.portal.kernel.model.BrowserTracker createBrowserTracker( 070 long browserTrackerId) { 071 return _browserTrackerLocalService.createBrowserTracker(browserTrackerId); 072 } 073 074 /** 075 * Deletes the browser tracker from the database. Also notifies the appropriate model listeners. 076 * 077 * @param browserTracker the browser tracker 078 * @return the browser tracker that was removed 079 */ 080 @Override 081 public com.liferay.portal.kernel.model.BrowserTracker deleteBrowserTracker( 082 com.liferay.portal.kernel.model.BrowserTracker browserTracker) { 083 return _browserTrackerLocalService.deleteBrowserTracker(browserTracker); 084 } 085 086 /** 087 * Deletes the browser tracker with the primary key from the database. Also notifies the appropriate model listeners. 088 * 089 * @param browserTrackerId the primary key of the browser tracker 090 * @return the browser tracker that was removed 091 * @throws PortalException if a browser tracker with the primary key could not be found 092 */ 093 @Override 094 public com.liferay.portal.kernel.model.BrowserTracker deleteBrowserTracker( 095 long browserTrackerId) 096 throws com.liferay.portal.kernel.exception.PortalException { 097 return _browserTrackerLocalService.deleteBrowserTracker(browserTrackerId); 098 } 099 100 @Override 101 public com.liferay.portal.kernel.model.BrowserTracker fetchBrowserTracker( 102 long browserTrackerId) { 103 return _browserTrackerLocalService.fetchBrowserTracker(browserTrackerId); 104 } 105 106 /** 107 * Returns the browser tracker with the primary key. 108 * 109 * @param browserTrackerId the primary key of the browser tracker 110 * @return the browser tracker 111 * @throws PortalException if a browser tracker with the primary key could not be found 112 */ 113 @Override 114 public com.liferay.portal.kernel.model.BrowserTracker getBrowserTracker( 115 long browserTrackerId) 116 throws com.liferay.portal.kernel.exception.PortalException { 117 return _browserTrackerLocalService.getBrowserTracker(browserTrackerId); 118 } 119 120 @Override 121 public com.liferay.portal.kernel.model.BrowserTracker getBrowserTracker( 122 long userId, long browserKey) { 123 return _browserTrackerLocalService.getBrowserTracker(userId, browserKey); 124 } 125 126 /** 127 * Updates the browser tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 128 * 129 * @param browserTracker the browser tracker 130 * @return the browser tracker that was updated 131 */ 132 @Override 133 public com.liferay.portal.kernel.model.BrowserTracker updateBrowserTracker( 134 com.liferay.portal.kernel.model.BrowserTracker browserTracker) { 135 return _browserTrackerLocalService.updateBrowserTracker(browserTracker); 136 } 137 138 @Override 139 public com.liferay.portal.kernel.model.BrowserTracker updateBrowserTracker( 140 long userId, long browserKey) { 141 return _browserTrackerLocalService.updateBrowserTracker(userId, 142 browserKey); 143 } 144 145 /** 146 * @throws PortalException 147 */ 148 @Override 149 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 150 com.liferay.portal.kernel.model.PersistedModel persistedModel) 151 throws com.liferay.portal.kernel.exception.PortalException { 152 return _browserTrackerLocalService.deletePersistedModel(persistedModel); 153 } 154 155 @Override 156 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 157 java.io.Serializable primaryKeyObj) 158 throws com.liferay.portal.kernel.exception.PortalException { 159 return _browserTrackerLocalService.getPersistedModel(primaryKeyObj); 160 } 161 162 /** 163 * Returns the number of browser trackers. 164 * 165 * @return the number of browser trackers 166 */ 167 @Override 168 public int getBrowserTrackersCount() { 169 return _browserTrackerLocalService.getBrowserTrackersCount(); 170 } 171 172 /** 173 * Returns the OSGi service identifier. 174 * 175 * @return the OSGi service identifier 176 */ 177 @Override 178 public java.lang.String getOSGiServiceIdentifier() { 179 return _browserTrackerLocalService.getOSGiServiceIdentifier(); 180 } 181 182 /** 183 * Performs a dynamic query on the database and returns the matching rows. 184 * 185 * @param dynamicQuery the dynamic query 186 * @return the matching rows 187 */ 188 @Override 189 public <T> java.util.List<T> dynamicQuery( 190 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 191 return _browserTrackerLocalService.dynamicQuery(dynamicQuery); 192 } 193 194 /** 195 * Performs a dynamic query on the database and returns a range of the matching rows. 196 * 197 * <p> 198 * 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. 199 * </p> 200 * 201 * @param dynamicQuery the dynamic query 202 * @param start the lower bound of the range of model instances 203 * @param end the upper bound of the range of model instances (not inclusive) 204 * @return the range of matching rows 205 */ 206 @Override 207 public <T> java.util.List<T> dynamicQuery( 208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 209 int end) { 210 return _browserTrackerLocalService.dynamicQuery(dynamicQuery, start, end); 211 } 212 213 /** 214 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 215 * 216 * <p> 217 * 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. 218 * </p> 219 * 220 * @param dynamicQuery the dynamic query 221 * @param start the lower bound of the range of model instances 222 * @param end the upper bound of the range of model instances (not inclusive) 223 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 224 * @return the ordered range of matching rows 225 */ 226 @Override 227 public <T> java.util.List<T> dynamicQuery( 228 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 229 int end, 230 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 231 return _browserTrackerLocalService.dynamicQuery(dynamicQuery, start, 232 end, orderByComparator); 233 } 234 235 /** 236 * Returns a range of all the browser trackers. 237 * 238 * <p> 239 * 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. 240 * </p> 241 * 242 * @param start the lower bound of the range of browser trackers 243 * @param end the upper bound of the range of browser trackers (not inclusive) 244 * @return the range of browser trackers 245 */ 246 @Override 247 public java.util.List<com.liferay.portal.kernel.model.BrowserTracker> getBrowserTrackers( 248 int start, int end) { 249 return _browserTrackerLocalService.getBrowserTrackers(start, end); 250 } 251 252 /** 253 * Returns the number of rows matching the dynamic query. 254 * 255 * @param dynamicQuery the dynamic query 256 * @return the number of rows matching the dynamic query 257 */ 258 @Override 259 public long dynamicQueryCount( 260 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 261 return _browserTrackerLocalService.dynamicQueryCount(dynamicQuery); 262 } 263 264 /** 265 * Returns the number of rows matching the dynamic query. 266 * 267 * @param dynamicQuery the dynamic query 268 * @param projection the projection to apply to the query 269 * @return the number of rows matching the dynamic query 270 */ 271 @Override 272 public long dynamicQueryCount( 273 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 274 com.liferay.portal.kernel.dao.orm.Projection projection) { 275 return _browserTrackerLocalService.dynamicQueryCount(dynamicQuery, 276 projection); 277 } 278 279 @Override 280 public void deleteUserBrowserTracker(long userId) { 281 _browserTrackerLocalService.deleteUserBrowserTracker(userId); 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 }