001 /** 002 * Copyright (c) 2000-2011 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.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.UserTrackerPath; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the user tracker path service. This utility wraps {@link UserTrackerPathPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see UserTrackerPathPersistence 036 * @see UserTrackerPathPersistenceImpl 037 * @generated 038 */ 039 public class UserTrackerPathUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(UserTrackerPath userTrackerPath) { 057 getPersistence().clearCache(userTrackerPath); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<UserTrackerPath> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<UserTrackerPath> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<UserTrackerPath> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 098 */ 099 public static UserTrackerPath remove(UserTrackerPath userTrackerPath) 100 throws SystemException { 101 return getPersistence().remove(userTrackerPath); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static UserTrackerPath update(UserTrackerPath userTrackerPath, 108 boolean merge) throws SystemException { 109 return getPersistence().update(userTrackerPath, merge); 110 } 111 112 /** 113 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 114 */ 115 public static UserTrackerPath update(UserTrackerPath userTrackerPath, 116 boolean merge, ServiceContext serviceContext) throws SystemException { 117 return getPersistence().update(userTrackerPath, merge, serviceContext); 118 } 119 120 /** 121 * Caches the user tracker path in the entity cache if it is enabled. 122 * 123 * @param userTrackerPath the user tracker path 124 */ 125 public static void cacheResult( 126 com.liferay.portal.model.UserTrackerPath userTrackerPath) { 127 getPersistence().cacheResult(userTrackerPath); 128 } 129 130 /** 131 * Caches the user tracker paths in the entity cache if it is enabled. 132 * 133 * @param userTrackerPaths the user tracker paths 134 */ 135 public static void cacheResult( 136 java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) { 137 getPersistence().cacheResult(userTrackerPaths); 138 } 139 140 /** 141 * Creates a new user tracker path with the primary key. Does not add the user tracker path to the database. 142 * 143 * @param userTrackerPathId the primary key for the new user tracker path 144 * @return the new user tracker path 145 */ 146 public static com.liferay.portal.model.UserTrackerPath create( 147 long userTrackerPathId) { 148 return getPersistence().create(userTrackerPathId); 149 } 150 151 /** 152 * Removes the user tracker path with the primary key from the database. Also notifies the appropriate model listeners. 153 * 154 * @param userTrackerPathId the primary key of the user tracker path 155 * @return the user tracker path that was removed 156 * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public static com.liferay.portal.model.UserTrackerPath remove( 160 long userTrackerPathId) 161 throws com.liferay.portal.NoSuchUserTrackerPathException, 162 com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().remove(userTrackerPathId); 164 } 165 166 public static com.liferay.portal.model.UserTrackerPath updateImpl( 167 com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge) 168 throws com.liferay.portal.kernel.exception.SystemException { 169 return getPersistence().updateImpl(userTrackerPath, merge); 170 } 171 172 /** 173 * Returns the user tracker path with the primary key or throws a {@link com.liferay.portal.NoSuchUserTrackerPathException} if it could not be found. 174 * 175 * @param userTrackerPathId the primary key of the user tracker path 176 * @return the user tracker path 177 * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey( 181 long userTrackerPathId) 182 throws com.liferay.portal.NoSuchUserTrackerPathException, 183 com.liferay.portal.kernel.exception.SystemException { 184 return getPersistence().findByPrimaryKey(userTrackerPathId); 185 } 186 187 /** 188 * Returns the user tracker path with the primary key or returns <code>null</code> if it could not be found. 189 * 190 * @param userTrackerPathId the primary key of the user tracker path 191 * @return the user tracker path, or <code>null</code> if a user tracker path with the primary key could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey( 195 long userTrackerPathId) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByPrimaryKey(userTrackerPathId); 198 } 199 200 /** 201 * Returns all the user tracker paths where userTrackerId = ?. 202 * 203 * @param userTrackerId the user tracker ID 204 * @return the matching user tracker paths 205 * @throws SystemException if a system exception occurred 206 */ 207 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId( 208 long userTrackerId) 209 throws com.liferay.portal.kernel.exception.SystemException { 210 return getPersistence().findByUserTrackerId(userTrackerId); 211 } 212 213 /** 214 * Returns a range of all the user tracker paths where userTrackerId = ?. 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. 218 * </p> 219 * 220 * @param userTrackerId the user tracker ID 221 * @param start the lower bound of the range of user tracker paths 222 * @param end the upper bound of the range of user tracker paths (not inclusive) 223 * @return the range of matching user tracker paths 224 * @throws SystemException if a system exception occurred 225 */ 226 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId( 227 long userTrackerId, int start, int end) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().findByUserTrackerId(userTrackerId, start, end); 230 } 231 232 /** 233 * Returns an ordered range of all the user tracker paths where userTrackerId = ?. 234 * 235 * <p> 236 * 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. 237 * </p> 238 * 239 * @param userTrackerId the user tracker ID 240 * @param start the lower bound of the range of user tracker paths 241 * @param end the upper bound of the range of user tracker paths (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching user tracker paths 244 * @throws SystemException if a system exception occurred 245 */ 246 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId( 247 long userTrackerId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException { 250 return getPersistence() 251 .findByUserTrackerId(userTrackerId, start, end, 252 orderByComparator); 253 } 254 255 /** 256 * Returns the first user tracker path in the ordered set where userTrackerId = ?. 257 * 258 * <p> 259 * 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. 260 * </p> 261 * 262 * @param userTrackerId the user tracker ID 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the first matching user tracker path 265 * @throws com.liferay.portal.NoSuchUserTrackerPathException if a matching user tracker path could not be found 266 * @throws SystemException if a system exception occurred 267 */ 268 public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First( 269 long userTrackerId, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.NoSuchUserTrackerPathException, 272 com.liferay.portal.kernel.exception.SystemException { 273 return getPersistence() 274 .findByUserTrackerId_First(userTrackerId, orderByComparator); 275 } 276 277 /** 278 * Returns the last user tracker path in the ordered set where userTrackerId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param userTrackerId the user tracker ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching user tracker path 287 * @throws com.liferay.portal.NoSuchUserTrackerPathException if a matching user tracker path could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last( 291 long userTrackerId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.NoSuchUserTrackerPathException, 294 com.liferay.portal.kernel.exception.SystemException { 295 return getPersistence() 296 .findByUserTrackerId_Last(userTrackerId, orderByComparator); 297 } 298 299 /** 300 * Returns the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?. 301 * 302 * <p> 303 * 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. 304 * </p> 305 * 306 * @param userTrackerPathId the primary key of the current user tracker path 307 * @param userTrackerId the user tracker ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the previous, current, and next user tracker path 310 * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext( 314 long userTrackerPathId, long userTrackerId, 315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 316 throws com.liferay.portal.NoSuchUserTrackerPathException, 317 com.liferay.portal.kernel.exception.SystemException { 318 return getPersistence() 319 .findByUserTrackerId_PrevAndNext(userTrackerPathId, 320 userTrackerId, orderByComparator); 321 } 322 323 /** 324 * Returns all the user tracker paths. 325 * 326 * @return the user tracker paths 327 * @throws SystemException if a system exception occurred 328 */ 329 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll() 330 throws com.liferay.portal.kernel.exception.SystemException { 331 return getPersistence().findAll(); 332 } 333 334 /** 335 * Returns a range of all the user tracker paths. 336 * 337 * <p> 338 * 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. 339 * </p> 340 * 341 * @param start the lower bound of the range of user tracker paths 342 * @param end the upper bound of the range of user tracker paths (not inclusive) 343 * @return the range of user tracker paths 344 * @throws SystemException if a system exception occurred 345 */ 346 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll( 347 int start, int end) 348 throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().findAll(start, end); 350 } 351 352 /** 353 * Returns an ordered range of all the user tracker paths. 354 * 355 * <p> 356 * 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. 357 * </p> 358 * 359 * @param start the lower bound of the range of user tracker paths 360 * @param end the upper bound of the range of user tracker paths (not inclusive) 361 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 362 * @return the ordered range of user tracker paths 363 * @throws SystemException if a system exception occurred 364 */ 365 public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll( 366 int start, int end, 367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 368 throws com.liferay.portal.kernel.exception.SystemException { 369 return getPersistence().findAll(start, end, orderByComparator); 370 } 371 372 /** 373 * Removes all the user tracker paths where userTrackerId = ? from the database. 374 * 375 * @param userTrackerId the user tracker ID 376 * @throws SystemException if a system exception occurred 377 */ 378 public static void removeByUserTrackerId(long userTrackerId) 379 throws com.liferay.portal.kernel.exception.SystemException { 380 getPersistence().removeByUserTrackerId(userTrackerId); 381 } 382 383 /** 384 * Removes all the user tracker paths from the database. 385 * 386 * @throws SystemException if a system exception occurred 387 */ 388 public static void removeAll() 389 throws com.liferay.portal.kernel.exception.SystemException { 390 getPersistence().removeAll(); 391 } 392 393 /** 394 * Returns the number of user tracker paths where userTrackerId = ?. 395 * 396 * @param userTrackerId the user tracker ID 397 * @return the number of matching user tracker paths 398 * @throws SystemException if a system exception occurred 399 */ 400 public static int countByUserTrackerId(long userTrackerId) 401 throws com.liferay.portal.kernel.exception.SystemException { 402 return getPersistence().countByUserTrackerId(userTrackerId); 403 } 404 405 /** 406 * Returns the number of user tracker paths. 407 * 408 * @return the number of user tracker paths 409 * @throws SystemException if a system exception occurred 410 */ 411 public static int countAll() 412 throws com.liferay.portal.kernel.exception.SystemException { 413 return getPersistence().countAll(); 414 } 415 416 public static UserTrackerPathPersistence getPersistence() { 417 if (_persistence == null) { 418 _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName()); 419 420 ReferenceRegistry.registerReference(UserTrackerPathUtil.class, 421 "_persistence"); 422 } 423 424 return _persistence; 425 } 426 427 public void setPersistence(UserTrackerPathPersistence persistence) { 428 _persistence = persistence; 429 430 ReferenceRegistry.registerReference(UserTrackerPathUtil.class, 431 "_persistence"); 432 } 433 434 private static UserTrackerPathPersistence _persistence; 435 }