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 obc)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findByCompanyId(companyId, start, end, obc);
138 }
139
140 public static com.liferay.portal.model.Website findByCompanyId_First(
141 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchWebsiteException,
143 com.liferay.portal.SystemException {
144 return getPersistence().findByCompanyId_First(companyId, obc);
145 }
146
147 public static com.liferay.portal.model.Website findByCompanyId_Last(
148 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.NoSuchWebsiteException,
150 com.liferay.portal.SystemException {
151 return getPersistence().findByCompanyId_Last(companyId, obc);
152 }
153
154 public static com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
155 long websiteId, long companyId,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.NoSuchWebsiteException,
158 com.liferay.portal.SystemException {
159 return getPersistence()
160 .findByCompanyId_PrevAndNext(websiteId, companyId, obc);
161 }
162
163 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
164 long userId) throws com.liferay.portal.SystemException {
165 return getPersistence().findByUserId(userId);
166 }
167
168 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
169 long userId, int start, int end)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findByUserId(userId, start, end);
172 }
173
174 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
175 long userId, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findByUserId(userId, start, end, obc);
179 }
180
181 public static com.liferay.portal.model.Website findByUserId_First(
182 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.NoSuchWebsiteException,
184 com.liferay.portal.SystemException {
185 return getPersistence().findByUserId_First(userId, obc);
186 }
187
188 public static com.liferay.portal.model.Website findByUserId_Last(
189 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.NoSuchWebsiteException,
191 com.liferay.portal.SystemException {
192 return getPersistence().findByUserId_Last(userId, obc);
193 }
194
195 public static com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
196 long websiteId, long userId,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.NoSuchWebsiteException,
199 com.liferay.portal.SystemException {
200 return getPersistence().findByUserId_PrevAndNext(websiteId, userId, obc);
201 }
202
203 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
204 long companyId, long classNameId)
205 throws com.liferay.portal.SystemException {
206 return getPersistence().findByC_C(companyId, classNameId);
207 }
208
209 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
210 long companyId, long classNameId, int start, int end)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().findByC_C(companyId, classNameId, start, end);
213 }
214
215 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
216 long companyId, long classNameId, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException {
219 return getPersistence()
220 .findByC_C(companyId, classNameId, start, end, obc);
221 }
222
223 public static com.liferay.portal.model.Website findByC_C_First(
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_First(companyId, classNameId, obc);
229 }
230
231 public static com.liferay.portal.model.Website findByC_C_Last(
232 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().findByC_C_Last(companyId, classNameId, obc);
237 }
238
239 public static com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
240 long websiteId, long companyId, long classNameId,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.NoSuchWebsiteException,
243 com.liferay.portal.SystemException {
244 return getPersistence()
245 .findByC_C_PrevAndNext(websiteId, companyId, classNameId, obc);
246 }
247
248 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
249 long companyId, long classNameId, long classPK)
250 throws com.liferay.portal.SystemException {
251 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
252 }
253
254 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
255 long companyId, long classNameId, long classPK, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getPersistence()
258 .findByC_C_C(companyId, classNameId, classPK, start, end);
259 }
260
261 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
262 long companyId, long classNameId, long classPK, int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.SystemException {
265 return getPersistence()
266 .findByC_C_C(companyId, classNameId, classPK, start, end, obc);
267 }
268
269 public static com.liferay.portal.model.Website findByC_C_C_First(
270 long companyId, long classNameId, long classPK,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.NoSuchWebsiteException,
273 com.liferay.portal.SystemException {
274 return getPersistence()
275 .findByC_C_C_First(companyId, classNameId, classPK, obc);
276 }
277
278 public static com.liferay.portal.model.Website findByC_C_C_Last(
279 long companyId, long classNameId, long classPK,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.NoSuchWebsiteException,
282 com.liferay.portal.SystemException {
283 return getPersistence()
284 .findByC_C_C_Last(companyId, classNameId, classPK, obc);
285 }
286
287 public static com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
288 long websiteId, long companyId, long classNameId, long classPK,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.NoSuchWebsiteException,
291 com.liferay.portal.SystemException {
292 return getPersistence()
293 .findByC_C_C_PrevAndNext(websiteId, companyId, classNameId,
294 classPK, obc);
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 throws com.liferay.portal.SystemException {
300 return getPersistence()
301 .findByC_C_C_P(companyId, classNameId, classPK, primary);
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) throws com.liferay.portal.SystemException {
307 return getPersistence()
308 .findByC_C_C_P(companyId, classNameId, classPK, primary,
309 start, end);
310 }
311
312 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
313 long companyId, long classNameId, long classPK, boolean primary,
314 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.SystemException {
316 return getPersistence()
317 .findByC_C_C_P(companyId, classNameId, classPK, primary,
318 start, end, obc);
319 }
320
321 public static com.liferay.portal.model.Website findByC_C_C_P_First(
322 long companyId, long classNameId, long classPK, boolean primary,
323 com.liferay.portal.kernel.util.OrderByComparator obc)
324 throws com.liferay.portal.NoSuchWebsiteException,
325 com.liferay.portal.SystemException {
326 return getPersistence()
327 .findByC_C_C_P_First(companyId, classNameId, classPK,
328 primary, obc);
329 }
330
331 public static com.liferay.portal.model.Website findByC_C_C_P_Last(
332 long companyId, long classNameId, long classPK, boolean primary,
333 com.liferay.portal.kernel.util.OrderByComparator obc)
334 throws com.liferay.portal.NoSuchWebsiteException,
335 com.liferay.portal.SystemException {
336 return getPersistence()
337 .findByC_C_C_P_Last(companyId, classNameId, classPK,
338 primary, obc);
339 }
340
341 public static com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
342 long websiteId, long companyId, long classNameId, long classPK,
343 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
344 throws com.liferay.portal.NoSuchWebsiteException,
345 com.liferay.portal.SystemException {
346 return getPersistence()
347 .findByC_C_C_P_PrevAndNext(websiteId, companyId,
348 classNameId, classPK, primary, obc);
349 }
350
351 public static java.util.List<com.liferay.portal.model.Website> findAll()
352 throws com.liferay.portal.SystemException {
353 return getPersistence().findAll();
354 }
355
356 public static java.util.List<com.liferay.portal.model.Website> findAll(
357 int start, int end) throws com.liferay.portal.SystemException {
358 return getPersistence().findAll(start, end);
359 }
360
361 public static java.util.List<com.liferay.portal.model.Website> findAll(
362 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
363 throws com.liferay.portal.SystemException {
364 return getPersistence().findAll(start, end, obc);
365 }
366
367 public static void removeByCompanyId(long companyId)
368 throws com.liferay.portal.SystemException {
369 getPersistence().removeByCompanyId(companyId);
370 }
371
372 public static void removeByUserId(long userId)
373 throws com.liferay.portal.SystemException {
374 getPersistence().removeByUserId(userId);
375 }
376
377 public static void removeByC_C(long companyId, long classNameId)
378 throws com.liferay.portal.SystemException {
379 getPersistence().removeByC_C(companyId, classNameId);
380 }
381
382 public static void removeByC_C_C(long companyId, long classNameId,
383 long classPK) throws com.liferay.portal.SystemException {
384 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
385 }
386
387 public static void removeByC_C_C_P(long companyId, long classNameId,
388 long classPK, boolean primary)
389 throws com.liferay.portal.SystemException {
390 getPersistence()
391 .removeByC_C_C_P(companyId, classNameId, classPK, primary);
392 }
393
394 public static void removeAll() throws com.liferay.portal.SystemException {
395 getPersistence().removeAll();
396 }
397
398 public static int countByCompanyId(long companyId)
399 throws com.liferay.portal.SystemException {
400 return getPersistence().countByCompanyId(companyId);
401 }
402
403 public static int countByUserId(long userId)
404 throws com.liferay.portal.SystemException {
405 return getPersistence().countByUserId(userId);
406 }
407
408 public static int countByC_C(long companyId, long classNameId)
409 throws com.liferay.portal.SystemException {
410 return getPersistence().countByC_C(companyId, classNameId);
411 }
412
413 public static int countByC_C_C(long companyId, long classNameId,
414 long classPK) throws com.liferay.portal.SystemException {
415 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
416 }
417
418 public static int countByC_C_C_P(long companyId, long classNameId,
419 long classPK, boolean primary)
420 throws com.liferay.portal.SystemException {
421 return getPersistence()
422 .countByC_C_C_P(companyId, classNameId, classPK, primary);
423 }
424
425 public static int countAll() throws com.liferay.portal.SystemException {
426 return getPersistence().countAll();
427 }
428
429 public static WebsitePersistence getPersistence() {
430 if (_persistence == null) {
431 _persistence = (WebsitePersistence)PortalBeanLocatorUtil.locate(WebsitePersistence.class.getName());
432 }
433
434 return _persistence;
435 }
436
437 public void setPersistence(WebsitePersistence persistence) {
438 _persistence = persistence;
439 }
440
441 private static WebsitePersistence _persistence;
442 }