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.model.Phone; 018 019 /** 020 * The persistence interface for the phone 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 PhonePersistenceImpl 028 * @see PhoneUtil 029 * @generated 030 */ 031 public interface PhonePersistence extends BasePersistence<Phone> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link PhoneUtil} to access the phone persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the phone in the entity cache if it is enabled. 040 * 041 * @param phone the phone 042 */ 043 public void cacheResult(com.liferay.portal.model.Phone phone); 044 045 /** 046 * Caches the phones in the entity cache if it is enabled. 047 * 048 * @param phones the phones 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Phone> phones); 052 053 /** 054 * Creates a new phone with the primary key. Does not add the phone to the database. 055 * 056 * @param phoneId the primary key for the new phone 057 * @return the new phone 058 */ 059 public com.liferay.portal.model.Phone create(long phoneId); 060 061 /** 062 * Removes the phone with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param phoneId the primary key of the phone 065 * @return the phone that was removed 066 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Phone remove(long phoneId) 070 throws com.liferay.portal.NoSuchPhoneException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Phone updateImpl( 074 com.liferay.portal.model.Phone phone, boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the phone with the primary key or throws a {@link com.liferay.portal.NoSuchPhoneException} if it could not be found. 079 * 080 * @param phoneId the primary key of the phone 081 * @return the phone 082 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId) 086 throws com.liferay.portal.NoSuchPhoneException, 087 com.liferay.portal.kernel.exception.SystemException; 088 089 /** 090 * Returns the phone with the primary key or returns <code>null</code> if it could not be found. 091 * 092 * @param phoneId the primary key of the phone 093 * @return the phone, or <code>null</code> if a phone with the primary key could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns all the phones where companyId = ?. 101 * 102 * @param companyId the company ID 103 * @return the matching phones 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.Phone> findByCompanyId( 107 long companyId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Returns a range of all the phones 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 phones 119 * @param end the upper bound of the range of phones (not inclusive) 120 * @return the range of matching phones 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.Phone> 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 phones 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 phones 136 * @param end the upper bound of the range of phones (not inclusive) 137 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 138 * @return the ordered range of matching phones 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.Phone> 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 phone 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 phone 152 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public com.liferay.portal.model.Phone findByCompanyId_First( 156 long companyId, 157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 158 throws com.liferay.portal.NoSuchPhoneException, 159 com.liferay.portal.kernel.exception.SystemException; 160 161 /** 162 * Returns the first phone 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 phone, or <code>null</code> if a matching phone could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.Phone 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 phone 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 phone 180 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId, 184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 185 throws com.liferay.portal.NoSuchPhoneException, 186 com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns the last phone in the ordered set where companyId = ?. 190 * 191 * @param companyId the company ID 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public com.liferay.portal.model.Phone fetchByCompanyId_Last( 197 long companyId, 198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 199 throws com.liferay.portal.kernel.exception.SystemException; 200 201 /** 202 * Returns the phones before and after the current phone in the ordered set where companyId = ?. 203 * 204 * @param phoneId the primary key of the current phone 205 * @param companyId the company ID 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the previous, current, and next phone 208 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext( 212 long phoneId, long companyId, 213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 214 throws com.liferay.portal.NoSuchPhoneException, 215 com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Returns all the phones where userId = ?. 219 * 220 * @param userId the user ID 221 * @return the matching phones 222 * @throws SystemException if a system exception occurred 223 */ 224 public java.util.List<com.liferay.portal.model.Phone> findByUserId( 225 long userId) throws com.liferay.portal.kernel.exception.SystemException; 226 227 /** 228 * Returns a range of all the phones where userId = ?. 229 * 230 * <p> 231 * 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. 232 * </p> 233 * 234 * @param userId the user ID 235 * @param start the lower bound of the range of phones 236 * @param end the upper bound of the range of phones (not inclusive) 237 * @return the range of matching phones 238 * @throws SystemException if a system exception occurred 239 */ 240 public java.util.List<com.liferay.portal.model.Phone> findByUserId( 241 long userId, int start, int end) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Returns an ordered range of all the phones where userId = ?. 246 * 247 * <p> 248 * 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. 249 * </p> 250 * 251 * @param userId the user ID 252 * @param start the lower bound of the range of phones 253 * @param end the upper bound of the range of phones (not inclusive) 254 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 255 * @return the ordered range of matching phones 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portal.model.Phone> findByUserId( 259 long userId, int start, int end, 260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 261 throws com.liferay.portal.kernel.exception.SystemException; 262 263 /** 264 * Returns the first phone in the ordered set where userId = ?. 265 * 266 * @param userId the user ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching phone 269 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public com.liferay.portal.model.Phone findByUserId_First(long userId, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.NoSuchPhoneException, 275 com.liferay.portal.kernel.exception.SystemException; 276 277 /** 278 * Returns the first phone in the ordered set where userId = ?. 279 * 280 * @param userId the user ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public com.liferay.portal.model.Phone fetchByUserId_First(long userId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns the last phone in the ordered set where userId = ?. 291 * 292 * @param userId the user ID 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the last matching phone 295 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 296 * @throws SystemException if a system exception occurred 297 */ 298 public com.liferay.portal.model.Phone findByUserId_Last(long userId, 299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 300 throws com.liferay.portal.NoSuchPhoneException, 301 com.liferay.portal.kernel.exception.SystemException; 302 303 /** 304 * Returns the last phone in the ordered set where userId = ?. 305 * 306 * @param userId the user ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portal.model.Phone fetchByUserId_Last(long userId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the phones before and after the current phone in the ordered set where userId = ?. 317 * 318 * @param phoneId the primary key of the current phone 319 * @param userId the user ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the previous, current, and next phone 322 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext( 326 long phoneId, long userId, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.NoSuchPhoneException, 329 com.liferay.portal.kernel.exception.SystemException; 330 331 /** 332 * Returns all the phones where companyId = ? and classNameId = ?. 333 * 334 * @param companyId the company ID 335 * @param classNameId the class name ID 336 * @return the matching phones 337 * @throws SystemException if a system exception occurred 338 */ 339 public java.util.List<com.liferay.portal.model.Phone> findByC_C( 340 long companyId, long classNameId) 341 throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Returns a range of all the phones where companyId = ? and classNameId = ?. 345 * 346 * <p> 347 * 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. 348 * </p> 349 * 350 * @param companyId the company ID 351 * @param classNameId the class name ID 352 * @param start the lower bound of the range of phones 353 * @param end the upper bound of the range of phones (not inclusive) 354 * @return the range of matching phones 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portal.model.Phone> findByC_C( 358 long companyId, long classNameId, int start, int end) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Returns an ordered range of all the phones where companyId = ? and classNameId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param companyId the company ID 369 * @param classNameId the class name ID 370 * @param start the lower bound of the range of phones 371 * @param end the upper bound of the range of phones (not inclusive) 372 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 373 * @return the ordered range of matching phones 374 * @throws SystemException if a system exception occurred 375 */ 376 public java.util.List<com.liferay.portal.model.Phone> findByC_C( 377 long companyId, long classNameId, int start, int end, 378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 379 throws com.liferay.portal.kernel.exception.SystemException; 380 381 /** 382 * Returns the first phone in the ordered set where companyId = ? and classNameId = ?. 383 * 384 * @param companyId the company ID 385 * @param classNameId the class name ID 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the first matching phone 388 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public com.liferay.portal.model.Phone findByC_C_First(long companyId, 392 long classNameId, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.NoSuchPhoneException, 395 com.liferay.portal.kernel.exception.SystemException; 396 397 /** 398 * Returns the first phone in the ordered set where companyId = ? and classNameId = ?. 399 * 400 * @param companyId the company ID 401 * @param classNameId the class name 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 com.liferay.portal.model.Phone fetchByC_C_First(long companyId, 407 long classNameId, 408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 409 throws com.liferay.portal.kernel.exception.SystemException; 410 411 /** 412 * Returns the last phone in the ordered set where companyId = ? and classNameId = ?. 413 * 414 * @param companyId the company ID 415 * @param classNameId the class name ID 416 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 417 * @return the last matching phone 418 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public com.liferay.portal.model.Phone findByC_C_Last(long companyId, 422 long classNameId, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.NoSuchPhoneException, 425 com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Returns the last phone in the ordered set where companyId = ? and classNameId = ?. 429 * 430 * @param companyId the company ID 431 * @param classNameId the class name ID 432 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 433 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public com.liferay.portal.model.Phone fetchByC_C_Last(long companyId, 437 long classNameId, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ?. 443 * 444 * @param phoneId the primary key of the current phone 445 * @param companyId the company ID 446 * @param classNameId the class name ID 447 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 448 * @return the previous, current, and next phone 449 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 450 * @throws SystemException if a system exception occurred 451 */ 452 public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext( 453 long phoneId, long companyId, long classNameId, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.NoSuchPhoneException, 456 com.liferay.portal.kernel.exception.SystemException; 457 458 /** 459 * Returns all the phones where companyId = ? and classNameId = ? and classPK = ?. 460 * 461 * @param companyId the company ID 462 * @param classNameId the class name ID 463 * @param classPK the class p k 464 * @return the matching phones 465 * @throws SystemException if a system exception occurred 466 */ 467 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 468 long companyId, long classNameId, long classPK) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Returns a range of all the phones where companyId = ? and classNameId = ? and classPK = ?. 473 * 474 * <p> 475 * 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. 476 * </p> 477 * 478 * @param companyId the company ID 479 * @param classNameId the class name ID 480 * @param classPK the class p k 481 * @param start the lower bound of the range of phones 482 * @param end the upper bound of the range of phones (not inclusive) 483 * @return the range of matching phones 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 487 long companyId, long classNameId, long classPK, int start, int end) 488 throws com.liferay.portal.kernel.exception.SystemException; 489 490 /** 491 * Returns an ordered range of all the phones where companyId = ? and classNameId = ? and classPK = ?. 492 * 493 * <p> 494 * 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. 495 * </p> 496 * 497 * @param companyId the company ID 498 * @param classNameId the class name ID 499 * @param classPK the class p k 500 * @param start the lower bound of the range of phones 501 * @param end the upper bound of the range of phones (not inclusive) 502 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 503 * @return the ordered range of matching phones 504 * @throws SystemException if a system exception occurred 505 */ 506 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C( 507 long companyId, long classNameId, long classPK, int start, int end, 508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 513 * 514 * @param companyId the company ID 515 * @param classNameId the class name ID 516 * @param classPK the class p k 517 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 518 * @return the first matching phone 519 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 520 * @throws SystemException if a system exception occurred 521 */ 522 public com.liferay.portal.model.Phone findByC_C_C_First(long companyId, 523 long classNameId, long classPK, 524 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 525 throws com.liferay.portal.NoSuchPhoneException, 526 com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 530 * 531 * @param companyId the company ID 532 * @param classNameId the class name ID 533 * @param classPK the class p k 534 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 535 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 536 * @throws SystemException if a system exception occurred 537 */ 538 public com.liferay.portal.model.Phone fetchByC_C_C_First(long companyId, 539 long classNameId, long classPK, 540 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 541 throws com.liferay.portal.kernel.exception.SystemException; 542 543 /** 544 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 545 * 546 * @param companyId the company ID 547 * @param classNameId the class name ID 548 * @param classPK the class p k 549 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 550 * @return the last matching phone 551 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 552 * @throws SystemException if a system exception occurred 553 */ 554 public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId, 555 long classNameId, long classPK, 556 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 557 throws com.liferay.portal.NoSuchPhoneException, 558 com.liferay.portal.kernel.exception.SystemException; 559 560 /** 561 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 562 * 563 * @param companyId the company ID 564 * @param classNameId the class name ID 565 * @param classPK the class p k 566 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 567 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 568 * @throws SystemException if a system exception occurred 569 */ 570 public com.liferay.portal.model.Phone fetchByC_C_C_Last(long companyId, 571 long classNameId, long classPK, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException; 574 575 /** 576 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 577 * 578 * @param phoneId the primary key of the current phone 579 * @param companyId the company ID 580 * @param classNameId the class name ID 581 * @param classPK the class p k 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the previous, current, and next phone 584 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext( 588 long phoneId, long companyId, long classNameId, long classPK, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.NoSuchPhoneException, 591 com.liferay.portal.kernel.exception.SystemException; 592 593 /** 594 * Returns all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 595 * 596 * @param companyId the company ID 597 * @param classNameId the class name ID 598 * @param classPK the class p k 599 * @param primary the primary 600 * @return the matching phones 601 * @throws SystemException if a system exception occurred 602 */ 603 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 604 long companyId, long classNameId, long classPK, boolean primary) 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 /** 608 * Returns a range of all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 609 * 610 * <p> 611 * 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. 612 * </p> 613 * 614 * @param companyId the company ID 615 * @param classNameId the class name ID 616 * @param classPK the class p k 617 * @param primary the primary 618 * @param start the lower bound of the range of phones 619 * @param end the upper bound of the range of phones (not inclusive) 620 * @return the range of matching phones 621 * @throws SystemException if a system exception occurred 622 */ 623 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 624 long companyId, long classNameId, long classPK, boolean primary, 625 int start, int end) 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns an ordered range of all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param companyId the company ID 636 * @param classNameId the class name ID 637 * @param classPK the class p k 638 * @param primary the primary 639 * @param start the lower bound of the range of phones 640 * @param end the upper bound of the range of phones (not inclusive) 641 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 642 * @return the ordered range of matching phones 643 * @throws SystemException if a system exception occurred 644 */ 645 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P( 646 long companyId, long classNameId, long classPK, boolean primary, 647 int start, int end, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException; 650 651 /** 652 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 653 * 654 * @param companyId the company ID 655 * @param classNameId the class name ID 656 * @param classPK the class p k 657 * @param primary the primary 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the first matching phone 660 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 661 * @throws SystemException if a system exception occurred 662 */ 663 public com.liferay.portal.model.Phone findByC_C_C_P_First(long companyId, 664 long classNameId, long classPK, boolean primary, 665 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 666 throws com.liferay.portal.NoSuchPhoneException, 667 com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Returns the first phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 671 * 672 * @param companyId the company ID 673 * @param classNameId the class name ID 674 * @param classPK the class p k 675 * @param primary the primary 676 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 677 * @return the first matching phone, or <code>null</code> if a matching phone could not be found 678 * @throws SystemException if a system exception occurred 679 */ 680 public com.liferay.portal.model.Phone fetchByC_C_C_P_First(long companyId, 681 long classNameId, long classPK, boolean primary, 682 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 683 throws com.liferay.portal.kernel.exception.SystemException; 684 685 /** 686 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 687 * 688 * @param companyId the company ID 689 * @param classNameId the class name ID 690 * @param classPK the class p k 691 * @param primary the primary 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the last matching phone 694 * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found 695 * @throws SystemException if a system exception occurred 696 */ 697 public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId, 698 long classNameId, long classPK, boolean primary, 699 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 700 throws com.liferay.portal.NoSuchPhoneException, 701 com.liferay.portal.kernel.exception.SystemException; 702 703 /** 704 * Returns the last phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 705 * 706 * @param companyId the company ID 707 * @param classNameId the class name ID 708 * @param classPK the class p k 709 * @param primary the primary 710 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 711 * @return the last matching phone, or <code>null</code> if a matching phone could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public com.liferay.portal.model.Phone fetchByC_C_C_P_Last(long companyId, 715 long classNameId, long classPK, boolean primary, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException; 718 719 /** 720 * Returns the phones before and after the current phone in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 721 * 722 * @param phoneId the primary key of the current phone 723 * @param companyId the company ID 724 * @param classNameId the class name ID 725 * @param classPK the class p k 726 * @param primary the primary 727 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 728 * @return the previous, current, and next phone 729 * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found 730 * @throws SystemException if a system exception occurred 731 */ 732 public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext( 733 long phoneId, long companyId, long classNameId, long classPK, 734 boolean primary, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.NoSuchPhoneException, 737 com.liferay.portal.kernel.exception.SystemException; 738 739 /** 740 * Returns all the phones. 741 * 742 * @return the phones 743 * @throws SystemException if a system exception occurred 744 */ 745 public java.util.List<com.liferay.portal.model.Phone> findAll() 746 throws com.liferay.portal.kernel.exception.SystemException; 747 748 /** 749 * Returns a range of all the phones. 750 * 751 * <p> 752 * 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. 753 * </p> 754 * 755 * @param start the lower bound of the range of phones 756 * @param end the upper bound of the range of phones (not inclusive) 757 * @return the range of phones 758 * @throws SystemException if a system exception occurred 759 */ 760 public java.util.List<com.liferay.portal.model.Phone> findAll(int start, 761 int end) throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Returns an ordered range of all the phones. 765 * 766 * <p> 767 * 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. 768 * </p> 769 * 770 * @param start the lower bound of the range of phones 771 * @param end the upper bound of the range of phones (not inclusive) 772 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 773 * @return the ordered range of phones 774 * @throws SystemException if a system exception occurred 775 */ 776 public java.util.List<com.liferay.portal.model.Phone> findAll(int start, 777 int end, 778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 779 throws com.liferay.portal.kernel.exception.SystemException; 780 781 /** 782 * Removes all the phones where companyId = ? from the database. 783 * 784 * @param companyId the company ID 785 * @throws SystemException if a system exception occurred 786 */ 787 public void removeByCompanyId(long companyId) 788 throws com.liferay.portal.kernel.exception.SystemException; 789 790 /** 791 * Removes all the phones where userId = ? from the database. 792 * 793 * @param userId the user ID 794 * @throws SystemException if a system exception occurred 795 */ 796 public void removeByUserId(long userId) 797 throws com.liferay.portal.kernel.exception.SystemException; 798 799 /** 800 * Removes all the phones where companyId = ? and classNameId = ? from the database. 801 * 802 * @param companyId the company ID 803 * @param classNameId the class name ID 804 * @throws SystemException if a system exception occurred 805 */ 806 public void removeByC_C(long companyId, long classNameId) 807 throws com.liferay.portal.kernel.exception.SystemException; 808 809 /** 810 * Removes all the phones where companyId = ? and classNameId = ? and classPK = ? from the database. 811 * 812 * @param companyId the company ID 813 * @param classNameId the class name ID 814 * @param classPK the class p k 815 * @throws SystemException if a system exception occurred 816 */ 817 public void removeByC_C_C(long companyId, long classNameId, long classPK) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Removes all the phones where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 822 * 823 * @param companyId the company ID 824 * @param classNameId the class name ID 825 * @param classPK the class p k 826 * @param primary the primary 827 * @throws SystemException if a system exception occurred 828 */ 829 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 830 boolean primary) 831 throws com.liferay.portal.kernel.exception.SystemException; 832 833 /** 834 * Removes all the phones from the database. 835 * 836 * @throws SystemException if a system exception occurred 837 */ 838 public void removeAll() 839 throws com.liferay.portal.kernel.exception.SystemException; 840 841 /** 842 * Returns the number of phones where companyId = ?. 843 * 844 * @param companyId the company ID 845 * @return the number of matching phones 846 * @throws SystemException if a system exception occurred 847 */ 848 public int countByCompanyId(long companyId) 849 throws com.liferay.portal.kernel.exception.SystemException; 850 851 /** 852 * Returns the number of phones where userId = ?. 853 * 854 * @param userId the user ID 855 * @return the number of matching phones 856 * @throws SystemException if a system exception occurred 857 */ 858 public int countByUserId(long userId) 859 throws com.liferay.portal.kernel.exception.SystemException; 860 861 /** 862 * Returns the number of phones where companyId = ? and classNameId = ?. 863 * 864 * @param companyId the company ID 865 * @param classNameId the class name ID 866 * @return the number of matching phones 867 * @throws SystemException if a system exception occurred 868 */ 869 public int countByC_C(long companyId, long classNameId) 870 throws com.liferay.portal.kernel.exception.SystemException; 871 872 /** 873 * Returns the number of phones where companyId = ? and classNameId = ? and classPK = ?. 874 * 875 * @param companyId the company ID 876 * @param classNameId the class name ID 877 * @param classPK the class p k 878 * @return the number of matching phones 879 * @throws SystemException if a system exception occurred 880 */ 881 public int countByC_C_C(long companyId, long classNameId, long classPK) 882 throws com.liferay.portal.kernel.exception.SystemException; 883 884 /** 885 * Returns the number of phones where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 886 * 887 * @param companyId the company ID 888 * @param classNameId the class name ID 889 * @param classPK the class p k 890 * @param primary the primary 891 * @return the number of matching phones 892 * @throws SystemException if a system exception occurred 893 */ 894 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 895 boolean primary) 896 throws com.liferay.portal.kernel.exception.SystemException; 897 898 /** 899 * Returns the number of phones. 900 * 901 * @return the number of phones 902 * @throws SystemException if a system exception occurred 903 */ 904 public int countAll() 905 throws com.liferay.portal.kernel.exception.SystemException; 906 }