1
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
45 public class BrowserTrackerUtil {
46
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery);
59 }
60
61
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
72 public static BrowserTracker remove(BrowserTracker browserTracker)
73 throws SystemException {
74 return getPersistence().remove(browserTracker);
75 }
76
77
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
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 }