001 /** 002 * Copyright (c) 2000-2012 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.model.Contact; 018 019 /** 020 * The persistence interface for the contact service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see ContactPersistenceImpl 028 * @see ContactUtil 029 * @generated 030 */ 031 public interface ContactPersistence extends BasePersistence<Contact> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link ContactUtil} to access the contact persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the contact in the entity cache if it is enabled. 040 * 041 * @param contact the contact 042 */ 043 public void cacheResult(com.liferay.portal.model.Contact contact); 044 045 /** 046 * Caches the contacts in the entity cache if it is enabled. 047 * 048 * @param contacts the contacts 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Contact> contacts); 052 053 /** 054 * Creates a new contact with the primary key. Does not add the contact to the database. 055 * 056 * @param contactId the primary key for the new contact 057 * @return the new contact 058 */ 059 public com.liferay.portal.model.Contact create(long contactId); 060 061 /** 062 * Removes the contact with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param contactId the primary key of the contact 065 * @return the contact that was removed 066 * @throws com.liferay.portal.NoSuchContactException if a contact with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Contact remove(long contactId) 070 throws com.liferay.portal.NoSuchContactException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Contact updateImpl( 074 com.liferay.portal.model.Contact contact) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the contact with the primary key or throws a {@link com.liferay.portal.NoSuchContactException} if it could not be found. 079 * 080 * @param contactId the primary key of the contact 081 * @return the contact 082 * @throws com.liferay.portal.NoSuchContactException if a contact with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Contact findByPrimaryKey(long contactId) 086 throws com.liferay.portal.NoSuchContactException, 087 com.liferay.portal.kernel.exception.SystemException; 088 089 /** 090 * Returns the contact with the primary key or returns <code>null</code> if it could not be found. 091 * 092 * @param contactId the primary key of the contact 093 * @return the contact, or <code>null</code> if a contact with the primary key could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portal.model.Contact fetchByPrimaryKey(long contactId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns all the contacts where companyId = ?. 101 * 102 * @param companyId the company ID 103 * @return the matching contacts 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.Contact> findByCompanyId( 107 long companyId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Returns a range of all the contacts where companyId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param companyId the company ID 118 * @param start the lower bound of the range of contacts 119 * @param end the upper bound of the range of contacts (not inclusive) 120 * @return the range of matching contacts 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.Contact> findByCompanyId( 124 long companyId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns an ordered range of all the contacts where companyId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param companyId the company ID 135 * @param start the lower bound of the range of contacts 136 * @param end the upper bound of the range of contacts (not inclusive) 137 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 138 * @return the ordered range of matching contacts 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.Contact> findByCompanyId( 142 long companyId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the first contact in the ordered set where companyId = ?. 148 * 149 * @param companyId the company ID 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the first matching contact 152 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public com.liferay.portal.model.Contact findByCompanyId_First( 156 long companyId, 157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 158 throws com.liferay.portal.NoSuchContactException, 159 com.liferay.portal.kernel.exception.SystemException; 160 161 /** 162 * Returns the first contact in the ordered set where companyId = ?. 163 * 164 * @param companyId the company ID 165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 166 * @return the first matching contact, or <code>null</code> if a matching contact could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.Contact fetchByCompanyId_First( 170 long companyId, 171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 172 throws com.liferay.portal.kernel.exception.SystemException; 173 174 /** 175 * Returns the last contact in the ordered set where companyId = ?. 176 * 177 * @param companyId the company ID 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching contact 180 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.Contact findByCompanyId_Last( 184 long companyId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.NoSuchContactException, 187 com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns the last contact in the ordered set where companyId = ?. 191 * 192 * @param companyId the company ID 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the last matching contact, or <code>null</code> if a matching contact could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portal.model.Contact fetchByCompanyId_Last( 198 long companyId, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Returns the contacts before and after the current contact in the ordered set where companyId = ?. 204 * 205 * @param contactId the primary key of the current contact 206 * @param companyId the company ID 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the previous, current, and next contact 209 * @throws com.liferay.portal.NoSuchContactException if a contact with the primary key could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext( 213 long contactId, long companyId, 214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 215 throws com.liferay.portal.NoSuchContactException, 216 com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns all the contacts where accountId = ?. 220 * 221 * @param accountId the account ID 222 * @return the matching contacts 223 * @throws SystemException if a system exception occurred 224 */ 225 public java.util.List<com.liferay.portal.model.Contact> findByAccountId( 226 long accountId) 227 throws com.liferay.portal.kernel.exception.SystemException; 228 229 /** 230 * Returns a range of all the contacts where accountId = ?. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param accountId the account ID 237 * @param start the lower bound of the range of contacts 238 * @param end the upper bound of the range of contacts (not inclusive) 239 * @return the range of matching contacts 240 * @throws SystemException if a system exception occurred 241 */ 242 public java.util.List<com.liferay.portal.model.Contact> findByAccountId( 243 long accountId, int start, int end) 244 throws com.liferay.portal.kernel.exception.SystemException; 245 246 /** 247 * Returns an ordered range of all the contacts where accountId = ?. 248 * 249 * <p> 250 * 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. 251 * </p> 252 * 253 * @param accountId the account ID 254 * @param start the lower bound of the range of contacts 255 * @param end the upper bound of the range of contacts (not inclusive) 256 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 257 * @return the ordered range of matching contacts 258 * @throws SystemException if a system exception occurred 259 */ 260 public java.util.List<com.liferay.portal.model.Contact> findByAccountId( 261 long accountId, int start, int end, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns the first contact in the ordered set where accountId = ?. 267 * 268 * @param accountId the account ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching contact 271 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 272 * @throws SystemException if a system exception occurred 273 */ 274 public com.liferay.portal.model.Contact findByAccountId_First( 275 long accountId, 276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 277 throws com.liferay.portal.NoSuchContactException, 278 com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Returns the first contact in the ordered set where accountId = ?. 282 * 283 * @param accountId the account ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the first matching contact, or <code>null</code> if a matching contact could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public com.liferay.portal.model.Contact fetchByAccountId_First( 289 long accountId, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Returns the last contact in the ordered set where accountId = ?. 295 * 296 * @param accountId the account ID 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the last matching contact 299 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public com.liferay.portal.model.Contact findByAccountId_Last( 303 long accountId, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.NoSuchContactException, 306 com.liferay.portal.kernel.exception.SystemException; 307 308 /** 309 * Returns the last contact in the ordered set where accountId = ?. 310 * 311 * @param accountId the account ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the last matching contact, or <code>null</code> if a matching contact could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portal.model.Contact fetchByAccountId_Last( 317 long accountId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Returns the contacts before and after the current contact in the ordered set where accountId = ?. 323 * 324 * @param contactId the primary key of the current contact 325 * @param accountId the account ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the previous, current, and next contact 328 * @throws com.liferay.portal.NoSuchContactException if a contact with the primary key could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public com.liferay.portal.model.Contact[] findByAccountId_PrevAndNext( 332 long contactId, long accountId, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.NoSuchContactException, 335 com.liferay.portal.kernel.exception.SystemException; 336 337 /** 338 * Returns all the contacts where classNameId = ? and classPK = ?. 339 * 340 * @param classNameId the class name ID 341 * @param classPK the class p k 342 * @return the matching contacts 343 * @throws SystemException if a system exception occurred 344 */ 345 public java.util.List<com.liferay.portal.model.Contact> findByC_C( 346 long classNameId, long classPK) 347 throws com.liferay.portal.kernel.exception.SystemException; 348 349 /** 350 * Returns a range of all the contacts where classNameId = ? and classPK = ?. 351 * 352 * <p> 353 * 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. 354 * </p> 355 * 356 * @param classNameId the class name ID 357 * @param classPK the class p k 358 * @param start the lower bound of the range of contacts 359 * @param end the upper bound of the range of contacts (not inclusive) 360 * @return the range of matching contacts 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portal.model.Contact> findByC_C( 364 long classNameId, long classPK, int start, int end) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns an ordered range of all the contacts where classNameId = ? and classPK = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param classNameId the class name ID 375 * @param classPK the class p k 376 * @param start the lower bound of the range of contacts 377 * @param end the upper bound of the range of contacts (not inclusive) 378 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 379 * @return the ordered range of matching contacts 380 * @throws SystemException if a system exception occurred 381 */ 382 public java.util.List<com.liferay.portal.model.Contact> findByC_C( 383 long classNameId, long classPK, int start, int end, 384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 385 throws com.liferay.portal.kernel.exception.SystemException; 386 387 /** 388 * Returns the first contact in the ordered set where classNameId = ? and classPK = ?. 389 * 390 * @param classNameId the class name ID 391 * @param classPK the class p k 392 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 393 * @return the first matching contact 394 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public com.liferay.portal.model.Contact findByC_C_First(long classNameId, 398 long classPK, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.NoSuchContactException, 401 com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns the first contact in the ordered set where classNameId = ? and classPK = ?. 405 * 406 * @param classNameId the class name ID 407 * @param classPK the class p k 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the first matching contact, or <code>null</code> if a matching contact could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public com.liferay.portal.model.Contact fetchByC_C_First(long classNameId, 413 long classPK, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns the last contact in the ordered set where classNameId = ? and classPK = ?. 419 * 420 * @param classNameId the class name ID 421 * @param classPK the class p k 422 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 423 * @return the last matching contact 424 * @throws com.liferay.portal.NoSuchContactException if a matching contact could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public com.liferay.portal.model.Contact findByC_C_Last(long classNameId, 428 long classPK, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.NoSuchContactException, 431 com.liferay.portal.kernel.exception.SystemException; 432 433 /** 434 * Returns the last contact in the ordered set where classNameId = ? and classPK = ?. 435 * 436 * @param classNameId the class name ID 437 * @param classPK the class p k 438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 439 * @return the last matching contact, or <code>null</code> if a matching contact could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public com.liferay.portal.model.Contact fetchByC_C_Last(long classNameId, 443 long classPK, 444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns the contacts before and after the current contact in the ordered set where classNameId = ? and classPK = ?. 449 * 450 * @param contactId the primary key of the current contact 451 * @param classNameId the class name ID 452 * @param classPK the class p k 453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 454 * @return the previous, current, and next contact 455 * @throws com.liferay.portal.NoSuchContactException if a contact with the primary key could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public com.liferay.portal.model.Contact[] findByC_C_PrevAndNext( 459 long contactId, long classNameId, long classPK, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.NoSuchContactException, 462 com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns all the contacts. 466 * 467 * @return the contacts 468 * @throws SystemException if a system exception occurred 469 */ 470 public java.util.List<com.liferay.portal.model.Contact> findAll() 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Returns a range of all the contacts. 475 * 476 * <p> 477 * 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. 478 * </p> 479 * 480 * @param start the lower bound of the range of contacts 481 * @param end the upper bound of the range of contacts (not inclusive) 482 * @return the range of contacts 483 * @throws SystemException if a system exception occurred 484 */ 485 public java.util.List<com.liferay.portal.model.Contact> findAll(int start, 486 int end) throws com.liferay.portal.kernel.exception.SystemException; 487 488 /** 489 * Returns an ordered range of all the contacts. 490 * 491 * <p> 492 * 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. 493 * </p> 494 * 495 * @param start the lower bound of the range of contacts 496 * @param end the upper bound of the range of contacts (not inclusive) 497 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 498 * @return the ordered range of contacts 499 * @throws SystemException if a system exception occurred 500 */ 501 public java.util.List<com.liferay.portal.model.Contact> findAll(int start, 502 int end, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.kernel.exception.SystemException; 505 506 /** 507 * Removes all the contacts where companyId = ? from the database. 508 * 509 * @param companyId the company ID 510 * @throws SystemException if a system exception occurred 511 */ 512 public void removeByCompanyId(long companyId) 513 throws com.liferay.portal.kernel.exception.SystemException; 514 515 /** 516 * Removes all the contacts where accountId = ? from the database. 517 * 518 * @param accountId the account ID 519 * @throws SystemException if a system exception occurred 520 */ 521 public void removeByAccountId(long accountId) 522 throws com.liferay.portal.kernel.exception.SystemException; 523 524 /** 525 * Removes all the contacts where classNameId = ? and classPK = ? from the database. 526 * 527 * @param classNameId the class name ID 528 * @param classPK the class p k 529 * @throws SystemException if a system exception occurred 530 */ 531 public void removeByC_C(long classNameId, long classPK) 532 throws com.liferay.portal.kernel.exception.SystemException; 533 534 /** 535 * Removes all the contacts from the database. 536 * 537 * @throws SystemException if a system exception occurred 538 */ 539 public void removeAll() 540 throws com.liferay.portal.kernel.exception.SystemException; 541 542 /** 543 * Returns the number of contacts where companyId = ?. 544 * 545 * @param companyId the company ID 546 * @return the number of matching contacts 547 * @throws SystemException if a system exception occurred 548 */ 549 public int countByCompanyId(long companyId) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns the number of contacts where accountId = ?. 554 * 555 * @param accountId the account ID 556 * @return the number of matching contacts 557 * @throws SystemException if a system exception occurred 558 */ 559 public int countByAccountId(long accountId) 560 throws com.liferay.portal.kernel.exception.SystemException; 561 562 /** 563 * Returns the number of contacts where classNameId = ? and classPK = ?. 564 * 565 * @param classNameId the class name ID 566 * @param classPK the class p k 567 * @return the number of matching contacts 568 * @throws SystemException if a system exception occurred 569 */ 570 public int countByC_C(long classNameId, long classPK) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Returns the number of contacts. 575 * 576 * @return the number of contacts 577 * @throws SystemException if a system exception occurred 578 */ 579 public int countAll() 580 throws com.liferay.portal.kernel.exception.SystemException; 581 }