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