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