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