001 /** 002 * Copyright (c) 2000-2012 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 * <p> 152 * 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. 153 * </p> 154 * 155 * @param companyId the company ID 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching email address 158 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portal.model.EmailAddress findByCompanyId_First( 162 long companyId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.NoSuchEmailAddressException, 165 com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the last email address in the ordered set where companyId = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param companyId the company ID 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the last matching email address 177 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portal.model.EmailAddress findByCompanyId_Last( 181 long companyId, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.NoSuchEmailAddressException, 184 com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns the email addresses before and after the current email address in the ordered set where companyId = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param emailAddressId the primary key of the current email address 194 * @param companyId the company ID 195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 196 * @return the previous, current, and next email address 197 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext( 201 long emailAddressId, long companyId, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.NoSuchEmailAddressException, 204 com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns all the email addresses where userId = ?. 208 * 209 * @param userId the user ID 210 * @return the matching email addresses 211 * @throws SystemException if a system exception occurred 212 */ 213 public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 214 long userId) throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Returns a range of all the email addresses where userId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param userId the user ID 224 * @param start the lower bound of the range of email addresses 225 * @param end the upper bound of the range of email addresses (not inclusive) 226 * @return the range of matching email addresses 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 230 long userId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Returns an ordered range of all the email addresses where userId = ?. 235 * 236 * <p> 237 * 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. 238 * </p> 239 * 240 * @param userId the user ID 241 * @param start the lower bound of the range of email addresses 242 * @param end the upper bound of the range of email addresses (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching email addresses 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 248 long userId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the first email address in the ordered set where userId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param userId the user ID 260 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 261 * @return the first matching email address 262 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portal.model.EmailAddress findByUserId_First( 266 long userId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.NoSuchEmailAddressException, 269 com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns the last email address in the ordered set where userId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param userId the user ID 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching email address 281 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portal.model.EmailAddress findByUserId_Last( 285 long userId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.NoSuchEmailAddressException, 288 com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Returns the email addresses before and after the current email address in the ordered set where userId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param emailAddressId the primary key of the current email address 298 * @param userId the user ID 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the previous, current, and next email address 301 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext( 305 long emailAddressId, long userId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.NoSuchEmailAddressException, 308 com.liferay.portal.kernel.exception.SystemException; 309 310 /** 311 * Returns all the email addresses where companyId = ? and classNameId = ?. 312 * 313 * @param companyId the company ID 314 * @param classNameId the class name ID 315 * @return the matching email addresses 316 * @throws SystemException if a system exception occurred 317 */ 318 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 319 long companyId, long classNameId) 320 throws com.liferay.portal.kernel.exception.SystemException; 321 322 /** 323 * Returns a range of all the email addresses where companyId = ? and classNameId = ?. 324 * 325 * <p> 326 * 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. 327 * </p> 328 * 329 * @param companyId the company ID 330 * @param classNameId the class name ID 331 * @param start the lower bound of the range of email addresses 332 * @param end the upper bound of the range of email addresses (not inclusive) 333 * @return the range of matching email addresses 334 * @throws SystemException if a system exception occurred 335 */ 336 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 337 long companyId, long classNameId, int start, int end) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ?. 342 * 343 * <p> 344 * 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. 345 * </p> 346 * 347 * @param companyId the company ID 348 * @param classNameId the class name ID 349 * @param start the lower bound of the range of email addresses 350 * @param end the upper bound of the range of email addresses (not inclusive) 351 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 352 * @return the ordered range of matching email addresses 353 * @throws SystemException if a system exception occurred 354 */ 355 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 356 long companyId, long classNameId, int start, int end, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns the first email address in the ordered set where companyId = ? and classNameId = ?. 362 * 363 * <p> 364 * 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. 365 * </p> 366 * 367 * @param companyId the company ID 368 * @param classNameId the class name ID 369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 370 * @return the first matching email address 371 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public com.liferay.portal.model.EmailAddress findByC_C_First( 375 long companyId, long classNameId, 376 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 377 throws com.liferay.portal.NoSuchEmailAddressException, 378 com.liferay.portal.kernel.exception.SystemException; 379 380 /** 381 * Returns the last email address in the ordered set where companyId = ? and classNameId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param companyId the company ID 388 * @param classNameId the class name ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the last matching email address 391 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public com.liferay.portal.model.EmailAddress findByC_C_Last( 395 long companyId, long classNameId, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.NoSuchEmailAddressException, 398 com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param emailAddressId the primary key of the current email address 408 * @param companyId the company ID 409 * @param classNameId the class name ID 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the previous, current, and next email address 412 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 413 * @throws SystemException if a system exception occurred 414 */ 415 public com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext( 416 long emailAddressId, long companyId, long classNameId, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.NoSuchEmailAddressException, 419 com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Returns all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 423 * 424 * @param companyId the company ID 425 * @param classNameId the class name ID 426 * @param classPK the class p k 427 * @return the matching email addresses 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 431 long companyId, long classNameId, long classPK) 432 throws com.liferay.portal.kernel.exception.SystemException; 433 434 /** 435 * Returns a range of all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 436 * 437 * <p> 438 * 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. 439 * </p> 440 * 441 * @param companyId the company ID 442 * @param classNameId the class name ID 443 * @param classPK the class p k 444 * @param start the lower bound of the range of email addresses 445 * @param end the upper bound of the range of email addresses (not inclusive) 446 * @return the range of matching email addresses 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 450 long companyId, long classNameId, long classPK, int start, int end) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param companyId the company ID 461 * @param classNameId the class name ID 462 * @param classPK the class p k 463 * @param start the lower bound of the range of email addresses 464 * @param end the upper bound of the range of email addresses (not inclusive) 465 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 466 * @return the ordered range of matching email addresses 467 * @throws SystemException if a system exception occurred 468 */ 469 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 470 long companyId, long classNameId, long classPK, int start, int end, 471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 472 throws com.liferay.portal.kernel.exception.SystemException; 473 474 /** 475 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 476 * 477 * <p> 478 * 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. 479 * </p> 480 * 481 * @param companyId the company ID 482 * @param classNameId the class name ID 483 * @param classPK the class p k 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the first matching email address 486 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public com.liferay.portal.model.EmailAddress findByC_C_C_First( 490 long companyId, long classNameId, long classPK, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.NoSuchEmailAddressException, 493 com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param companyId the company ID 503 * @param classNameId the class name ID 504 * @param classPK the class p k 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the last matching email address 507 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public com.liferay.portal.model.EmailAddress findByC_C_C_Last( 511 long companyId, long classNameId, long classPK, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.NoSuchEmailAddressException, 514 com.liferay.portal.kernel.exception.SystemException; 515 516 /** 517 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 518 * 519 * <p> 520 * 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. 521 * </p> 522 * 523 * @param emailAddressId the primary key of the current email address 524 * @param companyId the company ID 525 * @param classNameId the class name ID 526 * @param classPK the class p k 527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 528 * @return the previous, current, and next email address 529 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext( 533 long emailAddressId, long companyId, long classNameId, long classPK, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.NoSuchEmailAddressException, 536 com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 540 * 541 * @param companyId the company ID 542 * @param classNameId the class name ID 543 * @param classPK the class p k 544 * @param primary the primary 545 * @return the matching email addresses 546 * @throws SystemException if a system exception occurred 547 */ 548 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 549 long companyId, long classNameId, long classPK, boolean primary) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns a range of all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 554 * 555 * <p> 556 * 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. 557 * </p> 558 * 559 * @param companyId the company ID 560 * @param classNameId the class name ID 561 * @param classPK the class p k 562 * @param primary the primary 563 * @param start the lower bound of the range of email addresses 564 * @param end the upper bound of the range of email addresses (not inclusive) 565 * @return the range of matching email addresses 566 * @throws SystemException if a system exception occurred 567 */ 568 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 569 long companyId, long classNameId, long classPK, boolean primary, 570 int start, int end) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 575 * 576 * <p> 577 * 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. 578 * </p> 579 * 580 * @param companyId the company ID 581 * @param classNameId the class name ID 582 * @param classPK the class p k 583 * @param primary the primary 584 * @param start the lower bound of the range of email addresses 585 * @param end the upper bound of the range of email addresses (not inclusive) 586 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 587 * @return the ordered range of matching email addresses 588 * @throws SystemException if a system exception occurred 589 */ 590 public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 591 long companyId, long classNameId, long classPK, boolean primary, 592 int start, int end, 593 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 598 * 599 * <p> 600 * 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. 601 * </p> 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 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 608 * @return the first matching email address 609 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 610 * @throws SystemException if a system exception occurred 611 */ 612 public com.liferay.portal.model.EmailAddress findByC_C_C_P_First( 613 long companyId, long classNameId, long classPK, boolean primary, 614 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 615 throws com.liferay.portal.NoSuchEmailAddressException, 616 com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 620 * 621 * <p> 622 * 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. 623 * </p> 624 * 625 * @param companyId the company ID 626 * @param classNameId the class name ID 627 * @param classPK the class p k 628 * @param primary the primary 629 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 630 * @return the last matching email address 631 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 632 * @throws SystemException if a system exception occurred 633 */ 634 public com.liferay.portal.model.EmailAddress findByC_C_C_P_Last( 635 long companyId, long classNameId, long classPK, boolean primary, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.NoSuchEmailAddressException, 638 com.liferay.portal.kernel.exception.SystemException; 639 640 /** 641 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 642 * 643 * <p> 644 * 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. 645 * </p> 646 * 647 * @param emailAddressId the primary key of the current email address 648 * @param companyId the company ID 649 * @param classNameId the class name ID 650 * @param classPK the class p k 651 * @param primary the primary 652 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 653 * @return the previous, current, and next email address 654 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 655 * @throws SystemException if a system exception occurred 656 */ 657 public com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext( 658 long emailAddressId, long companyId, long classNameId, long classPK, 659 boolean primary, 660 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 661 throws com.liferay.portal.NoSuchEmailAddressException, 662 com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Returns all the email addresses. 666 * 667 * @return the email addresses 668 * @throws SystemException if a system exception occurred 669 */ 670 public java.util.List<com.liferay.portal.model.EmailAddress> findAll() 671 throws com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Returns a range of all the email addresses. 675 * 676 * <p> 677 * 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. 678 * </p> 679 * 680 * @param start the lower bound of the range of email addresses 681 * @param end the upper bound of the range of email addresses (not inclusive) 682 * @return the range of email addresses 683 * @throws SystemException if a system exception occurred 684 */ 685 public java.util.List<com.liferay.portal.model.EmailAddress> findAll( 686 int start, int end) 687 throws com.liferay.portal.kernel.exception.SystemException; 688 689 /** 690 * Returns an ordered range of all the email addresses. 691 * 692 * <p> 693 * 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. 694 * </p> 695 * 696 * @param start the lower bound of the range of email addresses 697 * @param end the upper bound of the range of email addresses (not inclusive) 698 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 699 * @return the ordered range of email addresses 700 * @throws SystemException if a system exception occurred 701 */ 702 public java.util.List<com.liferay.portal.model.EmailAddress> findAll( 703 int start, int end, 704 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 705 throws com.liferay.portal.kernel.exception.SystemException; 706 707 /** 708 * Removes all the email addresses where companyId = ? from the database. 709 * 710 * @param companyId the company ID 711 * @throws SystemException if a system exception occurred 712 */ 713 public void removeByCompanyId(long companyId) 714 throws com.liferay.portal.kernel.exception.SystemException; 715 716 /** 717 * Removes all the email addresses where userId = ? from the database. 718 * 719 * @param userId the user ID 720 * @throws SystemException if a system exception occurred 721 */ 722 public void removeByUserId(long userId) 723 throws com.liferay.portal.kernel.exception.SystemException; 724 725 /** 726 * Removes all the email addresses where companyId = ? and classNameId = ? from the database. 727 * 728 * @param companyId the company ID 729 * @param classNameId the class name ID 730 * @throws SystemException if a system exception occurred 731 */ 732 public void removeByC_C(long companyId, long classNameId) 733 throws com.liferay.portal.kernel.exception.SystemException; 734 735 /** 736 * Removes all the email addresses where companyId = ? and classNameId = ? and classPK = ? from the database. 737 * 738 * @param companyId the company ID 739 * @param classNameId the class name ID 740 * @param classPK the class p k 741 * @throws SystemException if a system exception occurred 742 */ 743 public void removeByC_C_C(long companyId, long classNameId, long classPK) 744 throws com.liferay.portal.kernel.exception.SystemException; 745 746 /** 747 * Removes all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 748 * 749 * @param companyId the company ID 750 * @param classNameId the class name ID 751 * @param classPK the class p k 752 * @param primary the primary 753 * @throws SystemException if a system exception occurred 754 */ 755 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 756 boolean primary) 757 throws com.liferay.portal.kernel.exception.SystemException; 758 759 /** 760 * Removes all the email addresses from the database. 761 * 762 * @throws SystemException if a system exception occurred 763 */ 764 public void removeAll() 765 throws com.liferay.portal.kernel.exception.SystemException; 766 767 /** 768 * Returns the number of email addresses where companyId = ?. 769 * 770 * @param companyId the company ID 771 * @return the number of matching email addresses 772 * @throws SystemException if a system exception occurred 773 */ 774 public int countByCompanyId(long companyId) 775 throws com.liferay.portal.kernel.exception.SystemException; 776 777 /** 778 * Returns the number of email addresses where userId = ?. 779 * 780 * @param userId the user ID 781 * @return the number of matching email addresses 782 * @throws SystemException if a system exception occurred 783 */ 784 public int countByUserId(long userId) 785 throws com.liferay.portal.kernel.exception.SystemException; 786 787 /** 788 * Returns the number of email addresses where companyId = ? and classNameId = ?. 789 * 790 * @param companyId the company ID 791 * @param classNameId the class name ID 792 * @return the number of matching email addresses 793 * @throws SystemException if a system exception occurred 794 */ 795 public int countByC_C(long companyId, long classNameId) 796 throws com.liferay.portal.kernel.exception.SystemException; 797 798 /** 799 * Returns the number of email addresses where companyId = ? and classNameId = ? and classPK = ?. 800 * 801 * @param companyId the company ID 802 * @param classNameId the class name ID 803 * @param classPK the class p k 804 * @return the number of matching email addresses 805 * @throws SystemException if a system exception occurred 806 */ 807 public int countByC_C_C(long companyId, long classNameId, long classPK) 808 throws com.liferay.portal.kernel.exception.SystemException; 809 810 /** 811 * Returns the number of email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 812 * 813 * @param companyId the company ID 814 * @param classNameId the class name ID 815 * @param classPK the class p k 816 * @param primary the primary 817 * @return the number of matching email addresses 818 * @throws SystemException if a system exception occurred 819 */ 820 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 821 boolean primary) 822 throws com.liferay.portal.kernel.exception.SystemException; 823 824 /** 825 * Returns the number of email addresses. 826 * 827 * @return the number of email addresses 828 * @throws SystemException if a system exception occurred 829 */ 830 public int countAll() 831 throws com.liferay.portal.kernel.exception.SystemException; 832 }