|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.UserTrackerPathUtil
@ProviderType public class UserTrackerPathUtil
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.
Caching information and settings can be found in portal.properties
UserTrackerPathPersistence
,
UserTrackerPathPersistenceImpl
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()
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 UserTrackerPath |
fetchByUserTrackerId_First(long userTrackerId,
OrderByComparator orderByComparator)
Returns the first user tracker path in the ordered set where userTrackerId = ?. |
static UserTrackerPath |
fetchByUserTrackerId_Last(long userTrackerId,
OrderByComparator 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 orderByComparator)
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 orderByComparator)
Returns the first user tracker path in the ordered set where userTrackerId = ?. |
static UserTrackerPath |
findByUserTrackerId_Last(long userTrackerId,
OrderByComparator orderByComparator)
Returns the last user tracker path in the ordered set where userTrackerId = ?. |
static UserTrackerPath[] |
findByUserTrackerId_PrevAndNext(long userTrackerPathId,
long userTrackerId,
OrderByComparator orderByComparator)
Returns the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = ?. |
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 orderByComparator)
Returns 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 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)
Deprecated. As of 6.2.0 |
static UserTrackerPath |
update(UserTrackerPath userTrackerPath)
|
static UserTrackerPath |
update(UserTrackerPath userTrackerPath,
ServiceContext serviceContext)
|
static UserTrackerPath |
updateImpl(UserTrackerPath userTrackerPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserTrackerPathUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(UserTrackerPath userTrackerPath)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<UserTrackerPath> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static UserTrackerPath update(UserTrackerPath userTrackerPath) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static UserTrackerPath update(UserTrackerPath userTrackerPath, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<UserTrackerPath> findByUserTrackerId(long userTrackerId) throws SystemException
userTrackerId
- the user tracker ID
SystemException
- if a system exception occurredpublic static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end) throws SystemException
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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
. If both orderByComparator
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.
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)
SystemException
- if a system exception occurredpublic static List<UserTrackerPath> findByUserTrackerId(long userTrackerId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
. If both orderByComparator
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.
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
)
SystemException
- if a system exception occurredpublic static UserTrackerPath findByUserTrackerId_First(long userTrackerId, OrderByComparator orderByComparator) throws NoSuchUserTrackerPathException, SystemException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserTrackerPathException
- if a matching user tracker path could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath fetchByUserTrackerId_First(long userTrackerId, OrderByComparator orderByComparator) throws SystemException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user tracker path could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath findByUserTrackerId_Last(long userTrackerId, OrderByComparator orderByComparator) throws NoSuchUserTrackerPathException, SystemException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserTrackerPathException
- if a matching user tracker path could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath fetchByUserTrackerId_Last(long userTrackerId, OrderByComparator orderByComparator) throws SystemException
userTrackerId
- the user tracker IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user tracker path could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath[] findByUserTrackerId_PrevAndNext(long userTrackerPathId, long userTrackerId, OrderByComparator orderByComparator) throws NoSuchUserTrackerPathException, SystemException
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 found
SystemException
- if a system exception occurredpublic static void removeByUserTrackerId(long userTrackerId) throws SystemException
userTrackerId
- the user tracker ID
SystemException
- if a system exception occurredpublic static int countByUserTrackerId(long userTrackerId) throws SystemException
userTrackerId
- the user tracker ID
SystemException
- if a system exception occurredpublic static void cacheResult(UserTrackerPath userTrackerPath)
userTrackerPath
- the user tracker pathpublic static void cacheResult(List<UserTrackerPath> userTrackerPaths)
userTrackerPaths
- the user tracker pathspublic static UserTrackerPath create(long userTrackerPathId)
userTrackerPathId
- the primary key for the new user tracker path
public static UserTrackerPath remove(long userTrackerPathId) throws NoSuchUserTrackerPathException, SystemException
userTrackerPathId
- the primary key of the user tracker path
NoSuchUserTrackerPathException
- if a user tracker path with the primary key could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath updateImpl(UserTrackerPath userTrackerPath) throws SystemException
SystemException
public static UserTrackerPath findByPrimaryKey(long userTrackerPathId) throws NoSuchUserTrackerPathException, SystemException
NoSuchUserTrackerPathException
if it could not be found.
userTrackerPathId
- the primary key of the user tracker path
NoSuchUserTrackerPathException
- if a user tracker path with the primary key could not be found
SystemException
- if a system exception occurredpublic static UserTrackerPath fetchByPrimaryKey(long userTrackerPathId) throws SystemException
null
if it could not be found.
userTrackerPathId
- the primary key of the user tracker path
null
if a user tracker path with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserTrackerPath> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<UserTrackerPath> findAll(int start, int end) throws SystemException
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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
. If both orderByComparator
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.
start
- the lower bound of the range of user tracker pathsend
- the upper bound of the range of user tracker paths (not inclusive)
SystemException
- if a system exception occurredpublic static List<UserTrackerPath> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from UserTrackerPathModelImpl
. If both orderByComparator
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.
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
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static UserTrackerPathPersistence getPersistence()
public void setPersistence(UserTrackerPathPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |