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.Website;
21
22 import java.util.List;
23
24
37 public class WebsiteUtil {
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 Website remove(Website website) throws SystemException {
65 return getPersistence().remove(website);
66 }
67
68
71 public static Website update(Website website, boolean merge)
72 throws SystemException {
73 return getPersistence().update(website, merge);
74 }
75
76 public static void cacheResult(com.liferay.portal.model.Website website) {
77 getPersistence().cacheResult(website);
78 }
79
80 public static void cacheResult(
81 java.util.List<com.liferay.portal.model.Website> websites) {
82 getPersistence().cacheResult(websites);
83 }
84
85 public static com.liferay.portal.model.Website create(long websiteId) {
86 return getPersistence().create(websiteId);
87 }
88
89 public static com.liferay.portal.model.Website remove(long websiteId)
90 throws com.liferay.portal.NoSuchWebsiteException,
91 com.liferay.portal.SystemException {
92 return getPersistence().remove(websiteId);
93 }
94
95
98 public static com.liferay.portal.model.Website update(
99 com.liferay.portal.model.Website website)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().update(website);
102 }
103
104 public static com.liferay.portal.model.Website updateImpl(
105 com.liferay.portal.model.Website website, boolean merge)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().updateImpl(website, merge);
108 }
109
110 public static com.liferay.portal.model.Website findByPrimaryKey(
111 long websiteId)
112 throws com.liferay.portal.NoSuchWebsiteException,
113 com.liferay.portal.SystemException {
114 return getPersistence().findByPrimaryKey(websiteId);
115 }
116
117 public static com.liferay.portal.model.Website fetchByPrimaryKey(
118 long websiteId) throws com.liferay.portal.SystemException {
119 return getPersistence().fetchByPrimaryKey(websiteId);
120 }
121
122 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
123 long companyId) throws com.liferay.portal.SystemException {
124 return getPersistence().findByCompanyId(companyId);
125 }
126
127 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
128 long companyId, int start, int end)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findByCompanyId(companyId, start, end);
131 }
132
133 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
134 long companyId, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.SystemException {
137 return getPersistence()
138 .findByCompanyId(companyId, start, end, orderByComparator);
139 }
140
141 public static com.liferay.portal.model.Website findByCompanyId_First(
142 long companyId,
143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144 throws com.liferay.portal.NoSuchWebsiteException,
145 com.liferay.portal.SystemException {
146 return getPersistence()
147 .findByCompanyId_First(companyId, orderByComparator);
148 }
149
150 public static com.liferay.portal.model.Website findByCompanyId_Last(
151 long companyId,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.NoSuchWebsiteException,
154 com.liferay.portal.SystemException {
155 return getPersistence()
156 .findByCompanyId_Last(companyId, orderByComparator);
157 }
158
159 public static com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
160 long websiteId, long companyId,
161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162 throws com.liferay.portal.NoSuchWebsiteException,
163 com.liferay.portal.SystemException {
164 return getPersistence()
165 .findByCompanyId_PrevAndNext(websiteId, companyId,
166 orderByComparator);
167 }
168
169 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
170 long userId) throws com.liferay.portal.SystemException {
171 return getPersistence().findByUserId(userId);
172 }
173
174 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
175 long userId, int start, int end)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().findByUserId(userId, start, end);
178 }
179
180 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
181 long userId, int start, int end,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.SystemException {
184 return getPersistence()
185 .findByUserId(userId, start, end, orderByComparator);
186 }
187
188 public static com.liferay.portal.model.Website findByUserId_First(
189 long userId,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.NoSuchWebsiteException,
192 com.liferay.portal.SystemException {
193 return getPersistence().findByUserId_First(userId, orderByComparator);
194 }
195
196 public static com.liferay.portal.model.Website findByUserId_Last(
197 long userId,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.NoSuchWebsiteException,
200 com.liferay.portal.SystemException {
201 return getPersistence().findByUserId_Last(userId, orderByComparator);
202 }
203
204 public static com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
205 long websiteId, long userId,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.NoSuchWebsiteException,
208 com.liferay.portal.SystemException {
209 return getPersistence()
210 .findByUserId_PrevAndNext(websiteId, userId,
211 orderByComparator);
212 }
213
214 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
215 long companyId, long classNameId)
216 throws com.liferay.portal.SystemException {
217 return getPersistence().findByC_C(companyId, classNameId);
218 }
219
220 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
221 long companyId, long classNameId, int start, int end)
222 throws com.liferay.portal.SystemException {
223 return getPersistence().findByC_C(companyId, classNameId, start, end);
224 }
225
226 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
227 long companyId, long classNameId, int start, int end,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.SystemException {
230 return getPersistence()
231 .findByC_C(companyId, classNameId, start, end,
232 orderByComparator);
233 }
234
235 public static com.liferay.portal.model.Website findByC_C_First(
236 long companyId, long classNameId,
237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238 throws com.liferay.portal.NoSuchWebsiteException,
239 com.liferay.portal.SystemException {
240 return getPersistence()
241 .findByC_C_First(companyId, classNameId, orderByComparator);
242 }
243
244 public static com.liferay.portal.model.Website findByC_C_Last(
245 long companyId, long classNameId,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.NoSuchWebsiteException,
248 com.liferay.portal.SystemException {
249 return getPersistence()
250 .findByC_C_Last(companyId, classNameId, orderByComparator);
251 }
252
253 public static com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
254 long websiteId, long companyId, long classNameId,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.NoSuchWebsiteException,
257 com.liferay.portal.SystemException {
258 return getPersistence()
259 .findByC_C_PrevAndNext(websiteId, companyId, classNameId,
260 orderByComparator);
261 }
262
263 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
264 long companyId, long classNameId, long classPK)
265 throws com.liferay.portal.SystemException {
266 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
267 }
268
269 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
270 long companyId, long classNameId, long classPK, int start, int end)
271 throws com.liferay.portal.SystemException {
272 return getPersistence()
273 .findByC_C_C(companyId, classNameId, classPK, start, end);
274 }
275
276 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
277 long companyId, long classNameId, long classPK, int start, int end,
278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279 throws com.liferay.portal.SystemException {
280 return getPersistence()
281 .findByC_C_C(companyId, classNameId, classPK, start, end,
282 orderByComparator);
283 }
284
285 public static com.liferay.portal.model.Website findByC_C_C_First(
286 long companyId, long classNameId, long classPK,
287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288 throws com.liferay.portal.NoSuchWebsiteException,
289 com.liferay.portal.SystemException {
290 return getPersistence()
291 .findByC_C_C_First(companyId, classNameId, classPK,
292 orderByComparator);
293 }
294
295 public static com.liferay.portal.model.Website findByC_C_C_Last(
296 long companyId, long classNameId, long classPK,
297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298 throws com.liferay.portal.NoSuchWebsiteException,
299 com.liferay.portal.SystemException {
300 return getPersistence()
301 .findByC_C_C_Last(companyId, classNameId, classPK,
302 orderByComparator);
303 }
304
305 public static com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
306 long websiteId, long companyId, long classNameId, long classPK,
307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308 throws com.liferay.portal.NoSuchWebsiteException,
309 com.liferay.portal.SystemException {
310 return getPersistence()
311 .findByC_C_C_PrevAndNext(websiteId, companyId, classNameId,
312 classPK, orderByComparator);
313 }
314
315 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
316 long companyId, long classNameId, long classPK, boolean primary)
317 throws com.liferay.portal.SystemException {
318 return getPersistence()
319 .findByC_C_C_P(companyId, classNameId, classPK, primary);
320 }
321
322 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
323 long companyId, long classNameId, long classPK, boolean primary,
324 int start, int end) throws com.liferay.portal.SystemException {
325 return getPersistence()
326 .findByC_C_C_P(companyId, classNameId, classPK, primary,
327 start, end);
328 }
329
330 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
331 long companyId, long classNameId, long classPK, boolean primary,
332 int start, int end,
333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334 throws com.liferay.portal.SystemException {
335 return getPersistence()
336 .findByC_C_C_P(companyId, classNameId, classPK, primary,
337 start, end, orderByComparator);
338 }
339
340 public static com.liferay.portal.model.Website findByC_C_C_P_First(
341 long companyId, long classNameId, long classPK, boolean primary,
342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343 throws com.liferay.portal.NoSuchWebsiteException,
344 com.liferay.portal.SystemException {
345 return getPersistence()
346 .findByC_C_C_P_First(companyId, classNameId, classPK,
347 primary, orderByComparator);
348 }
349
350 public static com.liferay.portal.model.Website findByC_C_C_P_Last(
351 long companyId, long classNameId, long classPK, boolean primary,
352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353 throws com.liferay.portal.NoSuchWebsiteException,
354 com.liferay.portal.SystemException {
355 return getPersistence()
356 .findByC_C_C_P_Last(companyId, classNameId, classPK,
357 primary, orderByComparator);
358 }
359
360 public static com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
361 long websiteId, long companyId, long classNameId, long classPK,
362 boolean primary,
363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364 throws com.liferay.portal.NoSuchWebsiteException,
365 com.liferay.portal.SystemException {
366 return getPersistence()
367 .findByC_C_C_P_PrevAndNext(websiteId, companyId,
368 classNameId, classPK, primary, orderByComparator);
369 }
370
371 public static java.util.List<com.liferay.portal.model.Website> findAll()
372 throws com.liferay.portal.SystemException {
373 return getPersistence().findAll();
374 }
375
376 public static java.util.List<com.liferay.portal.model.Website> findAll(
377 int start, int end) throws com.liferay.portal.SystemException {
378 return getPersistence().findAll(start, end);
379 }
380
381 public static java.util.List<com.liferay.portal.model.Website> findAll(
382 int start, int end,
383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384 throws com.liferay.portal.SystemException {
385 return getPersistence().findAll(start, end, orderByComparator);
386 }
387
388 public static void removeByCompanyId(long companyId)
389 throws com.liferay.portal.SystemException {
390 getPersistence().removeByCompanyId(companyId);
391 }
392
393 public static void removeByUserId(long userId)
394 throws com.liferay.portal.SystemException {
395 getPersistence().removeByUserId(userId);
396 }
397
398 public static void removeByC_C(long companyId, long classNameId)
399 throws com.liferay.portal.SystemException {
400 getPersistence().removeByC_C(companyId, classNameId);
401 }
402
403 public static void removeByC_C_C(long companyId, long classNameId,
404 long classPK) throws com.liferay.portal.SystemException {
405 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
406 }
407
408 public static void removeByC_C_C_P(long companyId, long classNameId,
409 long classPK, boolean primary)
410 throws com.liferay.portal.SystemException {
411 getPersistence()
412 .removeByC_C_C_P(companyId, classNameId, classPK, primary);
413 }
414
415 public static void removeAll() throws com.liferay.portal.SystemException {
416 getPersistence().removeAll();
417 }
418
419 public static int countByCompanyId(long companyId)
420 throws com.liferay.portal.SystemException {
421 return getPersistence().countByCompanyId(companyId);
422 }
423
424 public static int countByUserId(long userId)
425 throws com.liferay.portal.SystemException {
426 return getPersistence().countByUserId(userId);
427 }
428
429 public static int countByC_C(long companyId, long classNameId)
430 throws com.liferay.portal.SystemException {
431 return getPersistence().countByC_C(companyId, classNameId);
432 }
433
434 public static int countByC_C_C(long companyId, long classNameId,
435 long classPK) throws com.liferay.portal.SystemException {
436 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
437 }
438
439 public static int countByC_C_C_P(long companyId, long classNameId,
440 long classPK, boolean primary)
441 throws com.liferay.portal.SystemException {
442 return getPersistence()
443 .countByC_C_C_P(companyId, classNameId, classPK, primary);
444 }
445
446 public static int countAll() throws com.liferay.portal.SystemException {
447 return getPersistence().countAll();
448 }
449
450 public static WebsitePersistence getPersistence() {
451 if (_persistence == null) {
452 _persistence = (WebsitePersistence)PortalBeanLocatorUtil.locate(WebsitePersistence.class.getName());
453 }
454
455 return _persistence;
456 }
457
458 public void setPersistence(WebsitePersistence persistence) {
459 _persistence = persistence;
460 }
461
462 private static WebsitePersistence _persistence;
463 }