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