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