1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  import com.liferay.portal.model.BrowserTracker;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="BrowserTrackerUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       BrowserTrackerPersistence
42   * @see       BrowserTrackerPersistenceImpl
43   * @generated
44   */
45  public class BrowserTrackerUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static BrowserTracker remove(BrowserTracker browserTracker)
73          throws SystemException {
74          return getPersistence().remove(browserTracker);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static BrowserTracker update(BrowserTracker browserTracker,
81          boolean merge) throws SystemException {
82          return getPersistence().update(browserTracker, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portal.model.BrowserTracker browserTracker) {
87          getPersistence().cacheResult(browserTracker);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portal.model.BrowserTracker> browserTrackers) {
92          getPersistence().cacheResult(browserTrackers);
93      }
94  
95      public static com.liferay.portal.model.BrowserTracker create(
96          long browserTrackerId) {
97          return getPersistence().create(browserTrackerId);
98      }
99  
100     public static com.liferay.portal.model.BrowserTracker remove(
101         long browserTrackerId)
102         throws com.liferay.portal.NoSuchBrowserTrackerException,
103             com.liferay.portal.SystemException {
104         return getPersistence().remove(browserTrackerId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portal.model.BrowserTracker update(
111         com.liferay.portal.model.BrowserTracker browserTracker)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(browserTracker);
114     }
115 
116     public static com.liferay.portal.model.BrowserTracker updateImpl(
117         com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(browserTracker, merge);
120     }
121 
122     public static com.liferay.portal.model.BrowserTracker findByPrimaryKey(
123         long browserTrackerId)
124         throws com.liferay.portal.NoSuchBrowserTrackerException,
125             com.liferay.portal.SystemException {
126         return getPersistence().findByPrimaryKey(browserTrackerId);
127     }
128 
129     public static com.liferay.portal.model.BrowserTracker fetchByPrimaryKey(
130         long browserTrackerId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(browserTrackerId);
132     }
133 
134     public static com.liferay.portal.model.BrowserTracker findByUserId(
135         long userId)
136         throws com.liferay.portal.NoSuchBrowserTrackerException,
137             com.liferay.portal.SystemException {
138         return getPersistence().findByUserId(userId);
139     }
140 
141     public static com.liferay.portal.model.BrowserTracker fetchByUserId(
142         long userId) throws com.liferay.portal.SystemException {
143         return getPersistence().fetchByUserId(userId);
144     }
145 
146     public static com.liferay.portal.model.BrowserTracker fetchByUserId(
147         long userId, boolean retrieveFromCache)
148         throws com.liferay.portal.SystemException {
149         return getPersistence().fetchByUserId(userId, retrieveFromCache);
150     }
151 
152     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll()
153         throws com.liferay.portal.SystemException {
154         return getPersistence().findAll();
155     }
156 
157     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
158         int start, int end) throws com.liferay.portal.SystemException {
159         return getPersistence().findAll(start, end);
160     }
161 
162     public static java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
163         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException {
165         return getPersistence().findAll(start, end, obc);
166     }
167 
168     public static void removeByUserId(long userId)
169         throws com.liferay.portal.NoSuchBrowserTrackerException,
170             com.liferay.portal.SystemException {
171         getPersistence().removeByUserId(userId);
172     }
173 
174     public static void removeAll() throws com.liferay.portal.SystemException {
175         getPersistence().removeAll();
176     }
177 
178     public static int countByUserId(long userId)
179         throws com.liferay.portal.SystemException {
180         return getPersistence().countByUserId(userId);
181     }
182 
183     public static int countAll() throws com.liferay.portal.SystemException {
184         return getPersistence().countAll();
185     }
186 
187     public static BrowserTrackerPersistence getPersistence() {
188         if (_persistence == null) {
189             _persistence = (BrowserTrackerPersistence)PortalBeanLocatorUtil.locate(BrowserTrackerPersistence.class.getName());
190         }
191 
192         return _persistence;
193     }
194 
195     public void setPersistence(BrowserTrackerPersistence persistence) {
196         _persistence = persistence;
197     }
198 
199     private static BrowserTrackerPersistence _persistence;
200 }