Class UserTrackerPathUtil
com.liferay.portal.service.persistence.impl.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.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(UserTrackerPath userTrackerPath) Caches the user tracker path in the entity cache if it is enabled.static voidcacheResult(List<UserTrackerPath> userTrackerPaths) Caches the user tracker paths in the entity cache if it is enabled.static voidstatic voidclearCache(UserTrackerPath userTrackerPath) static intcountAll()Returns the number of user tracker paths.static intcountByUserTrackerId(long userTrackerId) Returns the number of user tracker paths where userTrackerId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static UserTrackerPathcreate(long userTrackerPathId) Creates a new user tracker path with the primary key.static UserTrackerPathfetchByPrimaryKey(long userTrackerPathId) Returns the user tracker path with the primary key or returnsnullif it could not be found.static Map<Serializable,UserTrackerPath> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static UserTrackerPathfetchByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the first user tracker path in the ordered set where userTrackerId = ?.static UserTrackerPathfetchByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the last user tracker path in the ordered set where userTrackerId = ?.static List<UserTrackerPath>findAll()Returns all the user tracker paths.static List<UserTrackerPath>findAll(int start, int end) Returns a range of all the user tracker paths.static List<UserTrackerPath>findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) Returns an ordered range of all the user tracker paths.static List<UserTrackerPath>findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user tracker paths.static UserTrackerPathfindByPrimaryKey(long userTrackerPathId) Returns the user tracker path with the primary key or throws aNoSuchUserTrackerPathExceptionif it could not be found.static List<UserTrackerPath>findByUserTrackerId(long userTrackerId) Returns all the user tracker paths where userTrackerId = ?.static List<UserTrackerPath>findByUserTrackerId(long userTrackerId, int start, int end) Returns a range of all the user tracker paths where userTrackerId = ?.static List<UserTrackerPath>findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) Returns an ordered range of all the user tracker paths where userTrackerId = ?.static List<UserTrackerPath>findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user tracker paths where userTrackerId = ?.static UserTrackerPathfindByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the first user tracker path in the ordered set where userTrackerId = ?.static UserTrackerPathfindByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the last user tracker path in the ordered set where userTrackerId = ?.static UserTrackerPath[]findByUserTrackerId_PrevAndNext(long userTrackerPathId, long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?.static List<UserTrackerPath>findWithDynamicQuery(DynamicQuery dynamicQuery) static List<UserTrackerPath>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<UserTrackerPath>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) static UserTrackerPathPersistencestatic UserTrackerPathremove(long userTrackerPathId) Removes the user tracker path with the primary key from the database.static voidRemoves all the user tracker paths from the database.static voidremoveByUserTrackerId(long userTrackerId) Removes all the user tracker paths where userTrackerId = ? from the database.static voidsetPersistence(UserTrackerPathPersistence persistence) static UserTrackerPathupdate(UserTrackerPath userTrackerPath) static UserTrackerPathupdate(UserTrackerPath userTrackerPath, ServiceContext serviceContext) static UserTrackerPathupdateImpl(UserTrackerPath userTrackerPath)
-
Constructor Details
-
UserTrackerPathUtil
public UserTrackerPathUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) -
update
-
update
public static UserTrackerPath update(UserTrackerPath userTrackerPath, ServiceContext serviceContext) -
findByUserTrackerId
Returns all the user tracker paths where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker ID- Returns:
- the matching user tracker paths
-
findByUserTrackerId
Returns a range of all the user tracker paths where userTrackerId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
userTrackerId- the user tracker IDstart- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)- Returns:
- the range of matching user tracker paths
-
findByUserTrackerId
public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) Returns an ordered range of all the user tracker paths where userTrackerId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
userTrackerId- the user tracker IDstart- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user tracker paths
-
findByUserTrackerId
public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user tracker paths where userTrackerId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
userTrackerId- the user tracker IDstart- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user tracker paths
-
findByUserTrackerId_First
public static UserTrackerPath findByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException Returns the first user tracker path in the ordered set where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user tracker path
- Throws:
NoSuchUserTrackerPathException- if a matching user tracker path could not be foundNoSuchUserTrackerPathException
-
fetchByUserTrackerId_First
public static UserTrackerPath fetchByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the first user tracker path in the ordered set where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user tracker path, or
nullif a matching user tracker path could not be found
-
findByUserTrackerId_Last
public static UserTrackerPath findByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException Returns the last user tracker path in the ordered set where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user tracker path
- Throws:
NoSuchUserTrackerPathException- if a matching user tracker path could not be foundNoSuchUserTrackerPathException
-
fetchByUserTrackerId_Last
public static UserTrackerPath fetchByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) Returns the last user tracker path in the ordered set where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user tracker path, or
nullif a matching user tracker path could not be found
-
findByUserTrackerId_PrevAndNext
public static UserTrackerPath[] findByUserTrackerId_PrevAndNext(long userTrackerPathId, long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException Returns the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?.- Parameters:
userTrackerPathId- the primary key of the current user tracker pathuserTrackerId- the user tracker IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user tracker path
- Throws:
NoSuchUserTrackerPathException- if a user tracker path with the primary key could not be foundNoSuchUserTrackerPathException
-
removeByUserTrackerId
public static void removeByUserTrackerId(long userTrackerId) Removes all the user tracker paths where userTrackerId = ? from the database.- Parameters:
userTrackerId- the user tracker ID
-
countByUserTrackerId
public static int countByUserTrackerId(long userTrackerId) Returns the number of user tracker paths where userTrackerId = ?.- Parameters:
userTrackerId- the user tracker ID- Returns:
- the number of matching user tracker paths
-
cacheResult
Caches the user tracker path in the entity cache if it is enabled.- Parameters:
userTrackerPath- the user tracker path
-
cacheResult
Caches the user tracker paths in the entity cache if it is enabled.- Parameters:
userTrackerPaths- the user tracker paths
-
create
Creates a new user tracker path with the primary key. Does not add the user tracker path to the database.- Parameters:
userTrackerPathId- the primary key for the new user tracker path- Returns:
- the new user tracker path
-
remove
Removes the user tracker path with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
userTrackerPathId- the primary key of the user tracker path- Returns:
- the user tracker path that was removed
- Throws:
NoSuchUserTrackerPathException- if a user tracker path with the primary key could not be foundNoSuchUserTrackerPathException
-
updateImpl
-
findByPrimaryKey
public static UserTrackerPath findByPrimaryKey(long userTrackerPathId) throws NoSuchUserTrackerPathException Returns the user tracker path with the primary key or throws aNoSuchUserTrackerPathExceptionif it could not be found.- Parameters:
userTrackerPathId- the primary key of the user tracker path- Returns:
- the user tracker path
- Throws:
NoSuchUserTrackerPathException- if a user tracker path with the primary key could not be foundNoSuchUserTrackerPathException
-
fetchByPrimaryKey
Returns the user tracker path with the primary key or returnsnullif it could not be found.- Parameters:
userTrackerPathId- the primary key of the user tracker path- Returns:
- the user tracker path, or
nullif a user tracker path with the primary key could not be found
-
findAll
Returns all the user tracker paths.- Returns:
- the user tracker paths
-
findAll
Returns a range of all the user tracker paths.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
start- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)- Returns:
- the range of user tracker paths
-
findAll
public static List<UserTrackerPath> findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator) Returns an ordered range of all the user tracker paths.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
start- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of user tracker paths
-
findAll
public static List<UserTrackerPath> findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user tracker paths.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserTrackerPathModelImpl.- Parameters:
start- the lower bound of the range of user tracker pathsend- the upper bound of the range of user tracker paths (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of user tracker paths
-
removeAll
public static void removeAll()Removes all the user tracker paths from the database. -
countAll
public static int countAll()Returns the number of user tracker paths.- Returns:
- the number of user tracker paths
-
getPersistence
-
setPersistence
-