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