001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.Phone; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the phone service. This utility wraps {@link PhonePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see PhonePersistence 036 * @see PhonePersistenceImpl 037 * @generated 038 */ 039 public class PhoneUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(Phone phone) { 057 getPersistence().clearCache(phone); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery) 072 throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery, 080 int start, int end) throws SystemException { 081 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 082 } 083 084 /** 085 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 086 */ 087 public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery, 088 int start, int end, OrderByComparator orderByComparator) 089 throws SystemException { 090 return getPersistence() 091 .findWithDynamicQuery(dynamicQuery, start, end, 092 orderByComparator); 093 } 094 095 /** 096 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 097 */ 098 public static Phone update(Phone phone, boolean merge) 099 throws SystemException { 100 return getPersistence().update(phone, merge); 101 } 102 103 /** 104 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 105 */ 106 public static Phone update(Phone phone, boolean merge, 107 ServiceContext serviceContext) throws SystemException { 108 return getPersistence().update(phone, merge, serviceContext); 109 } 110 111 /** 112 * Caches the phone in the entity cache if it is enabled. 113 * 114 * @param phone the phone 115 */ 116 public static void cacheResult(com.liferay.portal.model.Phone phone) { 117 getPersistence().cacheResult(phone); 118 } 119 120 /** 121 * Caches the phones in the entity cache if it is enabled. 122 * 123 * @param phones the phones 124 */ 125 public static void cacheResult( 126 java.util.List<com.liferay.portal.model.Phone> phones) { 127 getPersistence().cacheResult(phones); 128 } 129 130 /** 131 * Creates a new phone with the primary key. Does not add the phone to the database. 132 * 133 * @param phoneId the primary key for the new phone 134 * @return the new phone 135 */ 136 public static com.liferay.portal.model.Phone create(long phoneId) { 137 return getPersistence().create(phoneId); 138 } 139 140 /** 141 * Removes the phone with the primary key from the database. Also notifies the appropriate model listeners. 142 * 143 * @param phoneId the primary key of the phone 144 * @return the phone that was removed 145 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 146 * @throws SystemException if a system exception occurred 147 */ 148 public static com.liferay.portal.model.Phone remove(long phoneId) 149 throws com.liferay.portal.NoSuchPhoneException, 150 com.liferay.portal.kernel.exception.SystemException { 151 return getPersistence().remove(phoneId); 152 } 153 154 public static com.liferay.portal.model.Phone updateImpl( 155 com.liferay.portal.model.Phone phone, boolean merge) 156 throws com.liferay.portal.kernel.exception.SystemException { 157 return getPersistence().updateImpl(phone, merge); 158 } 159 160 /** 161 * Returns the phone with the primary key or throws a {@link com.liferay.portal.NoSuchPhoneException} if it could not be found. 162 * 163 * @param phoneId the primary key of the phone 164 * @return the phone 165 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public static com.liferay.portal.model.Phone findByPrimaryKey(long phoneId) 169 throws com.liferay.portal.NoSuchPhoneException, 170 com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().findByPrimaryKey(phoneId); 172 } 173 174 /** 175 * Returns the phone with the primary key or returns <code>null</code> if it could not be found. 176 * 177 * @param phoneId the primary key of the phone 178 * @return the phone, or <code>null</code> if a phone with the primary key could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public static com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId) 182 throws com.liferay.portal.kernel.exception.SystemException { 183 return getPersistence().fetchByPrimaryKey(phoneId); 184 } 185 186 /** 187 * Returns all the phones where companyId = ?. 188 * 189 * @param companyId the company ID 190 * @return the matching phones 191 * @throws SystemException if a system exception occurred 192 */ 193 public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId( 194 long companyId) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return getPersistence().findByCompanyId(companyId); 197 } 198 199 /** 200 * Returns a range of all the phones where companyId = ?. 201 * 202 * <p> 203 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 204 * </p> 205 * 206 * @param companyId the company ID 207 * @param start the lower bound of the range of phones 208 * @param end the upper bound of the range of phones (not inclusive) 209 * @return the range of matching phones 210 * @throws SystemException if a system exception occurred 211 */ 212 public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId( 213 long companyId, int start, int end) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return getPersistence().findByCompanyId(companyId, start, end); 216 } 217 218 /** 219 * Returns an ordered range of all the phones where companyId = ?. 220 * 221 * <p> 222 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 223 * </p> 224 * 225 * @param companyId the company ID 226 * @param start the lower bound of the range of phones 227 * @param end the upper bound of the range of phones (not inclusive) 228 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 229 * @return the ordered range of matching phones 230 * @throws SystemException if a system exception occurred 231 */ 232 public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId( 233 long companyId, int start, int end, 234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 235 throws com.liferay.portal.kernel.exception.SystemException { 236 return getPersistence() 237 .findByCompanyId(companyId, start, end, orderByComparator); 238 } 239 240 /** 241 * Returns the first phone in the ordered set where companyId = ?. 242 * 243 * @param companyId the company ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the first matching phone 246 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 247 * @throws SystemException if a system exception occurred 248 */ 249 public static com.liferay.portal.model.Phone findByCompanyId_First( 250 long companyId, 251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 252 throws com.liferay.portal.NoSuchPhoneException, 253 com.liferay.portal.kernel.exception.SystemException { 254 return getPersistence() 255 .findByCompanyId_First(companyId, orderByComparator); 256 } 257 258 /** 259 * Returns the first phone in the ordered set where companyId = ?. 260 * 261 * @param companyId the company ID 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 264 * @throws SystemException if a system exception occurred 265 */ 266 public static com.liferay.portal.model.Phone fetchByCompanyId_First( 267 long companyId, 268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 269 throws com.liferay.portal.kernel.exception.SystemException { 270 return getPersistence() 271 .fetchByCompanyId_First(companyId, orderByComparator); 272 } 273 274 /** 275 * Returns the last phone in the ordered set where companyId = ?. 276 * 277 * @param companyId the company ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching phone 280 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public static com.liferay.portal.model.Phone findByCompanyId_Last( 284 long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.NoSuchPhoneException, 287 com.liferay.portal.kernel.exception.SystemException { 288 return getPersistence() 289 .findByCompanyId_Last(companyId, orderByComparator); 290 } 291 292 /** 293 * Returns the last phone in the ordered set where companyId = ?. 294 * 295 * @param companyId the company ID 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 298 * @throws SystemException if a system exception occurred 299 */ 300 public static com.liferay.portal.model.Phone fetchByCompanyId_Last( 301 long companyId, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.kernel.exception.SystemException { 304 return getPersistence() 305 .fetchByCompanyId_Last(companyId, orderByComparator); 306 } 307 308 /** 309 * Returns the phones before and after the current phone in the ordered set where companyId = ?. 310 * 311 * @param phoneId the primary key of the current phone 312 * @param companyId the company ID 313 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 314 * @return the previous, current, and next phone 315 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 316 * @throws SystemException if a system exception occurred 317 */ 318 public static com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext( 319 long phoneId, long companyId, 320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 321 throws com.liferay.portal.NoSuchPhoneException, 322 com.liferay.portal.kernel.exception.SystemException { 323 return getPersistence() 324 .findByCompanyId_PrevAndNext(phoneId, companyId, 325 orderByComparator); 326 } 327 328 /** 329 * Returns all the phones where userId = ?. 330 * 331 * @param userId the user ID 332 * @return the matching phones 333 * @throws SystemException if a system exception occurred 334 */ 335 public static java.util.List<com.liferay.portal.model.Phone> findByUserId( 336 long userId) throws com.liferay.portal.kernel.exception.SystemException { 337 return getPersistence().findByUserId(userId); 338 } 339 340 /** 341 * Returns a range of all the phones where userId = ?. 342 * 343 * <p> 344 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 345 * </p> 346 * 347 * @param userId the user ID 348 * @param start the lower bound of the range of phones 349 * @param end the upper bound of the range of phones (not inclusive) 350 * @return the range of matching phones 351 * @throws SystemException if a system exception occurred 352 */ 353 public static java.util.List<com.liferay.portal.model.Phone> findByUserId( 354 long userId, int start, int end) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().findByUserId(userId, start, end); 357 } 358 359 /** 360 * Returns an ordered range of all the phones where userId = ?. 361 * 362 * <p> 363 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 364 * </p> 365 * 366 * @param userId the user ID 367 * @param start the lower bound of the range of phones 368 * @param end the upper bound of the range of phones (not inclusive) 369 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 370 * @return the ordered range of matching phones 371 * @throws SystemException if a system exception occurred 372 */ 373 public static java.util.List<com.liferay.portal.model.Phone> findByUserId( 374 long userId, int start, int end, 375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 376 throws com.liferay.portal.kernel.exception.SystemException { 377 return getPersistence() 378 .findByUserId(userId, start, end, orderByComparator); 379 } 380 381 /** 382 * Returns the first phone in the ordered set where userId = ?. 383 * 384 * @param userId the user ID 385 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 386 * @return the first matching phone 387 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 388 * @throws SystemException if a system exception occurred 389 */ 390 public static com.liferay.portal.model.Phone findByUserId_First( 391 long userId, 392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 393 throws com.liferay.portal.NoSuchPhoneException, 394 com.liferay.portal.kernel.exception.SystemException { 395 return getPersistence().findByUserId_First(userId, orderByComparator); 396 } 397 398 /** 399 * Returns the first phone in the ordered set where userId = ?. 400 * 401 * @param userId the user ID 402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 403 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 404 * @throws SystemException if a system exception occurred 405 */ 406 public static com.liferay.portal.model.Phone fetchByUserId_First( 407 long userId, 408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 409 throws com.liferay.portal.kernel.exception.SystemException { 410 return getPersistence().fetchByUserId_First(userId, orderByComparator); 411 } 412 413 /** 414 * Returns the last phone in the ordered set where userId = ?. 415 * 416 * @param userId the user ID 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the last matching phone 419 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public static com.liferay.portal.model.Phone findByUserId_Last( 423 long userId, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.NoSuchPhoneException, 426 com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence().findByUserId_Last(userId, orderByComparator); 428 } 429 430 /** 431 * Returns the last phone in the ordered set where userId = ?. 432 * 433 * @param userId the user ID 434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 435 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portal.model.Phone fetchByUserId_Last( 439 long userId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException { 442 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 443 } 444 445 /** 446 * Returns the phones before and after the current phone in the ordered set where userId = ?. 447 * 448 * @param phoneId the primary key of the current phone 449 * @param userId the user ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the previous, current, and next phone 452 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 453 * @throws SystemException if a system exception occurred 454 */ 455 public static com.liferay.portal.model.Phone[] findByUserId_PrevAndNext( 456 long phoneId, long userId, 457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 458 throws com.liferay.portal.NoSuchPhoneException, 459 com.liferay.portal.kernel.exception.SystemException { 460 return getPersistence() 461 .findByUserId_PrevAndNext(phoneId, userId, orderByComparator); 462 } 463 464 /** 465 * Returns all the phones where companyId = ? and classNameId = ?. 466 * 467 * @param companyId the company ID 468 * @param classNameId the class name ID 469 * @return the matching phones 470 * @throws SystemException if a system exception occurred 471 */ 472 public static java.util.List<com.liferay.portal.model.Phone> findByC_C( 473 long companyId, long classNameId) 474 throws com.liferay.portal.kernel.exception.SystemException { 475 return getPersistence().findByC_C(companyId, classNameId); 476 } 477 478 /** 479 * Returns a range of all the phones where companyId = ? and classNameId = ?. 480 * 481 * <p> 482 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 483 * </p> 484 * 485 * @param companyId the company ID 486 * @param classNameId the class name ID 487 * @param start the lower bound of the range of phones 488 * @param end the upper bound of the range of phones (not inclusive) 489 * @return the range of matching phones 490 * @throws SystemException if a system exception occurred 491 */ 492 public static java.util.List<com.liferay.portal.model.Phone> findByC_C( 493 long companyId, long classNameId, int start, int end) 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return getPersistence().findByC_C(companyId, classNameId, start, end); 496 } 497 498 /** 499 * Returns an ordered range of all the phones where companyId = ? and classNameId = ?. 500 * 501 * <p> 502 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 503 * </p> 504 * 505 * @param companyId the company ID 506 * @param classNameId the class name ID 507 * @param start the lower bound of the range of phones 508 * @param end the upper bound of the range of phones (not inclusive) 509 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 510 * @return the ordered range of matching phones 511 * @throws SystemException if a system exception occurred 512 */ 513 public static java.util.List<com.liferay.portal.model.Phone> findByC_C( 514 long companyId, long classNameId, int start, int end, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException { 517 return getPersistence() 518 .findByC_C(companyId, classNameId, start, end, 519 orderByComparator); 520 } 521 522 /** 523 * Returns the first phone in the ordered set where companyId = ? and classNameId = ?. 524 * 525 * @param companyId the company ID 526 * @param classNameId the class name ID 527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 528 * @return the first matching phone 529 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public static com.liferay.portal.model.Phone findByC_C_First( 533 long companyId, long classNameId, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.NoSuchPhoneException, 536 com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence() 538 .findByC_C_First(companyId, classNameId, orderByComparator); 539 } 540 541 /** 542 * Returns the first phone in the ordered set where companyId = ? and classNameId = ?. 543 * 544 * @param companyId the company ID 545 * @param classNameId the class name ID 546 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 547 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 548 * @throws SystemException if a system exception occurred 549 */ 550 public static com.liferay.portal.model.Phone fetchByC_C_First( 551 long companyId, long classNameId, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence() 555 .fetchByC_C_First(companyId, classNameId, orderByComparator); 556 } 557 558 /** 559 * Returns the last phone in the ordered set where companyId = ? and classNameId = ?. 560 * 561 * @param companyId the company ID 562 * @param classNameId the class name ID 563 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 564 * @return the last matching phone 565 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 566 * @throws SystemException if a system exception occurred 567 */ 568 public static com.liferay.portal.model.Phone findByC_C_Last( 569 long companyId, long classNameId, 570 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 571 throws com.liferay.portal.NoSuchPhoneException, 572 com.liferay.portal.kernel.exception.SystemException { 573 return getPersistence() 574 .findByC_C_Last(companyId, classNameId, orderByComparator); 575 } 576 577 /** 578 * Returns the last phone in the ordered set where companyId = ? and classNameId = ?. 579 * 580 * @param companyId the company ID 581 * @param classNameId the class name ID 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public static com.liferay.portal.model.Phone fetchByC_C_Last( 587 long companyId, long classNameId, 588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 589 throws com.liferay.portal.kernel.exception.SystemException { 590 return getPersistence() 591 .fetchByC_C_Last(companyId, classNameId, orderByComparator); 592 } 593 594 /** 595 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ?. 596 * 597 * @param phoneId the primary key of the current phone 598 * @param companyId the company ID 599 * @param classNameId the class name ID 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the previous, current, and next phone 602 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public static com.liferay.portal.model.Phone[] findByC_C_PrevAndNext( 606 long phoneId, long companyId, long classNameId, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.NoSuchPhoneException, 609 com.liferay.portal.kernel.exception.SystemException { 610 return getPersistence() 611 .findByC_C_PrevAndNext(phoneId, companyId, classNameId, 612 orderByComparator); 613 } 614 615 /** 616 * Returns all the phones where companyId = ? and classNameId = ? and classPK = ?. 617 * 618 * @param companyId the company ID 619 * @param classNameId the class name ID 620 * @param classPK the class p k 621 * @return the matching phones 622 * @throws SystemException if a system exception occurred 623 */ 624 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 625 long companyId, long classNameId, long classPK) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 return getPersistence().findByC_C_C(companyId, classNameId, classPK); 628 } 629 630 /** 631 * Returns a range of all the phones where companyId = ? and classNameId = ? and classPK = ?. 632 * 633 * <p> 634 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 635 * </p> 636 * 637 * @param companyId the company ID 638 * @param classNameId the class name ID 639 * @param classPK the class p k 640 * @param start the lower bound of the range of phones 641 * @param end the upper bound of the range of phones (not inclusive) 642 * @return the range of matching phones 643 * @throws SystemException if a system exception occurred 644 */ 645 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 646 long companyId, long classNameId, long classPK, int start, int end) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence() 649 .findByC_C_C(companyId, classNameId, classPK, start, end); 650 } 651 652 /** 653 * Returns an ordered range of all the phones where companyId = ? and classNameId = ? and classPK = ?. 654 * 655 * <p> 656 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 657 * </p> 658 * 659 * @param companyId the company ID 660 * @param classNameId the class name ID 661 * @param classPK the class p k 662 * @param start the lower bound of the range of phones 663 * @param end the upper bound of the range of phones (not inclusive) 664 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 665 * @return the ordered range of matching phones 666 * @throws SystemException if a system exception occurred 667 */ 668 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 669 long companyId, long classNameId, long classPK, int start, int end, 670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 671 throws com.liferay.portal.kernel.exception.SystemException { 672 return getPersistence() 673 .findByC_C_C(companyId, classNameId, classPK, start, end, 674 orderByComparator); 675 } 676 677 /** 678 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 679 * 680 * @param companyId the company ID 681 * @param classNameId the class name ID 682 * @param classPK the class p k 683 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 684 * @return the first matching phone 685 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 686 * @throws SystemException if a system exception occurred 687 */ 688 public static com.liferay.portal.model.Phone findByC_C_C_First( 689 long companyId, long classNameId, long classPK, 690 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 691 throws com.liferay.portal.NoSuchPhoneException, 692 com.liferay.portal.kernel.exception.SystemException { 693 return getPersistence() 694 .findByC_C_C_First(companyId, classNameId, classPK, 695 orderByComparator); 696 } 697 698 /** 699 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 700 * 701 * @param companyId the company ID 702 * @param classNameId the class name ID 703 * @param classPK the class p k 704 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 705 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public static com.liferay.portal.model.Phone fetchByC_C_C_First( 709 long companyId, long classNameId, long classPK, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException { 712 return getPersistence() 713 .fetchByC_C_C_First(companyId, classNameId, classPK, 714 orderByComparator); 715 } 716 717 /** 718 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 719 * 720 * @param companyId the company ID 721 * @param classNameId the class name ID 722 * @param classPK the class p k 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the last matching phone 725 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public static com.liferay.portal.model.Phone findByC_C_C_Last( 729 long companyId, long classNameId, long classPK, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.NoSuchPhoneException, 732 com.liferay.portal.kernel.exception.SystemException { 733 return getPersistence() 734 .findByC_C_C_Last(companyId, classNameId, classPK, 735 orderByComparator); 736 } 737 738 /** 739 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 740 * 741 * @param companyId the company ID 742 * @param classNameId the class name ID 743 * @param classPK the class p k 744 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 745 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public static com.liferay.portal.model.Phone fetchByC_C_C_Last( 749 long companyId, long classNameId, long classPK, 750 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 751 throws com.liferay.portal.kernel.exception.SystemException { 752 return getPersistence() 753 .fetchByC_C_C_Last(companyId, classNameId, classPK, 754 orderByComparator); 755 } 756 757 /** 758 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 759 * 760 * @param phoneId the primary key of the current phone 761 * @param companyId the company ID 762 * @param classNameId the class name ID 763 * @param classPK the class p k 764 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 765 * @return the previous, current, and next phone 766 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 767 * @throws SystemException if a system exception occurred 768 */ 769 public static com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext( 770 long phoneId, long companyId, long classNameId, long classPK, 771 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 772 throws com.liferay.portal.NoSuchPhoneException, 773 com.liferay.portal.kernel.exception.SystemException { 774 return getPersistence() 775 .findByC_C_C_PrevAndNext(phoneId, companyId, classNameId, 776 classPK, orderByComparator); 777 } 778 779 /** 780 * Returns all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 781 * 782 * @param companyId the company ID 783 * @param classNameId the class name ID 784 * @param classPK the class p k 785 * @param primary the primary 786 * @return the matching phones 787 * @throws SystemException if a system exception occurred 788 */ 789 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 790 long companyId, long classNameId, long classPK, boolean primary) 791 throws com.liferay.portal.kernel.exception.SystemException { 792 return getPersistence() 793 .findByC_C_C_P(companyId, classNameId, classPK, primary); 794 } 795 796 /** 797 * Returns a range of all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 798 * 799 * <p> 800 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 801 * </p> 802 * 803 * @param companyId the company ID 804 * @param classNameId the class name ID 805 * @param classPK the class p k 806 * @param primary the primary 807 * @param start the lower bound of the range of phones 808 * @param end the upper bound of the range of phones (not inclusive) 809 * @return the range of matching phones 810 * @throws SystemException if a system exception occurred 811 */ 812 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 813 long companyId, long classNameId, long classPK, boolean primary, 814 int start, int end) 815 throws com.liferay.portal.kernel.exception.SystemException { 816 return getPersistence() 817 .findByC_C_C_P(companyId, classNameId, classPK, primary, 818 start, end); 819 } 820 821 /** 822 * Returns an ordered range of all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 823 * 824 * <p> 825 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 826 * </p> 827 * 828 * @param companyId the company ID 829 * @param classNameId the class name ID 830 * @param classPK the class p k 831 * @param primary the primary 832 * @param start the lower bound of the range of phones 833 * @param end the upper bound of the range of phones (not inclusive) 834 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 835 * @return the ordered range of matching phones 836 * @throws SystemException if a system exception occurred 837 */ 838 public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 839 long companyId, long classNameId, long classPK, boolean primary, 840 int start, int end, 841 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 842 throws com.liferay.portal.kernel.exception.SystemException { 843 return getPersistence() 844 .findByC_C_C_P(companyId, classNameId, classPK, primary, 845 start, end, orderByComparator); 846 } 847 848 /** 849 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 850 * 851 * @param companyId the company ID 852 * @param classNameId the class name ID 853 * @param classPK the class p k 854 * @param primary the primary 855 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 856 * @return the first matching phone 857 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 858 * @throws SystemException if a system exception occurred 859 */ 860 public static com.liferay.portal.model.Phone findByC_C_C_P_First( 861 long companyId, long classNameId, long classPK, boolean primary, 862 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 863 throws com.liferay.portal.NoSuchPhoneException, 864 com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence() 866 .findByC_C_C_P_First(companyId, classNameId, classPK, 867 primary, orderByComparator); 868 } 869 870 /** 871 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 872 * 873 * @param companyId the company ID 874 * @param classNameId the class name ID 875 * @param classPK the class p k 876 * @param primary the primary 877 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 878 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 879 * @throws SystemException if a system exception occurred 880 */ 881 public static com.liferay.portal.model.Phone fetchByC_C_C_P_First( 882 long companyId, long classNameId, long classPK, boolean primary, 883 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 884 throws com.liferay.portal.kernel.exception.SystemException { 885 return getPersistence() 886 .fetchByC_C_C_P_First(companyId, classNameId, classPK, 887 primary, orderByComparator); 888 } 889 890 /** 891 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 892 * 893 * @param companyId the company ID 894 * @param classNameId the class name ID 895 * @param classPK the class p k 896 * @param primary the primary 897 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 898 * @return the last matching phone 899 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public static com.liferay.portal.model.Phone findByC_C_C_P_Last( 903 long companyId, long classNameId, long classPK, boolean primary, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.NoSuchPhoneException, 906 com.liferay.portal.kernel.exception.SystemException { 907 return getPersistence() 908 .findByC_C_C_P_Last(companyId, classNameId, classPK, 909 primary, orderByComparator); 910 } 911 912 /** 913 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 914 * 915 * @param companyId the company ID 916 * @param classNameId the class name ID 917 * @param classPK the class p k 918 * @param primary the primary 919 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 920 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 921 * @throws SystemException if a system exception occurred 922 */ 923 public static com.liferay.portal.model.Phone fetchByC_C_C_P_Last( 924 long companyId, long classNameId, long classPK, boolean primary, 925 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 926 throws com.liferay.portal.kernel.exception.SystemException { 927 return getPersistence() 928 .fetchByC_C_C_P_Last(companyId, classNameId, classPK, 929 primary, orderByComparator); 930 } 931 932 /** 933 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 934 * 935 * @param phoneId the primary key of the current phone 936 * @param companyId the company ID 937 * @param classNameId the class name ID 938 * @param classPK the class p k 939 * @param primary the primary 940 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 941 * @return the previous, current, and next phone 942 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 943 * @throws SystemException if a system exception occurred 944 */ 945 public static com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext( 946 long phoneId, long companyId, long classNameId, long classPK, 947 boolean primary, 948 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 949 throws com.liferay.portal.NoSuchPhoneException, 950 com.liferay.portal.kernel.exception.SystemException { 951 return getPersistence() 952 .findByC_C_C_P_PrevAndNext(phoneId, companyId, classNameId, 953 classPK, primary, orderByComparator); 954 } 955 956 /** 957 * Returns all the phones. 958 * 959 * @return the phones 960 * @throws SystemException if a system exception occurred 961 */ 962 public static java.util.List<com.liferay.portal.model.Phone> findAll() 963 throws com.liferay.portal.kernel.exception.SystemException { 964 return getPersistence().findAll(); 965 } 966 967 /** 968 * Returns a range of all the phones. 969 * 970 * <p> 971 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 972 * </p> 973 * 974 * @param start the lower bound of the range of phones 975 * @param end the upper bound of the range of phones (not inclusive) 976 * @return the range of phones 977 * @throws SystemException if a system exception occurred 978 */ 979 public static java.util.List<com.liferay.portal.model.Phone> findAll( 980 int start, int end) 981 throws com.liferay.portal.kernel.exception.SystemException { 982 return getPersistence().findAll(start, end); 983 } 984 985 /** 986 * Returns an ordered range of all the phones. 987 * 988 * <p> 989 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 990 * </p> 991 * 992 * @param start the lower bound of the range of phones 993 * @param end the upper bound of the range of phones (not inclusive) 994 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 995 * @return the ordered range of phones 996 * @throws SystemException if a system exception occurred 997 */ 998 public static java.util.List<com.liferay.portal.model.Phone> findAll( 999 int start, int end, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException { 1002 return getPersistence().findAll(start, end, orderByComparator); 1003 } 1004 1005 /** 1006 * Removes all the phones where companyId = ? from the database. 1007 * 1008 * @param companyId the company ID 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public static void removeByCompanyId(long companyId) 1012 throws com.liferay.portal.kernel.exception.SystemException { 1013 getPersistence().removeByCompanyId(companyId); 1014 } 1015 1016 /** 1017 * Removes all the phones where userId = ? from the database. 1018 * 1019 * @param userId the user ID 1020 * @throws SystemException if a system exception occurred 1021 */ 1022 public static void removeByUserId(long userId) 1023 throws com.liferay.portal.kernel.exception.SystemException { 1024 getPersistence().removeByUserId(userId); 1025 } 1026 1027 /** 1028 * Removes all the phones where companyId = ? and classNameId = ? from the database. 1029 * 1030 * @param companyId the company ID 1031 * @param classNameId the class name ID 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public static void removeByC_C(long companyId, long classNameId) 1035 throws com.liferay.portal.kernel.exception.SystemException { 1036 getPersistence().removeByC_C(companyId, classNameId); 1037 } 1038 1039 /** 1040 * Removes all the phones where companyId = ? and classNameId = ? and classPK = ? from the database. 1041 * 1042 * @param companyId the company ID 1043 * @param classNameId the class name ID 1044 * @param classPK the class p k 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static void removeByC_C_C(long companyId, long classNameId, 1048 long classPK) 1049 throws com.liferay.portal.kernel.exception.SystemException { 1050 getPersistence().removeByC_C_C(companyId, classNameId, classPK); 1051 } 1052 1053 /** 1054 * Removes all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 1055 * 1056 * @param companyId the company ID 1057 * @param classNameId the class name ID 1058 * @param classPK the class p k 1059 * @param primary the primary 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public static void removeByC_C_C_P(long companyId, long classNameId, 1063 long classPK, boolean primary) 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 getPersistence() 1066 .removeByC_C_C_P(companyId, classNameId, classPK, primary); 1067 } 1068 1069 /** 1070 * Removes all the phones from the database. 1071 * 1072 * @throws SystemException if a system exception occurred 1073 */ 1074 public static void removeAll() 1075 throws com.liferay.portal.kernel.exception.SystemException { 1076 getPersistence().removeAll(); 1077 } 1078 1079 /** 1080 * Returns the number of phones where companyId = ?. 1081 * 1082 * @param companyId the company ID 1083 * @return the number of matching phones 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public static int countByCompanyId(long companyId) 1087 throws com.liferay.portal.kernel.exception.SystemException { 1088 return getPersistence().countByCompanyId(companyId); 1089 } 1090 1091 /** 1092 * Returns the number of phones where userId = ?. 1093 * 1094 * @param userId the user ID 1095 * @return the number of matching phones 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public static int countByUserId(long userId) 1099 throws com.liferay.portal.kernel.exception.SystemException { 1100 return getPersistence().countByUserId(userId); 1101 } 1102 1103 /** 1104 * Returns the number of phones where companyId = ? and classNameId = ?. 1105 * 1106 * @param companyId the company ID 1107 * @param classNameId the class name ID 1108 * @return the number of matching phones 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public static int countByC_C(long companyId, long classNameId) 1112 throws com.liferay.portal.kernel.exception.SystemException { 1113 return getPersistence().countByC_C(companyId, classNameId); 1114 } 1115 1116 /** 1117 * Returns the number of phones where companyId = ? and classNameId = ? and classPK = ?. 1118 * 1119 * @param companyId the company ID 1120 * @param classNameId the class name ID 1121 * @param classPK the class p k 1122 * @return the number of matching phones 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static int countByC_C_C(long companyId, long classNameId, 1126 long classPK) 1127 throws com.liferay.portal.kernel.exception.SystemException { 1128 return getPersistence().countByC_C_C(companyId, classNameId, classPK); 1129 } 1130 1131 /** 1132 * Returns the number of phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1133 * 1134 * @param companyId the company ID 1135 * @param classNameId the class name ID 1136 * @param classPK the class p k 1137 * @param primary the primary 1138 * @return the number of matching phones 1139 * @throws SystemException if a system exception occurred 1140 */ 1141 public static int countByC_C_C_P(long companyId, long classNameId, 1142 long classPK, boolean primary) 1143 throws com.liferay.portal.kernel.exception.SystemException { 1144 return getPersistence() 1145 .countByC_C_C_P(companyId, classNameId, classPK, primary); 1146 } 1147 1148 /** 1149 * Returns the number of phones. 1150 * 1151 * @return the number of phones 1152 * @throws SystemException if a system exception occurred 1153 */ 1154 public static int countAll() 1155 throws com.liferay.portal.kernel.exception.SystemException { 1156 return getPersistence().countAll(); 1157 } 1158 1159 public static PhonePersistence getPersistence() { 1160 if (_persistence == null) { 1161 _persistence = (PhonePersistence)PortalBeanLocatorUtil.locate(PhonePersistence.class.getName()); 1162 1163 ReferenceRegistry.registerReference(PhoneUtil.class, "_persistence"); 1164 } 1165 1166 return _persistence; 1167 } 1168 1169 /** 1170 * @deprecated 1171 */ 1172 public void setPersistence(PhonePersistence persistence) { 1173 } 1174 1175 private static PhonePersistence _persistence; 1176 }