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