public class UserTrackerPathUtil
extends java.lang.Object
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
UserTrackerPathPersistence
Constructor and Description |
---|
UserTrackerPathUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.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()
Returns the number of user tracker paths.
|
static int |
countByUserTrackerId(long userTrackerId)
Returns the number of user tracker paths where userTrackerId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static UserTrackerPath |
create(long userTrackerPathId)
Creates a new user tracker path with the primary key.
|
static UserTrackerPath |
fetchByPrimaryKey(long userTrackerPathId)
Returns the user tracker path with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,UserTrackerPath> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static UserTrackerPath |
fetchByUserTrackerId_First(long userTrackerId,
OrderByComparator<UserTrackerPath> orderByComparator)
Returns the first user tracker path in the ordered set where userTrackerId = ?.
|
static UserTrackerPath |
fetchByUserTrackerId_Last(long userTrackerId,
OrderByComparator<UserTrackerPath> orderByComparator)
Returns the last user tracker path in the ordered set where userTrackerId = ?.
|
static java.util.List<UserTrackerPath> |
findAll()
Returns all the user tracker paths.
|
static java.util.List<UserTrackerPath> |
findAll(int start,
int end)
Returns a range of all the user tracker paths.
|
static java.util.List<UserTrackerPath> |
findAll(int start,
int end,
OrderByComparator<UserTrackerPath> orderByComparator)
Returns an ordered range of all the user tracker paths.
|
static java.util.List<UserTrackerPath> |
findAll(int start,
int end,
OrderByComparator<UserTrackerPath> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the user tracker paths.
|
static UserTrackerPath |
findByPrimaryKey(long userTrackerPathId)
Returns 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<UserTrackerPath> orderByComparator)
Returns the first user tracker path in the ordered set where userTrackerId = ?.
|
static UserTrackerPath |
findByUserTrackerId_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 java.util.List<UserTrackerPath> |
findByUserTrackerId(long userTrackerId)
Returns all the user tracker paths where userTrackerId = ?.
|
static java.util.List<UserTrackerPath> |
findByUserTrackerId(long userTrackerId,
int start,
int end)
Returns a range of all the user tracker paths where userTrackerId = ?.
|
static java.util.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 java.util.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 java.util.List<UserTrackerPath> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<UserTrackerPath> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<UserTrackerPath> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<UserTrackerPath> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static UserTrackerPathPersistence |
getPersistence() |
static UserTrackerPath |
remove(long userTrackerPathId)
Removes the user tracker path with the primary key from the database.
|
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.
|
static UserTrackerPath |
update(UserTrackerPath userTrackerPath) |
static UserTrackerPath |
update(UserTrackerPath userTrackerPath,
ServiceContext serviceContext) |
static UserTrackerPath |
updateImpl(UserTrackerPath userTrackerPath) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(UserTrackerPath userTrackerPath)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.Map<java.io.Serializable,UserTrackerPath> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator)
public static UserTrackerPath update(UserTrackerPath userTrackerPath)
public static UserTrackerPath update(UserTrackerPath userTrackerPath, ServiceContext serviceContext)
public static java.util.List<UserTrackerPath> findByUserTrackerId(long userTrackerId)
userTrackerId
- the user tracker IDpublic static java.util.List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
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)public static java.util.List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
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 (optionally null
)public static java.util.List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static UserTrackerPath findByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserTrackerPathException
- if a matching user tracker path could not be foundpublic static UserTrackerPath fetchByUserTrackerId_First(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator)
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user tracker path could not be foundpublic static UserTrackerPath findByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserTrackerPathException
- if a matching user tracker path could not be foundpublic static UserTrackerPath fetchByUserTrackerId_Last(long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator)
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user tracker path could not be foundpublic static UserTrackerPath[] findByUserTrackerId_PrevAndNext(long userTrackerPathId, long userTrackerId, OrderByComparator<UserTrackerPath> orderByComparator) throws NoSuchUserTrackerPathException
userTrackerPathId
- the primary key of the current user tracker pathuserTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserTrackerPathException
- if a user tracker path with the primary key could not be foundpublic static void removeByUserTrackerId(long userTrackerId)
userTrackerId
- the user tracker IDpublic static int countByUserTrackerId(long userTrackerId)
userTrackerId
- the user tracker IDpublic static void cacheResult(UserTrackerPath userTrackerPath)
userTrackerPath
- the user tracker pathpublic static void cacheResult(java.util.List<UserTrackerPath> userTrackerPaths)
userTrackerPaths
- the user tracker pathspublic static UserTrackerPath create(long userTrackerPathId)
userTrackerPathId
- the primary key for the new user tracker pathpublic static UserTrackerPath remove(long userTrackerPathId) throws NoSuchUserTrackerPathException
userTrackerPathId
- the primary key of the user tracker pathNoSuchUserTrackerPathException
- if a user tracker path with the primary key could not be foundpublic static UserTrackerPath updateImpl(UserTrackerPath userTrackerPath)
public static UserTrackerPath findByPrimaryKey(long userTrackerPathId) throws NoSuchUserTrackerPathException
NoSuchUserTrackerPathException
if it could not be found.userTrackerPathId
- the primary key of the user tracker pathNoSuchUserTrackerPathException
- if a user tracker path with the primary key could not be foundpublic static UserTrackerPath fetchByPrimaryKey(long userTrackerPathId)
null
if it could not be found.userTrackerPathId
- the primary key of the user tracker pathnull
if a user tracker path with the primary key could not be foundpublic static java.util.List<UserTrackerPath> findAll()
public static java.util.List<UserTrackerPath> findAll(int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
start
- the lower bound of the range of user tracker pathsend
- the upper bound of the range of user tracker paths (not inclusive)public static java.util.List<UserTrackerPath> findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
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 (optionally null
)public static java.util.List<UserTrackerPath> findAll(int start, int end, OrderByComparator<UserTrackerPath> orderByComparator, boolean useFinderCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static UserTrackerPathPersistence getPersistence()