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