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