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