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.PortletPreferences;
21
22 import java.util.List;
23
24
37 public class PortletPreferencesUtil {
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 PortletPreferences remove(
65 PortletPreferences portletPreferences) throws SystemException {
66 return getPersistence().remove(portletPreferences);
67 }
68
69
72 public static PortletPreferences update(
73 PortletPreferences portletPreferences, boolean merge)
74 throws SystemException {
75 return getPersistence().update(portletPreferences, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portal.model.PortletPreferences portletPreferences) {
80 getPersistence().cacheResult(portletPreferences);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses) {
85 getPersistence().cacheResult(portletPreferenceses);
86 }
87
88 public static com.liferay.portal.model.PortletPreferences create(
89 long portletPreferencesId) {
90 return getPersistence().create(portletPreferencesId);
91 }
92
93 public static com.liferay.portal.model.PortletPreferences remove(
94 long portletPreferencesId)
95 throws com.liferay.portal.NoSuchPortletPreferencesException,
96 com.liferay.portal.SystemException {
97 return getPersistence().remove(portletPreferencesId);
98 }
99
100
103 public static com.liferay.portal.model.PortletPreferences update(
104 com.liferay.portal.model.PortletPreferences portletPreferences)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(portletPreferences);
107 }
108
109 public static com.liferay.portal.model.PortletPreferences updateImpl(
110 com.liferay.portal.model.PortletPreferences portletPreferences,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(portletPreferences, merge);
113 }
114
115 public static com.liferay.portal.model.PortletPreferences findByPrimaryKey(
116 long portletPreferencesId)
117 throws com.liferay.portal.NoSuchPortletPreferencesException,
118 com.liferay.portal.SystemException {
119 return getPersistence().findByPrimaryKey(portletPreferencesId);
120 }
121
122 public static com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
123 long portletPreferencesId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(portletPreferencesId);
125 }
126
127 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
128 long plid) throws com.liferay.portal.SystemException {
129 return getPersistence().findByPlid(plid);
130 }
131
132 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
133 long plid, int start, int end)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findByPlid(plid, start, end);
136 }
137
138 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
139 long plid, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByPlid(plid, start, end, obc);
143 }
144
145 public static com.liferay.portal.model.PortletPreferences findByPlid_First(
146 long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.NoSuchPortletPreferencesException,
148 com.liferay.portal.SystemException {
149 return getPersistence().findByPlid_First(plid, obc);
150 }
151
152 public static com.liferay.portal.model.PortletPreferences findByPlid_Last(
153 long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.NoSuchPortletPreferencesException,
155 com.liferay.portal.SystemException {
156 return getPersistence().findByPlid_Last(plid, obc);
157 }
158
159 public static com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
160 long portletPreferencesId, long plid,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.NoSuchPortletPreferencesException,
163 com.liferay.portal.SystemException {
164 return getPersistence()
165 .findByPlid_PrevAndNext(portletPreferencesId, plid, obc);
166 }
167
168 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
169 long plid, java.lang.String portletId)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findByP_P(plid, portletId);
172 }
173
174 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
175 long plid, java.lang.String portletId, int start, int end)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().findByP_P(plid, portletId, start, end);
178 }
179
180 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
181 long plid, java.lang.String portletId, int start, int end,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findByP_P(plid, portletId, start, end, obc);
185 }
186
187 public static com.liferay.portal.model.PortletPreferences findByP_P_First(
188 long plid, java.lang.String portletId,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.NoSuchPortletPreferencesException,
191 com.liferay.portal.SystemException {
192 return getPersistence().findByP_P_First(plid, portletId, obc);
193 }
194
195 public static com.liferay.portal.model.PortletPreferences findByP_P_Last(
196 long plid, java.lang.String portletId,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.NoSuchPortletPreferencesException,
199 com.liferay.portal.SystemException {
200 return getPersistence().findByP_P_Last(plid, portletId, obc);
201 }
202
203 public static com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
204 long portletPreferencesId, long plid, java.lang.String portletId,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.NoSuchPortletPreferencesException,
207 com.liferay.portal.SystemException {
208 return getPersistence()
209 .findByP_P_PrevAndNext(portletPreferencesId, plid,
210 portletId, obc);
211 }
212
213 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
214 long ownerId, int ownerType, long plid)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findByO_O_P(ownerId, ownerType, plid);
217 }
218
219 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
220 long ownerId, int ownerType, long plid, int start, int end)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findByO_O_P(ownerId, ownerType, plid, start, end);
223 }
224
225 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
226 long ownerId, int ownerType, long plid, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.SystemException {
229 return getPersistence()
230 .findByO_O_P(ownerId, ownerType, plid, start, end, obc);
231 }
232
233 public static com.liferay.portal.model.PortletPreferences findByO_O_P_First(
234 long ownerId, int ownerType, long plid,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.NoSuchPortletPreferencesException,
237 com.liferay.portal.SystemException {
238 return getPersistence().findByO_O_P_First(ownerId, ownerType, plid, obc);
239 }
240
241 public static com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
242 long ownerId, int ownerType, long plid,
243 com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.NoSuchPortletPreferencesException,
245 com.liferay.portal.SystemException {
246 return getPersistence().findByO_O_P_Last(ownerId, ownerType, plid, obc);
247 }
248
249 public static com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
250 long portletPreferencesId, long ownerId, int ownerType, long plid,
251 com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.NoSuchPortletPreferencesException,
253 com.liferay.portal.SystemException {
254 return getPersistence()
255 .findByO_O_P_PrevAndNext(portletPreferencesId, ownerId,
256 ownerType, plid, obc);
257 }
258
259 public static com.liferay.portal.model.PortletPreferences findByO_O_P_P(
260 long ownerId, int ownerType, long plid, java.lang.String portletId)
261 throws com.liferay.portal.NoSuchPortletPreferencesException,
262 com.liferay.portal.SystemException {
263 return getPersistence()
264 .findByO_O_P_P(ownerId, ownerType, plid, portletId);
265 }
266
267 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
268 long ownerId, int ownerType, long plid, java.lang.String portletId)
269 throws com.liferay.portal.SystemException {
270 return getPersistence()
271 .fetchByO_O_P_P(ownerId, ownerType, plid, portletId);
272 }
273
274 public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
275 long ownerId, int ownerType, long plid, java.lang.String portletId,
276 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
277 return getPersistence()
278 .fetchByO_O_P_P(ownerId, ownerType, plid, portletId,
279 retrieveFromCache);
280 }
281
282 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
283 throws com.liferay.portal.SystemException {
284 return getPersistence().findAll();
285 }
286
287 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
288 int start, int end) throws com.liferay.portal.SystemException {
289 return getPersistence().findAll(start, end);
290 }
291
292 public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
293 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
294 throws com.liferay.portal.SystemException {
295 return getPersistence().findAll(start, end, obc);
296 }
297
298 public static void removeByPlid(long plid)
299 throws com.liferay.portal.SystemException {
300 getPersistence().removeByPlid(plid);
301 }
302
303 public static void removeByP_P(long plid, java.lang.String portletId)
304 throws com.liferay.portal.SystemException {
305 getPersistence().removeByP_P(plid, portletId);
306 }
307
308 public static void removeByO_O_P(long ownerId, int ownerType, long plid)
309 throws com.liferay.portal.SystemException {
310 getPersistence().removeByO_O_P(ownerId, ownerType, plid);
311 }
312
313 public static void removeByO_O_P_P(long ownerId, int ownerType, long plid,
314 java.lang.String portletId)
315 throws com.liferay.portal.NoSuchPortletPreferencesException,
316 com.liferay.portal.SystemException {
317 getPersistence().removeByO_O_P_P(ownerId, ownerType, plid, portletId);
318 }
319
320 public static void removeAll() throws com.liferay.portal.SystemException {
321 getPersistence().removeAll();
322 }
323
324 public static int countByPlid(long plid)
325 throws com.liferay.portal.SystemException {
326 return getPersistence().countByPlid(plid);
327 }
328
329 public static int countByP_P(long plid, java.lang.String portletId)
330 throws com.liferay.portal.SystemException {
331 return getPersistence().countByP_P(plid, portletId);
332 }
333
334 public static int countByO_O_P(long ownerId, int ownerType, long plid)
335 throws com.liferay.portal.SystemException {
336 return getPersistence().countByO_O_P(ownerId, ownerType, plid);
337 }
338
339 public static int countByO_O_P_P(long ownerId, int ownerType, long plid,
340 java.lang.String portletId) throws com.liferay.portal.SystemException {
341 return getPersistence()
342 .countByO_O_P_P(ownerId, ownerType, plid, portletId);
343 }
344
345 public static int countAll() throws com.liferay.portal.SystemException {
346 return getPersistence().countAll();
347 }
348
349 public static PortletPreferencesPersistence getPersistence() {
350 if (_persistence == null) {
351 _persistence = (PortletPreferencesPersistence)PortalBeanLocatorUtil.locate(PortletPreferencesPersistence.class.getName());
352 }
353
354 return _persistence;
355 }
356
357 public void setPersistence(PortletPreferencesPersistence persistence) {
358 _persistence = persistence;
359 }
360
361 private static PortletPreferencesPersistence _persistence;
362 }