com.liferay.portal.service.persistence
Class BrowserTrackerUtil

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

public class BrowserTrackerUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
BrowserTrackerUtil()
           
 
Method Summary
static void cacheResult(BrowserTracker browserTracker)
           
static void cacheResult(java.util.List<BrowserTracker> browserTrackers)
           
static void clearCache()
           
static int countAll()
           
static int countByUserId(long userId)
           
static BrowserTracker create(long browserTrackerId)
           
static BrowserTracker fetchByPrimaryKey(long browserTrackerId)
           
static BrowserTracker fetchByUserId(long userId)
           
static BrowserTracker fetchByUserId(long userId, boolean retrieveFromCache)
           
static java.util.List<BrowserTracker> findAll()
           
static java.util.List<BrowserTracker> findAll(int start, int end)
           
static java.util.List<BrowserTracker> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static BrowserTracker findByPrimaryKey(long browserTrackerId)
           
static BrowserTracker findByUserId(long userId)
           
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 BrowserTrackerPersistence getPersistence()
           
static BrowserTracker remove(BrowserTracker browserTracker)
           
static BrowserTracker remove(long browserTrackerId)
           
static void removeAll()
           
static void removeByUserId(long userId)
           
 void setPersistence(BrowserTrackerPersistence persistence)
           
static BrowserTracker update(BrowserTracker browserTracker)
          Deprecated. Use update(BrowserTracker browserTracker, boolean merge).
static BrowserTracker update(BrowserTracker browserTracker, boolean merge)
          Add, update, or merge, the entity.
static BrowserTracker updateImpl(BrowserTracker browserTracker, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserTrackerUtil

public BrowserTrackerUtil()
Method Detail

cacheResult

public static void cacheResult(BrowserTracker browserTracker)

cacheResult

public static void cacheResult(java.util.List<BrowserTracker> browserTrackers)

clearCache

public static void clearCache()

create

public static BrowserTracker create(long browserTrackerId)

remove

public static BrowserTracker remove(long browserTrackerId)
                             throws NoSuchBrowserTrackerException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchBrowserTrackerException
com.liferay.portal.SystemException

remove

public static BrowserTracker remove(BrowserTracker browserTracker)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static BrowserTracker update(BrowserTracker browserTracker)
                             throws com.liferay.portal.SystemException
Deprecated. Use update(BrowserTracker browserTracker, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static BrowserTracker update(BrowserTracker browserTracker,
                                    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:
browserTracker - the entity to add, update, or merge
merge - 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 browserTracker 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 BrowserTracker updateImpl(BrowserTracker browserTracker,
                                        boolean merge)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static BrowserTracker findByPrimaryKey(long browserTrackerId)
                                       throws NoSuchBrowserTrackerException,
                                              com.liferay.portal.SystemException
Throws:
NoSuchBrowserTrackerException
com.liferay.portal.SystemException

fetchByPrimaryKey

public static BrowserTracker fetchByPrimaryKey(long browserTrackerId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static BrowserTracker findByUserId(long userId)
                                   throws NoSuchBrowserTrackerException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchBrowserTrackerException
com.liferay.portal.SystemException

fetchByUserId

public static BrowserTracker fetchByUserId(long userId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByUserId

public static BrowserTracker fetchByUserId(long userId,
                                           boolean retrieveFromCache)
                                    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)
                                                             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<BrowserTracker> findAll()
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<BrowserTracker> findAll(int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<BrowserTracker> findAll(int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

public static void removeByUserId(long userId)
                           throws NoSuchBrowserTrackerException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchBrowserTrackerException
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      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

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static BrowserTrackerPersistence getPersistence()

setPersistence

public void setPersistence(BrowserTrackerPersistence persistence)