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