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