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