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