Liferay 6.0.5

com.liferay.portal.service.persistence
Class UserTrackerPathUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.UserTrackerPathUtil

public class UserTrackerPathUtil
extends Object

The persistence utility for the user tracker path service. This utility wraps 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.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
UserTrackerPathPersistence, UserTrackerPathPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
UserTrackerPathUtil()
           
 
Method Summary
static void cacheResult(List<UserTrackerPath> userTrackerPaths)
          Caches the user tracker paths in the entity cache if it is enabled.
static void cacheResult(UserTrackerPath userTrackerPath)
          Caches the user tracker path in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(UserTrackerPath userTrackerPath)
           
static int countAll()
          Counts all the user tracker paths.
static int countByUserTrackerId(long userTrackerId)
          Counts all the user tracker paths where userTrackerId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static UserTrackerPath create(long userTrackerPathId)
          Creates a new user tracker path with the primary key.
static UserTrackerPath fetchByPrimaryKey(long userTrackerPathId)
          Finds the user tracker path with the primary key or returns null if it could not be found.
static List<UserTrackerPath> findAll()
          Finds all the user tracker paths.
static List<UserTrackerPath> findAll(int start, int end)
          Finds a range of all the user tracker paths.
static List<UserTrackerPath> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user tracker paths.
static UserTrackerPath findByPrimaryKey(long userTrackerPathId)
          Finds the user tracker path with the primary key or throws a NoSuchUserTrackerPathException if it could not be found.
static UserTrackerPath findByUserTrackerId_First(long userTrackerId, OrderByComparator orderByComparator)
          Finds the first user tracker path in the ordered set where userTrackerId = ?.
static UserTrackerPath findByUserTrackerId_Last(long userTrackerId, OrderByComparator orderByComparator)
          Finds the last user tracker path in the ordered set where userTrackerId = ?.
static UserTrackerPath[] findByUserTrackerId_PrevAndNext(long userTrackerPathId, long userTrackerId, OrderByComparator orderByComparator)
          Finds the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?.
static List<UserTrackerPath> findByUserTrackerId(long userTrackerId)
          Finds all the user tracker paths where userTrackerId = ?.
static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end)
          Finds a range of all the user tracker paths where userTrackerId = ?.
static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user tracker paths 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 orderByComparator)
           
static UserTrackerPathPersistence getPersistence()
           
static UserTrackerPath remove(long userTrackerPathId)
          Removes the user tracker path with the primary key from the database.
static UserTrackerPath remove(UserTrackerPath userTrackerPath)
           
static void removeAll()
          Removes all the user tracker paths from the database.
static void removeByUserTrackerId(long userTrackerId)
          Removes all the user tracker paths where userTrackerId = ? from the database.
 void setPersistence(UserTrackerPathPersistence persistence)
           
static UserTrackerPath update(UserTrackerPath userTrackerPath, boolean merge)
           
static UserTrackerPath update(UserTrackerPath userTrackerPath, boolean merge, ServiceContext serviceContext)
           
static UserTrackerPath updateImpl(UserTrackerPath userTrackerPath, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTrackerPathUtil

public UserTrackerPathUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(UserTrackerPath userTrackerPath)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                         int start,
                                                         int end,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static UserTrackerPath update(UserTrackerPath userTrackerPath,
                                     boolean merge)
                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static UserTrackerPath update(UserTrackerPath userTrackerPath,
                                     boolean merge,
                                     ServiceContext serviceContext)
                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(UserTrackerPath userTrackerPath)
Caches the user tracker path in the entity cache if it is enabled.

Parameters:
userTrackerPath - the user tracker path to cache

cacheResult

public static void cacheResult(List<UserTrackerPath> userTrackerPaths)
Caches the user tracker paths in the entity cache if it is enabled.

Parameters:
userTrackerPaths - the user tracker paths to cache

create

public static UserTrackerPath create(long userTrackerPathId)
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

public static UserTrackerPath remove(long userTrackerPathId)
                              throws NoSuchUserTrackerPathException,
                                     SystemException
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 to remove
Returns:
the user tracker path that was removed
Throws:
NoSuchUserTrackerPathException - if a user tracker path with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static UserTrackerPath updateImpl(UserTrackerPath userTrackerPath,
                                         boolean merge)
                                  throws SystemException
Throws:
SystemException

findByPrimaryKey

public static UserTrackerPath findByPrimaryKey(long userTrackerPathId)
                                        throws NoSuchUserTrackerPathException,
                                               SystemException
Finds the user tracker path with the primary key or throws a NoSuchUserTrackerPathException if it could not be found.

Parameters:
userTrackerPathId - the primary key of the user tracker path to find
Returns:
the user tracker path
Throws:
NoSuchUserTrackerPathException - if a user tracker path with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static UserTrackerPath fetchByPrimaryKey(long userTrackerPathId)
                                         throws SystemException
Finds the user tracker path with the primary key or returns null if it could not be found.

Parameters:
userTrackerPathId - the primary key of the user tracker path to find
Returns:
the user tracker path, or null if a user tracker path with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserTrackerId

public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId)
                                                 throws SystemException
Finds all the user tracker paths where userTrackerId = ?.

Parameters:
userTrackerId - the user tracker id to search with
Returns:
the matching user tracker paths
Throws:
SystemException - if a system exception occurred

findByUserTrackerId

public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Finds a range of all the user tracker paths where userTrackerId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userTrackerId - the user tracker id to search with
start - the lower bound of the range of user tracker paths to return
end - the upper bound of the range of user tracker paths to return (not inclusive)
Returns:
the range of matching user tracker paths
Throws:
SystemException - if a system exception occurred

findByUserTrackerId

public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Finds an ordered range of all the user tracker paths where userTrackerId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userTrackerId - the user tracker id to search with
start - the lower bound of the range of user tracker paths to return
end - the upper bound of the range of user tracker paths to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user tracker paths
Throws:
SystemException - if a system exception occurred

findByUserTrackerId_First

public static UserTrackerPath findByUserTrackerId_First(long userTrackerId,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchUserTrackerPathException,
                                                        SystemException
Finds the first user tracker path in the ordered set where userTrackerId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userTrackerId - the user tracker id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user tracker path
Throws:
NoSuchUserTrackerPathException - if a matching user tracker path could not be found
SystemException - if a system exception occurred

findByUserTrackerId_Last

public static UserTrackerPath findByUserTrackerId_Last(long userTrackerId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchUserTrackerPathException,
                                                       SystemException
Finds the last user tracker path in the ordered set where userTrackerId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userTrackerId - the user tracker id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user tracker path
Throws:
NoSuchUserTrackerPathException - if a matching user tracker path could not be found
SystemException - if a system exception occurred

findByUserTrackerId_PrevAndNext

public static UserTrackerPath[] findByUserTrackerId_PrevAndNext(long userTrackerPathId,
                                                                long userTrackerId,
                                                                OrderByComparator orderByComparator)
                                                         throws NoSuchUserTrackerPathException,
                                                                SystemException
Finds the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userTrackerPathId - the primary key of the current user tracker path
userTrackerId - the user tracker id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user tracker path
Throws:
NoSuchUserTrackerPathException - if a user tracker path with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<UserTrackerPath> findAll()
                                     throws SystemException
Finds all the user tracker paths.

Returns:
the user tracker paths
Throws:
SystemException - if a system exception occurred

findAll

public static List<UserTrackerPath> findAll(int start,
                                            int end)
                                     throws SystemException
Finds a range of all the user tracker paths.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of user tracker paths to return
end - the upper bound of the range of user tracker paths to return (not inclusive)
Returns:
the range of user tracker paths
Throws:
SystemException - if a system exception occurred

findAll

public static List<UserTrackerPath> findAll(int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the user tracker paths.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of user tracker paths to return
end - the upper bound of the range of user tracker paths to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of user tracker paths
Throws:
SystemException - if a system exception occurred

removeByUserTrackerId

public static void removeByUserTrackerId(long userTrackerId)
                                  throws SystemException
Removes all the user tracker paths where userTrackerId = ? from the database.

Parameters:
userTrackerId - the user tracker id to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the user tracker paths from the database.

Throws:
SystemException - if a system exception occurred

countByUserTrackerId

public static int countByUserTrackerId(long userTrackerId)
                                throws SystemException
Counts all the user tracker paths where userTrackerId = ?.

Parameters:
userTrackerId - the user tracker id to search with
Returns:
the number of matching user tracker paths
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the user tracker paths.

Returns:
the number of user tracker paths
Throws:
SystemException - if a system exception occurred

getPersistence

public static UserTrackerPathPersistence getPersistence()

setPersistence

public void setPersistence(UserTrackerPathPersistence persistence)

Liferay 6.0.5