1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.model.BrowserTracker;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="BrowserTrackerUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       BrowserTrackerPersistence
34   * @see       BrowserTrackerPersistenceImpl
35   * @generated
36   */
37  public class BrowserTrackerUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static BrowserTracker remove(BrowserTracker browserTracker)
65          throws SystemException {
66          return getPersistence().remove(browserTracker);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static BrowserTracker update(BrowserTracker browserTracker,
73          boolean merge) throws SystemException {
74          return getPersistence().update(browserTracker, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.BrowserTracker browserTracker) {
79          getPersistence().cacheResult(browserTracker);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.BrowserTracker> browserTrackers) {
84          getPersistence().cacheResult(browserTrackers);
85      }
86  
87      public static com.liferay.portal.model.BrowserTracker create(
88          long browserTrackerId) {
89          return getPersistence().create(browserTrackerId);
90      }
91  
92      public static com.liferay.portal.model.BrowserTracker remove(
93          long browserTrackerId)
94          throws com.liferay.portal.NoSuchBrowserTrackerException,
95              com.liferay.portal.SystemException {
96          return getPersistence().remove(browserTrackerId);
97      }
98  
99      /**
100      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
101      */
102     public static com.liferay.portal.model.BrowserTracker update(
103         com.liferay.portal.model.BrowserTracker browserTracker)
104         throws com.liferay.portal.SystemException {
105         return getPersistence().update(browserTracker);
106     }
107 
108     public static com.liferay.portal.model.BrowserTracker updateImpl(
109         com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().updateImpl(browserTracker, merge);
112     }
113 
114     public static com.liferay.portal.model.BrowserTracker findByPrimaryKey(
115         long browserTrackerId)
116         throws com.liferay.portal.NoSuchBrowserTrackerException,
117             com.liferay.portal.SystemException {
118         return getPersistence().findByPrimaryKey(browserTrackerId);
119     }
120 
121     public static com.liferay.portal.model.BrowserTracker fetchByPrimaryKey(
122         long browserTrackerId) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByPrimaryKey(browserTrackerId);
124     }
125 
126     public static com.liferay.portal.model.BrowserTracker findByUserId(
127         long userId)
128         throws com.liferay.portal.NoSuchBrowserTrackerException,
129             com.liferay.portal.SystemException {
130         return getPersistence().findByUserId(userId);
131     }
132 
133     public static com.liferay.portal.model.BrowserTracker fetchByUserId(
134         long userId) throws com.liferay.portal.SystemException {
135         return getPersistence().fetchByUserId(userId);
136     }
137 
138     public static com.liferay.portal.model.BrowserTracker fetchByUserId(
139         long userId, boolean retrieveFromCache)
140         throws com.liferay.portal.SystemException {
141         return getPersistence().fetchByUserId(userId, retrieveFromCache);
142     }
143 
144     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll()
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findAll();
147     }
148 
149     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
150         int start, int end) throws com.liferay.portal.SystemException {
151         return getPersistence().findAll(start, end);
152     }
153 
154     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
155         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException {
157         return getPersistence().findAll(start, end, obc);
158     }
159 
160     public static void removeByUserId(long userId)
161         throws com.liferay.portal.NoSuchBrowserTrackerException,
162             com.liferay.portal.SystemException {
163         getPersistence().removeByUserId(userId);
164     }
165 
166     public static void removeAll() throws com.liferay.portal.SystemException {
167         getPersistence().removeAll();
168     }
169 
170     public static int countByUserId(long userId)
171         throws com.liferay.portal.SystemException {
172         return getPersistence().countByUserId(userId);
173     }
174 
175     public static int countAll() throws com.liferay.portal.SystemException {
176         return getPersistence().countAll();
177     }
178 
179     public static BrowserTrackerPersistence getPersistence() {
180         if (_persistence == null) {
181             _persistence = (BrowserTrackerPersistence)PortalBeanLocatorUtil.locate(BrowserTrackerPersistence.class.getName());
182         }
183 
184         return _persistence;
185     }
186 
187     public void setPersistence(BrowserTrackerPersistence persistence) {
188         _persistence = persistence;
189     }
190 
191     private static BrowserTrackerPersistence _persistence;
192 }