com.liferay.portal.service.persistence
Class UserTrackerUtil
java.lang.Object
com.liferay.portal.service.persistence.UserTrackerUtil
public class UserTrackerUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByCompanyId(long companyId)
|
static int |
countBySessionId(java.lang.String sessionId)
|
static int |
countByUserId(long userId)
|
static UserTracker |
create(long userTrackerId)
|
static UserTracker |
fetchByPrimaryKey(long userTrackerId)
|
static java.util.List<UserTracker> |
findAll()
|
static java.util.List<UserTracker> |
findAll(int start,
int end)
|
static java.util.List<UserTracker> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker[] |
findByCompanyId_PrevAndNext(long userTrackerId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserTracker> |
findByCompanyId(long companyId)
|
static java.util.List<UserTracker> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<UserTracker> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findByPrimaryKey(long userTrackerId)
|
static UserTracker |
findBySessionId_First(java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findBySessionId_Last(java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker[] |
findBySessionId_PrevAndNext(long userTrackerId,
java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserTracker> |
findBySessionId(java.lang.String sessionId)
|
static java.util.List<UserTracker> |
findBySessionId(java.lang.String sessionId,
int start,
int end)
|
static java.util.List<UserTracker> |
findBySessionId(java.lang.String sessionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserTracker[] |
findByUserId_PrevAndNext(long userTrackerId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserTracker> |
findByUserId(long userId)
|
static java.util.List<UserTracker> |
findByUserId(long userId,
int start,
int end)
|
static java.util.List<UserTracker> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static UserTrackerPersistence |
getPersistence()
|
static UserTracker |
remove(long userTrackerId)
|
static UserTracker |
remove(UserTracker userTracker)
|
static void |
removeAll()
|
static void |
removeByCompanyId(long companyId)
|
static void |
removeBySessionId(java.lang.String sessionId)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(UserTrackerPersistence persistence)
|
static UserTracker |
update(UserTracker userTracker)
Deprecated. Use update(UserTracker userTracker, boolean merge) . |
static UserTracker |
update(UserTracker userTracker,
boolean merge)
Add, update, or merge, the entity. |
static UserTracker |
updateImpl(UserTracker userTracker,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserTrackerUtil
public UserTrackerUtil()
create
public static UserTracker create(long userTrackerId)
remove
public static UserTracker remove(long userTrackerId)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
remove
public static UserTracker remove(UserTracker userTracker)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static UserTracker update(UserTracker userTracker)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(UserTracker userTracker, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static UserTracker update(UserTracker userTracker,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
userTracker
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when userTracker is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static UserTracker updateImpl(UserTracker userTracker,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static UserTracker findByPrimaryKey(long userTrackerId)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static UserTracker fetchByPrimaryKey(long userTrackerId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<UserTracker> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<UserTracker> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<UserTracker> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static UserTracker findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findByCompanyId_Last
public static UserTracker findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findByCompanyId_PrevAndNext
public static UserTracker[] findByCompanyId_PrevAndNext(long userTrackerId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserTracker> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserTracker> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserTracker> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static UserTracker findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findByUserId_Last
public static UserTracker findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findByUserId_PrevAndNext
public static UserTracker[] findByUserId_PrevAndNext(long userTrackerId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findBySessionId
public static java.util.List<UserTracker> findBySessionId(java.lang.String sessionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySessionId
public static java.util.List<UserTracker> findBySessionId(java.lang.String sessionId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySessionId
public static java.util.List<UserTracker> findBySessionId(java.lang.String sessionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySessionId_First
public static UserTracker findBySessionId_First(java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findBySessionId_Last
public static UserTracker findBySessionId_Last(java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findBySessionId_PrevAndNext
public static UserTracker[] findBySessionId_PrevAndNext(long userTrackerId,
java.lang.String sessionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserTrackerException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserTrackerException
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserTracker> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserTracker> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserTracker> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeBySessionId
public static void removeBySessionId(java.lang.String sessionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countBySessionId
public static int countBySessionId(java.lang.String sessionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static UserTrackerPersistence getPersistence()
setPersistence
public void setPersistence(UserTrackerPersistence persistence)