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