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.NoSuchWebsiteException,
38 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
85 com.liferay.portal.SystemException {
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 start, int end)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().findByCompanyId(companyId, start, end);
103 }
104
105 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
106 long companyId, int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException {
109 return getPersistence().findByCompanyId(companyId, start, 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.NoSuchWebsiteException,
115 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
122 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
130 com.liferay.portal.SystemException {
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 start, int end)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByUserId(userId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.Website> findByUserId(
147 long userId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findByUserId(userId, start, 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.NoSuchWebsiteException,
156 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
163 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
171 com.liferay.portal.SystemException {
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 start, int end)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findByC_C(companyId, classNameId, start, end);
185 }
186
187 public static java.util.List<com.liferay.portal.model.Website> findByC_C(
188 long companyId, long classNameId, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException {
191 return getPersistence()
192 .findByC_C(companyId, classNameId, start, 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.NoSuchWebsiteException,
199 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
207 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
215 com.liferay.portal.SystemException {
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 start, int end)
228 throws com.liferay.portal.SystemException {
229 return getPersistence()
230 .findByC_C_C(companyId, classNameId, classPK, start, 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 start, 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, start, 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.NoSuchWebsiteException,
245 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
254 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
263 com.liferay.portal.SystemException {
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 start, int end) throws com.liferay.portal.SystemException {
279 return getPersistence()
280 .findByC_C_C_P(companyId, classNameId, classPK, primary,
281 start, 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 start, 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 start, 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.NoSuchWebsiteException,
297 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
307 com.liferay.portal.SystemException {
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.NoSuchWebsiteException,
317 com.liferay.portal.SystemException {
318 return getPersistence()
319 .findByC_C_C_P_PrevAndNext(websiteId, companyId,
320 classNameId, classPK, primary, obc);
321 }
322
323 public static java.util.List<Object> findWithDynamicQuery(
324 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
325 throws com.liferay.portal.SystemException {
326 return getPersistence().findWithDynamicQuery(dynamicQuery);
327 }
328
329 public static java.util.List<Object> findWithDynamicQuery(
330 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
331 int end) throws com.liferay.portal.SystemException {
332 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
333 }
334
335 public static java.util.List<com.liferay.portal.model.Website> findAll()
336 throws com.liferay.portal.SystemException {
337 return getPersistence().findAll();
338 }
339
340 public static java.util.List<com.liferay.portal.model.Website> findAll(
341 int start, int end) throws com.liferay.portal.SystemException {
342 return getPersistence().findAll(start, end);
343 }
344
345 public static java.util.List<com.liferay.portal.model.Website> findAll(
346 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
347 throws com.liferay.portal.SystemException {
348 return getPersistence().findAll(start, end, obc);
349 }
350
351 public static void removeByCompanyId(long companyId)
352 throws com.liferay.portal.SystemException {
353 getPersistence().removeByCompanyId(companyId);
354 }
355
356 public static void removeByUserId(long userId)
357 throws com.liferay.portal.SystemException {
358 getPersistence().removeByUserId(userId);
359 }
360
361 public static void removeByC_C(long companyId, long classNameId)
362 throws com.liferay.portal.SystemException {
363 getPersistence().removeByC_C(companyId, classNameId);
364 }
365
366 public static void removeByC_C_C(long companyId, long classNameId,
367 long classPK) throws com.liferay.portal.SystemException {
368 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
369 }
370
371 public static void removeByC_C_C_P(long companyId, long classNameId,
372 long classPK, boolean primary)
373 throws com.liferay.portal.SystemException {
374 getPersistence()
375 .removeByC_C_C_P(companyId, classNameId, classPK, primary);
376 }
377
378 public static void removeAll() throws com.liferay.portal.SystemException {
379 getPersistence().removeAll();
380 }
381
382 public static int countByCompanyId(long companyId)
383 throws com.liferay.portal.SystemException {
384 return getPersistence().countByCompanyId(companyId);
385 }
386
387 public static int countByUserId(long userId)
388 throws com.liferay.portal.SystemException {
389 return getPersistence().countByUserId(userId);
390 }
391
392 public static int countByC_C(long companyId, long classNameId)
393 throws com.liferay.portal.SystemException {
394 return getPersistence().countByC_C(companyId, classNameId);
395 }
396
397 public static int countByC_C_C(long companyId, long classNameId,
398 long classPK) throws com.liferay.portal.SystemException {
399 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
400 }
401
402 public static int countByC_C_C_P(long companyId, long classNameId,
403 long classPK, boolean primary)
404 throws com.liferay.portal.SystemException {
405 return getPersistence()
406 .countByC_C_C_P(companyId, classNameId, classPK, primary);
407 }
408
409 public static int countAll() throws com.liferay.portal.SystemException {
410 return getPersistence().countAll();
411 }
412
413 public static WebsitePersistence getPersistence() {
414 return _persistence;
415 }
416
417 public void setPersistence(WebsitePersistence persistence) {
418 _persistence = persistence;
419 }
420
421 private static WebsitePersistence _persistence;
422 }