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