1
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
37 public class BrowserTrackerUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
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
64 public static BrowserTracker remove(BrowserTracker browserTracker)
65 throws SystemException {
66 return getPersistence().remove(browserTracker);
67 }
68
69
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
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 }