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