001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.EmailAddress; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the email address service. This utility wraps {@link EmailAddressPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see EmailAddressPersistence 036 * @see EmailAddressPersistenceImpl 037 * @generated 038 */ 039 public class EmailAddressUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(EmailAddress emailAddress) { 057 getPersistence().clearCache(emailAddress); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<EmailAddress> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<EmailAddress> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<EmailAddress> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static EmailAddress update(EmailAddress emailAddress) 100 throws SystemException { 101 return getPersistence().update(emailAddress); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static EmailAddress update(EmailAddress emailAddress, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(emailAddress, serviceContext); 110 } 111 112 /** 113 * Returns all the email addresses where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @return the matching email addresses 117 * @throws SystemException if a system exception occurred 118 */ 119 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid( 120 java.lang.String uuid) 121 throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByUuid(uuid); 123 } 124 125 /** 126 * Returns a range of all the email addresses where uuid = ?. 127 * 128 * <p> 129 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 130 * </p> 131 * 132 * @param uuid the uuid 133 * @param start the lower bound of the range of email addresses 134 * @param end the upper bound of the range of email addresses (not inclusive) 135 * @return the range of matching email addresses 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid( 139 java.lang.String uuid, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByUuid(uuid, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the email addresses where uuid = ?. 146 * 147 * <p> 148 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 149 * </p> 150 * 151 * @param uuid the uuid 152 * @param start the lower bound of the range of email addresses 153 * @param end the upper bound of the range of email addresses (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching email addresses 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid( 159 java.lang.String uuid, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 163 } 164 165 /** 166 * Returns the first email address in the ordered set where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first 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 static com.liferay.portal.model.EmailAddress findByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.NoSuchEmailAddressException, 178 com.liferay.portal.kernel.exception.SystemException { 179 return getPersistence().findByUuid_First(uuid, orderByComparator); 180 } 181 182 /** 183 * Returns the first email address in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public static com.liferay.portal.model.EmailAddress fetchByUuid_First( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 195 } 196 197 /** 198 * Returns the last email address in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the last matching email address 203 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public static com.liferay.portal.model.EmailAddress findByUuid_Last( 207 java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.NoSuchEmailAddressException, 210 com.liferay.portal.kernel.exception.SystemException { 211 return getPersistence().findByUuid_Last(uuid, orderByComparator); 212 } 213 214 /** 215 * Returns the last email address in the ordered set where uuid = ?. 216 * 217 * @param uuid the uuid 218 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 219 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 220 * @throws SystemException if a system exception occurred 221 */ 222 public static com.liferay.portal.model.EmailAddress fetchByUuid_Last( 223 java.lang.String uuid, 224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 227 } 228 229 /** 230 * Returns the email addresses before and after the current email address in the ordered set where uuid = ?. 231 * 232 * @param emailAddressId the primary key of the current email address 233 * @param uuid the uuid 234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 235 * @return the previous, current, and next email address 236 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 237 * @throws SystemException if a system exception occurred 238 */ 239 public static com.liferay.portal.model.EmailAddress[] findByUuid_PrevAndNext( 240 long emailAddressId, java.lang.String uuid, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.NoSuchEmailAddressException, 243 com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByUuid_PrevAndNext(emailAddressId, uuid, 246 orderByComparator); 247 } 248 249 /** 250 * Removes all the email addresses where uuid = ? from the database. 251 * 252 * @param uuid the uuid 253 * @throws SystemException if a system exception occurred 254 */ 255 public static void removeByUuid(java.lang.String uuid) 256 throws com.liferay.portal.kernel.exception.SystemException { 257 getPersistence().removeByUuid(uuid); 258 } 259 260 /** 261 * Returns the number of email addresses where uuid = ?. 262 * 263 * @param uuid the uuid 264 * @return the number of matching email addresses 265 * @throws SystemException if a system exception occurred 266 */ 267 public static int countByUuid(java.lang.String uuid) 268 throws com.liferay.portal.kernel.exception.SystemException { 269 return getPersistence().countByUuid(uuid); 270 } 271 272 /** 273 * Returns all the email addresses where uuid = ? and companyId = ?. 274 * 275 * @param uuid the uuid 276 * @param companyId the company ID 277 * @return the matching email addresses 278 * @throws SystemException if a system exception occurred 279 */ 280 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C( 281 java.lang.String uuid, long companyId) 282 throws com.liferay.portal.kernel.exception.SystemException { 283 return getPersistence().findByUuid_C(uuid, companyId); 284 } 285 286 /** 287 * Returns a range of all the email addresses where uuid = ? and companyId = ?. 288 * 289 * <p> 290 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 291 * </p> 292 * 293 * @param uuid the uuid 294 * @param companyId the company ID 295 * @param start the lower bound of the range of email addresses 296 * @param end the upper bound of the range of email addresses (not inclusive) 297 * @return the range of matching email addresses 298 * @throws SystemException if a system exception occurred 299 */ 300 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C( 301 java.lang.String uuid, long companyId, int start, int end) 302 throws com.liferay.portal.kernel.exception.SystemException { 303 return getPersistence().findByUuid_C(uuid, companyId, start, end); 304 } 305 306 /** 307 * Returns an ordered range of all the email addresses where uuid = ? and companyId = ?. 308 * 309 * <p> 310 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 311 * </p> 312 * 313 * @param uuid the uuid 314 * @param companyId the company ID 315 * @param start the lower bound of the range of email addresses 316 * @param end the upper bound of the range of email addresses (not inclusive) 317 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 318 * @return the ordered range of matching email addresses 319 * @throws SystemException if a system exception occurred 320 */ 321 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C( 322 java.lang.String uuid, long companyId, int start, int end, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException { 325 return getPersistence() 326 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 327 } 328 329 /** 330 * Returns the first email address in the ordered set where uuid = ? and companyId = ?. 331 * 332 * @param uuid the uuid 333 * @param companyId the company ID 334 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 335 * @return the first matching email address 336 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portal.model.EmailAddress findByUuid_C_First( 340 java.lang.String uuid, long companyId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.NoSuchEmailAddressException, 343 com.liferay.portal.kernel.exception.SystemException { 344 return getPersistence() 345 .findByUuid_C_First(uuid, companyId, orderByComparator); 346 } 347 348 /** 349 * Returns the first email address in the ordered set where uuid = ? and companyId = ?. 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 355 * @throws SystemException if a system exception occurred 356 */ 357 public static com.liferay.portal.model.EmailAddress fetchByUuid_C_First( 358 java.lang.String uuid, long companyId, 359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 360 throws com.liferay.portal.kernel.exception.SystemException { 361 return getPersistence() 362 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 363 } 364 365 /** 366 * Returns the last email address in the ordered set where uuid = ? and companyId = ?. 367 * 368 * @param uuid the uuid 369 * @param companyId the company ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the last matching email address 372 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public static com.liferay.portal.model.EmailAddress findByUuid_C_Last( 376 java.lang.String uuid, long companyId, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.NoSuchEmailAddressException, 379 com.liferay.portal.kernel.exception.SystemException { 380 return getPersistence() 381 .findByUuid_C_Last(uuid, companyId, orderByComparator); 382 } 383 384 /** 385 * Returns the last email address in the ordered set where uuid = ? and companyId = ?. 386 * 387 * @param uuid the uuid 388 * @param companyId the company ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public static com.liferay.portal.model.EmailAddress fetchByUuid_C_Last( 394 java.lang.String uuid, long companyId, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 return getPersistence() 398 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 399 } 400 401 /** 402 * Returns the email addresses before and after the current email address in the ordered set where uuid = ? and companyId = ?. 403 * 404 * @param emailAddressId the primary key of the current email address 405 * @param uuid the uuid 406 * @param companyId the company ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the previous, current, and next email address 409 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public static com.liferay.portal.model.EmailAddress[] findByUuid_C_PrevAndNext( 413 long emailAddressId, java.lang.String uuid, long companyId, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.NoSuchEmailAddressException, 416 com.liferay.portal.kernel.exception.SystemException { 417 return getPersistence() 418 .findByUuid_C_PrevAndNext(emailAddressId, uuid, companyId, 419 orderByComparator); 420 } 421 422 /** 423 * Removes all the email addresses where uuid = ? and companyId = ? from the database. 424 * 425 * @param uuid the uuid 426 * @param companyId the company ID 427 * @throws SystemException if a system exception occurred 428 */ 429 public static void removeByUuid_C(java.lang.String uuid, long companyId) 430 throws com.liferay.portal.kernel.exception.SystemException { 431 getPersistence().removeByUuid_C(uuid, companyId); 432 } 433 434 /** 435 * Returns the number of email addresses where uuid = ? and companyId = ?. 436 * 437 * @param uuid the uuid 438 * @param companyId the company ID 439 * @return the number of matching email addresses 440 * @throws SystemException if a system exception occurred 441 */ 442 public static int countByUuid_C(java.lang.String uuid, long companyId) 443 throws com.liferay.portal.kernel.exception.SystemException { 444 return getPersistence().countByUuid_C(uuid, companyId); 445 } 446 447 /** 448 * Returns all the email addresses where companyId = ?. 449 * 450 * @param companyId the company ID 451 * @return the matching email addresses 452 * @throws SystemException if a system exception occurred 453 */ 454 public static java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId( 455 long companyId) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return getPersistence().findByCompanyId(companyId); 458 } 459 460 /** 461 * Returns a range of all the email addresses where companyId = ?. 462 * 463 * <p> 464 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 465 * </p> 466 * 467 * @param companyId the company ID 468 * @param start the lower bound of the range of email addresses 469 * @param end the upper bound of the range of email addresses (not inclusive) 470 * @return the range of matching email addresses 471 * @throws SystemException if a system exception occurred 472 */ 473 public static java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId( 474 long companyId, int start, int end) 475 throws com.liferay.portal.kernel.exception.SystemException { 476 return getPersistence().findByCompanyId(companyId, start, end); 477 } 478 479 /** 480 * Returns an ordered range of all the email addresses where companyId = ?. 481 * 482 * <p> 483 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 484 * </p> 485 * 486 * @param companyId the company ID 487 * @param start the lower bound of the range of email addresses 488 * @param end the upper bound of the range of email addresses (not inclusive) 489 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 490 * @return the ordered range of matching email addresses 491 * @throws SystemException if a system exception occurred 492 */ 493 public static java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId( 494 long companyId, int start, int end, 495 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 496 throws com.liferay.portal.kernel.exception.SystemException { 497 return getPersistence() 498 .findByCompanyId(companyId, start, end, orderByComparator); 499 } 500 501 /** 502 * Returns the first email address in the ordered set where companyId = ?. 503 * 504 * @param companyId the company ID 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the first 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 static com.liferay.portal.model.EmailAddress findByCompanyId_First( 511 long companyId, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.NoSuchEmailAddressException, 514 com.liferay.portal.kernel.exception.SystemException { 515 return getPersistence() 516 .findByCompanyId_First(companyId, orderByComparator); 517 } 518 519 /** 520 * Returns the first email address in the ordered set where companyId = ?. 521 * 522 * @param companyId the company ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 525 * @throws SystemException if a system exception occurred 526 */ 527 public static com.liferay.portal.model.EmailAddress fetchByCompanyId_First( 528 long companyId, 529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence() 532 .fetchByCompanyId_First(companyId, orderByComparator); 533 } 534 535 /** 536 * Returns the last email address in the ordered set where companyId = ?. 537 * 538 * @param companyId the company ID 539 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 540 * @return the last matching email address 541 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 542 * @throws SystemException if a system exception occurred 543 */ 544 public static com.liferay.portal.model.EmailAddress findByCompanyId_Last( 545 long companyId, 546 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 547 throws com.liferay.portal.NoSuchEmailAddressException, 548 com.liferay.portal.kernel.exception.SystemException { 549 return getPersistence() 550 .findByCompanyId_Last(companyId, orderByComparator); 551 } 552 553 /** 554 * Returns the last email address in the ordered set where companyId = ?. 555 * 556 * @param companyId the company ID 557 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 558 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 559 * @throws SystemException if a system exception occurred 560 */ 561 public static com.liferay.portal.model.EmailAddress fetchByCompanyId_Last( 562 long companyId, 563 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 564 throws com.liferay.portal.kernel.exception.SystemException { 565 return getPersistence() 566 .fetchByCompanyId_Last(companyId, orderByComparator); 567 } 568 569 /** 570 * Returns the email addresses before and after the current email address in the ordered set where companyId = ?. 571 * 572 * @param emailAddressId the primary key of the current email address 573 * @param companyId the company ID 574 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 575 * @return the previous, current, and next email address 576 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public static com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext( 580 long emailAddressId, long companyId, 581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 582 throws com.liferay.portal.NoSuchEmailAddressException, 583 com.liferay.portal.kernel.exception.SystemException { 584 return getPersistence() 585 .findByCompanyId_PrevAndNext(emailAddressId, companyId, 586 orderByComparator); 587 } 588 589 /** 590 * Removes all the email addresses where companyId = ? from the database. 591 * 592 * @param companyId the company ID 593 * @throws SystemException if a system exception occurred 594 */ 595 public static void removeByCompanyId(long companyId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 getPersistence().removeByCompanyId(companyId); 598 } 599 600 /** 601 * Returns the number of email addresses where companyId = ?. 602 * 603 * @param companyId the company ID 604 * @return the number of matching email addresses 605 * @throws SystemException if a system exception occurred 606 */ 607 public static int countByCompanyId(long companyId) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence().countByCompanyId(companyId); 610 } 611 612 /** 613 * Returns all the email addresses where userId = ?. 614 * 615 * @param userId the user ID 616 * @return the matching email addresses 617 * @throws SystemException if a system exception occurred 618 */ 619 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 620 long userId) throws com.liferay.portal.kernel.exception.SystemException { 621 return getPersistence().findByUserId(userId); 622 } 623 624 /** 625 * Returns a range of all the email addresses where userId = ?. 626 * 627 * <p> 628 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 629 * </p> 630 * 631 * @param userId the user ID 632 * @param start the lower bound of the range of email addresses 633 * @param end the upper bound of the range of email addresses (not inclusive) 634 * @return the range of matching email addresses 635 * @throws SystemException if a system exception occurred 636 */ 637 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 638 long userId, int start, int end) 639 throws com.liferay.portal.kernel.exception.SystemException { 640 return getPersistence().findByUserId(userId, start, end); 641 } 642 643 /** 644 * Returns an ordered range of all the email addresses where userId = ?. 645 * 646 * <p> 647 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 648 * </p> 649 * 650 * @param userId the user ID 651 * @param start the lower bound of the range of email addresses 652 * @param end the upper bound of the range of email addresses (not inclusive) 653 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 654 * @return the ordered range of matching email addresses 655 * @throws SystemException if a system exception occurred 656 */ 657 public static java.util.List<com.liferay.portal.model.EmailAddress> findByUserId( 658 long userId, int start, int end, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException { 661 return getPersistence() 662 .findByUserId(userId, start, end, orderByComparator); 663 } 664 665 /** 666 * Returns the first email address in the ordered set where userId = ?. 667 * 668 * @param userId the user ID 669 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 670 * @return the first matching email address 671 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 672 * @throws SystemException if a system exception occurred 673 */ 674 public static com.liferay.portal.model.EmailAddress findByUserId_First( 675 long userId, 676 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 677 throws com.liferay.portal.NoSuchEmailAddressException, 678 com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().findByUserId_First(userId, orderByComparator); 680 } 681 682 /** 683 * Returns the first email address in the ordered set where userId = ?. 684 * 685 * @param userId the user ID 686 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 687 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 688 * @throws SystemException if a system exception occurred 689 */ 690 public static com.liferay.portal.model.EmailAddress fetchByUserId_First( 691 long userId, 692 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 693 throws com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().fetchByUserId_First(userId, orderByComparator); 695 } 696 697 /** 698 * Returns the last email address in the ordered set where userId = ?. 699 * 700 * @param userId the user ID 701 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 702 * @return the last matching email address 703 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 704 * @throws SystemException if a system exception occurred 705 */ 706 public static com.liferay.portal.model.EmailAddress findByUserId_Last( 707 long userId, 708 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 709 throws com.liferay.portal.NoSuchEmailAddressException, 710 com.liferay.portal.kernel.exception.SystemException { 711 return getPersistence().findByUserId_Last(userId, orderByComparator); 712 } 713 714 /** 715 * Returns the last email address in the ordered set where userId = ?. 716 * 717 * @param userId the user ID 718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 719 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 720 * @throws SystemException if a system exception occurred 721 */ 722 public static com.liferay.portal.model.EmailAddress fetchByUserId_Last( 723 long userId, 724 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 725 throws com.liferay.portal.kernel.exception.SystemException { 726 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 727 } 728 729 /** 730 * Returns the email addresses before and after the current email address in the ordered set where userId = ?. 731 * 732 * @param emailAddressId the primary key of the current email address 733 * @param userId the user ID 734 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 735 * @return the previous, current, and next email address 736 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 737 * @throws SystemException if a system exception occurred 738 */ 739 public static com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext( 740 long emailAddressId, long userId, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.NoSuchEmailAddressException, 743 com.liferay.portal.kernel.exception.SystemException { 744 return getPersistence() 745 .findByUserId_PrevAndNext(emailAddressId, userId, 746 orderByComparator); 747 } 748 749 /** 750 * Removes all the email addresses where userId = ? from the database. 751 * 752 * @param userId the user ID 753 * @throws SystemException if a system exception occurred 754 */ 755 public static void removeByUserId(long userId) 756 throws com.liferay.portal.kernel.exception.SystemException { 757 getPersistence().removeByUserId(userId); 758 } 759 760 /** 761 * Returns the number of email addresses where userId = ?. 762 * 763 * @param userId the user ID 764 * @return the number of matching email addresses 765 * @throws SystemException if a system exception occurred 766 */ 767 public static int countByUserId(long userId) 768 throws com.liferay.portal.kernel.exception.SystemException { 769 return getPersistence().countByUserId(userId); 770 } 771 772 /** 773 * Returns all the email addresses where companyId = ? and classNameId = ?. 774 * 775 * @param companyId the company ID 776 * @param classNameId the class name ID 777 * @return the matching email addresses 778 * @throws SystemException if a system exception occurred 779 */ 780 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 781 long companyId, long classNameId) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence().findByC_C(companyId, classNameId); 784 } 785 786 /** 787 * Returns a range of all the email addresses where companyId = ? and classNameId = ?. 788 * 789 * <p> 790 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 791 * </p> 792 * 793 * @param companyId the company ID 794 * @param classNameId the class name ID 795 * @param start the lower bound of the range of email addresses 796 * @param end the upper bound of the range of email addresses (not inclusive) 797 * @return the range of matching email addresses 798 * @throws SystemException if a system exception occurred 799 */ 800 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 801 long companyId, long classNameId, int start, int end) 802 throws com.liferay.portal.kernel.exception.SystemException { 803 return getPersistence().findByC_C(companyId, classNameId, start, end); 804 } 805 806 /** 807 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ?. 808 * 809 * <p> 810 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 811 * </p> 812 * 813 * @param companyId the company ID 814 * @param classNameId the class name ID 815 * @param start the lower bound of the range of email addresses 816 * @param end the upper bound of the range of email addresses (not inclusive) 817 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 818 * @return the ordered range of matching email addresses 819 * @throws SystemException if a system exception occurred 820 */ 821 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C( 822 long companyId, long classNameId, int start, int end, 823 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 824 throws com.liferay.portal.kernel.exception.SystemException { 825 return getPersistence() 826 .findByC_C(companyId, classNameId, start, end, 827 orderByComparator); 828 } 829 830 /** 831 * Returns the first email address in the ordered set where companyId = ? and classNameId = ?. 832 * 833 * @param companyId the company ID 834 * @param classNameId the class name ID 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the first matching email address 837 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public static com.liferay.portal.model.EmailAddress findByC_C_First( 841 long companyId, long classNameId, 842 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 843 throws com.liferay.portal.NoSuchEmailAddressException, 844 com.liferay.portal.kernel.exception.SystemException { 845 return getPersistence() 846 .findByC_C_First(companyId, classNameId, orderByComparator); 847 } 848 849 /** 850 * Returns the first email address in the ordered set where companyId = ? and classNameId = ?. 851 * 852 * @param companyId the company ID 853 * @param classNameId the class name ID 854 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 855 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 856 * @throws SystemException if a system exception occurred 857 */ 858 public static com.liferay.portal.model.EmailAddress fetchByC_C_First( 859 long companyId, long classNameId, 860 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 861 throws com.liferay.portal.kernel.exception.SystemException { 862 return getPersistence() 863 .fetchByC_C_First(companyId, classNameId, orderByComparator); 864 } 865 866 /** 867 * Returns the last email address in the ordered set where companyId = ? and classNameId = ?. 868 * 869 * @param companyId the company ID 870 * @param classNameId the class name ID 871 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 872 * @return the last matching email address 873 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 874 * @throws SystemException if a system exception occurred 875 */ 876 public static com.liferay.portal.model.EmailAddress findByC_C_Last( 877 long companyId, long classNameId, 878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 879 throws com.liferay.portal.NoSuchEmailAddressException, 880 com.liferay.portal.kernel.exception.SystemException { 881 return getPersistence() 882 .findByC_C_Last(companyId, classNameId, orderByComparator); 883 } 884 885 /** 886 * Returns the last email address in the ordered set where companyId = ? and classNameId = ?. 887 * 888 * @param companyId the company ID 889 * @param classNameId the class name ID 890 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 891 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 892 * @throws SystemException if a system exception occurred 893 */ 894 public static com.liferay.portal.model.EmailAddress fetchByC_C_Last( 895 long companyId, long classNameId, 896 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 return getPersistence() 899 .fetchByC_C_Last(companyId, classNameId, orderByComparator); 900 } 901 902 /** 903 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ?. 904 * 905 * @param emailAddressId the primary key of the current email address 906 * @param companyId the company ID 907 * @param classNameId the class name ID 908 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 909 * @return the previous, current, and next email address 910 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 911 * @throws SystemException if a system exception occurred 912 */ 913 public static com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext( 914 long emailAddressId, long companyId, long classNameId, 915 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 916 throws com.liferay.portal.NoSuchEmailAddressException, 917 com.liferay.portal.kernel.exception.SystemException { 918 return getPersistence() 919 .findByC_C_PrevAndNext(emailAddressId, companyId, 920 classNameId, orderByComparator); 921 } 922 923 /** 924 * Removes all the email addresses where companyId = ? and classNameId = ? from the database. 925 * 926 * @param companyId the company ID 927 * @param classNameId the class name ID 928 * @throws SystemException if a system exception occurred 929 */ 930 public static void removeByC_C(long companyId, long classNameId) 931 throws com.liferay.portal.kernel.exception.SystemException { 932 getPersistence().removeByC_C(companyId, classNameId); 933 } 934 935 /** 936 * Returns the number of email addresses where companyId = ? and classNameId = ?. 937 * 938 * @param companyId the company ID 939 * @param classNameId the class name ID 940 * @return the number of matching email addresses 941 * @throws SystemException if a system exception occurred 942 */ 943 public static int countByC_C(long companyId, long classNameId) 944 throws com.liferay.portal.kernel.exception.SystemException { 945 return getPersistence().countByC_C(companyId, classNameId); 946 } 947 948 /** 949 * Returns all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 950 * 951 * @param companyId the company ID 952 * @param classNameId the class name ID 953 * @param classPK the class p k 954 * @return the matching email addresses 955 * @throws SystemException if a system exception occurred 956 */ 957 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 958 long companyId, long classNameId, long classPK) 959 throws com.liferay.portal.kernel.exception.SystemException { 960 return getPersistence().findByC_C_C(companyId, classNameId, classPK); 961 } 962 963 /** 964 * Returns a range of all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 965 * 966 * <p> 967 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 968 * </p> 969 * 970 * @param companyId the company ID 971 * @param classNameId the class name ID 972 * @param classPK the class p k 973 * @param start the lower bound of the range of email addresses 974 * @param end the upper bound of the range of email addresses (not inclusive) 975 * @return the range of matching email addresses 976 * @throws SystemException if a system exception occurred 977 */ 978 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 979 long companyId, long classNameId, long classPK, int start, int end) 980 throws com.liferay.portal.kernel.exception.SystemException { 981 return getPersistence() 982 .findByC_C_C(companyId, classNameId, classPK, start, end); 983 } 984 985 /** 986 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ? and classPK = ?. 987 * 988 * <p> 989 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 990 * </p> 991 * 992 * @param companyId the company ID 993 * @param classNameId the class name ID 994 * @param classPK the class p k 995 * @param start the lower bound of the range of email addresses 996 * @param end the upper bound of the range of email addresses (not inclusive) 997 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 998 * @return the ordered range of matching email addresses 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C( 1002 long companyId, long classNameId, long classPK, int start, int end, 1003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1004 throws com.liferay.portal.kernel.exception.SystemException { 1005 return getPersistence() 1006 .findByC_C_C(companyId, classNameId, classPK, start, end, 1007 orderByComparator); 1008 } 1009 1010 /** 1011 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 1012 * 1013 * @param companyId the company ID 1014 * @param classNameId the class name ID 1015 * @param classPK the class p k 1016 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1017 * @return the first matching email address 1018 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static com.liferay.portal.model.EmailAddress findByC_C_C_First( 1022 long companyId, long classNameId, long classPK, 1023 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1024 throws com.liferay.portal.NoSuchEmailAddressException, 1025 com.liferay.portal.kernel.exception.SystemException { 1026 return getPersistence() 1027 .findByC_C_C_First(companyId, classNameId, classPK, 1028 orderByComparator); 1029 } 1030 1031 /** 1032 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 1033 * 1034 * @param companyId the company ID 1035 * @param classNameId the class name ID 1036 * @param classPK the class p k 1037 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1038 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public static com.liferay.portal.model.EmailAddress fetchByC_C_C_First( 1042 long companyId, long classNameId, long classPK, 1043 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1044 throws com.liferay.portal.kernel.exception.SystemException { 1045 return getPersistence() 1046 .fetchByC_C_C_First(companyId, classNameId, classPK, 1047 orderByComparator); 1048 } 1049 1050 /** 1051 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 1052 * 1053 * @param companyId the company ID 1054 * @param classNameId the class name ID 1055 * @param classPK the class p k 1056 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1057 * @return the last matching email address 1058 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public static com.liferay.portal.model.EmailAddress findByC_C_C_Last( 1062 long companyId, long classNameId, long classPK, 1063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1064 throws com.liferay.portal.NoSuchEmailAddressException, 1065 com.liferay.portal.kernel.exception.SystemException { 1066 return getPersistence() 1067 .findByC_C_C_Last(companyId, classNameId, classPK, 1068 orderByComparator); 1069 } 1070 1071 /** 1072 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 1073 * 1074 * @param companyId the company ID 1075 * @param classNameId the class name ID 1076 * @param classPK the class p k 1077 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1078 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public static com.liferay.portal.model.EmailAddress fetchByC_C_C_Last( 1082 long companyId, long classNameId, long classPK, 1083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1084 throws com.liferay.portal.kernel.exception.SystemException { 1085 return getPersistence() 1086 .fetchByC_C_C_Last(companyId, classNameId, classPK, 1087 orderByComparator); 1088 } 1089 1090 /** 1091 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 1092 * 1093 * @param emailAddressId the primary key of the current email address 1094 * @param companyId the company ID 1095 * @param classNameId the class name ID 1096 * @param classPK the class p k 1097 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1098 * @return the previous, current, and next email address 1099 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext( 1103 long emailAddressId, long companyId, long classNameId, long classPK, 1104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1105 throws com.liferay.portal.NoSuchEmailAddressException, 1106 com.liferay.portal.kernel.exception.SystemException { 1107 return getPersistence() 1108 .findByC_C_C_PrevAndNext(emailAddressId, companyId, 1109 classNameId, classPK, orderByComparator); 1110 } 1111 1112 /** 1113 * Removes all the email addresses where companyId = ? and classNameId = ? and classPK = ? from the database. 1114 * 1115 * @param companyId the company ID 1116 * @param classNameId the class name ID 1117 * @param classPK the class p k 1118 * @throws SystemException if a system exception occurred 1119 */ 1120 public static void removeByC_C_C(long companyId, long classNameId, 1121 long classPK) 1122 throws com.liferay.portal.kernel.exception.SystemException { 1123 getPersistence().removeByC_C_C(companyId, classNameId, classPK); 1124 } 1125 1126 /** 1127 * Returns the number of email addresses where companyId = ? and classNameId = ? and classPK = ?. 1128 * 1129 * @param companyId the company ID 1130 * @param classNameId the class name ID 1131 * @param classPK the class p k 1132 * @return the number of matching email addresses 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public static int countByC_C_C(long companyId, long classNameId, 1136 long classPK) 1137 throws com.liferay.portal.kernel.exception.SystemException { 1138 return getPersistence().countByC_C_C(companyId, classNameId, classPK); 1139 } 1140 1141 /** 1142 * Returns all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1143 * 1144 * @param companyId the company ID 1145 * @param classNameId the class name ID 1146 * @param classPK the class p k 1147 * @param primary the primary 1148 * @return the matching email addresses 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 1152 long companyId, long classNameId, long classPK, boolean primary) 1153 throws com.liferay.portal.kernel.exception.SystemException { 1154 return getPersistence() 1155 .findByC_C_C_P(companyId, classNameId, classPK, primary); 1156 } 1157 1158 /** 1159 * Returns a range of all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1160 * 1161 * <p> 1162 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1163 * </p> 1164 * 1165 * @param companyId the company ID 1166 * @param classNameId the class name ID 1167 * @param classPK the class p k 1168 * @param primary the primary 1169 * @param start the lower bound of the range of email addresses 1170 * @param end the upper bound of the range of email addresses (not inclusive) 1171 * @return the range of matching email addresses 1172 * @throws SystemException if a system exception occurred 1173 */ 1174 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 1175 long companyId, long classNameId, long classPK, boolean primary, 1176 int start, int end) 1177 throws com.liferay.portal.kernel.exception.SystemException { 1178 return getPersistence() 1179 .findByC_C_C_P(companyId, classNameId, classPK, primary, 1180 start, end); 1181 } 1182 1183 /** 1184 * Returns an ordered range of all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1185 * 1186 * <p> 1187 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1188 * </p> 1189 * 1190 * @param companyId the company ID 1191 * @param classNameId the class name ID 1192 * @param classPK the class p k 1193 * @param primary the primary 1194 * @param start the lower bound of the range of email addresses 1195 * @param end the upper bound of the range of email addresses (not inclusive) 1196 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1197 * @return the ordered range of matching email addresses 1198 * @throws SystemException if a system exception occurred 1199 */ 1200 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P( 1201 long companyId, long classNameId, long classPK, boolean primary, 1202 int start, int end, 1203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1204 throws com.liferay.portal.kernel.exception.SystemException { 1205 return getPersistence() 1206 .findByC_C_C_P(companyId, classNameId, classPK, primary, 1207 start, end, orderByComparator); 1208 } 1209 1210 /** 1211 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1212 * 1213 * @param companyId the company ID 1214 * @param classNameId the class name ID 1215 * @param classPK the class p k 1216 * @param primary the primary 1217 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1218 * @return the first matching email address 1219 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static com.liferay.portal.model.EmailAddress findByC_C_C_P_First( 1223 long companyId, long classNameId, long classPK, boolean primary, 1224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1225 throws com.liferay.portal.NoSuchEmailAddressException, 1226 com.liferay.portal.kernel.exception.SystemException { 1227 return getPersistence() 1228 .findByC_C_C_P_First(companyId, classNameId, classPK, 1229 primary, orderByComparator); 1230 } 1231 1232 /** 1233 * Returns the first email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1234 * 1235 * @param companyId the company ID 1236 * @param classNameId the class name ID 1237 * @param classPK the class p k 1238 * @param primary the primary 1239 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1240 * @return the first matching email address, or <code>null</code> if a matching email address could not be found 1241 * @throws SystemException if a system exception occurred 1242 */ 1243 public static com.liferay.portal.model.EmailAddress fetchByC_C_C_P_First( 1244 long companyId, long classNameId, long classPK, boolean primary, 1245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1246 throws com.liferay.portal.kernel.exception.SystemException { 1247 return getPersistence() 1248 .fetchByC_C_C_P_First(companyId, classNameId, classPK, 1249 primary, orderByComparator); 1250 } 1251 1252 /** 1253 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1254 * 1255 * @param companyId the company ID 1256 * @param classNameId the class name ID 1257 * @param classPK the class p k 1258 * @param primary the primary 1259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1260 * @return the last matching email address 1261 * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found 1262 * @throws SystemException if a system exception occurred 1263 */ 1264 public static com.liferay.portal.model.EmailAddress findByC_C_C_P_Last( 1265 long companyId, long classNameId, long classPK, boolean primary, 1266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1267 throws com.liferay.portal.NoSuchEmailAddressException, 1268 com.liferay.portal.kernel.exception.SystemException { 1269 return getPersistence() 1270 .findByC_C_C_P_Last(companyId, classNameId, classPK, 1271 primary, orderByComparator); 1272 } 1273 1274 /** 1275 * Returns the last email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1276 * 1277 * @param companyId the company ID 1278 * @param classNameId the class name ID 1279 * @param classPK the class p k 1280 * @param primary the primary 1281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1282 * @return the last matching email address, or <code>null</code> if a matching email address could not be found 1283 * @throws SystemException if a system exception occurred 1284 */ 1285 public static com.liferay.portal.model.EmailAddress fetchByC_C_C_P_Last( 1286 long companyId, long classNameId, long classPK, boolean primary, 1287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1288 throws com.liferay.portal.kernel.exception.SystemException { 1289 return getPersistence() 1290 .fetchByC_C_C_P_Last(companyId, classNameId, classPK, 1291 primary, orderByComparator); 1292 } 1293 1294 /** 1295 * Returns the email addresses before and after the current email address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1296 * 1297 * @param emailAddressId the primary key of the current email address 1298 * @param companyId the company ID 1299 * @param classNameId the class name ID 1300 * @param classPK the class p k 1301 * @param primary the primary 1302 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1303 * @return the previous, current, and next email address 1304 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 1305 * @throws SystemException if a system exception occurred 1306 */ 1307 public static com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext( 1308 long emailAddressId, long companyId, long classNameId, long classPK, 1309 boolean primary, 1310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1311 throws com.liferay.portal.NoSuchEmailAddressException, 1312 com.liferay.portal.kernel.exception.SystemException { 1313 return getPersistence() 1314 .findByC_C_C_P_PrevAndNext(emailAddressId, companyId, 1315 classNameId, classPK, primary, orderByComparator); 1316 } 1317 1318 /** 1319 * Removes all the email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 1320 * 1321 * @param companyId the company ID 1322 * @param classNameId the class name ID 1323 * @param classPK the class p k 1324 * @param primary the primary 1325 * @throws SystemException if a system exception occurred 1326 */ 1327 public static void removeByC_C_C_P(long companyId, long classNameId, 1328 long classPK, boolean primary) 1329 throws com.liferay.portal.kernel.exception.SystemException { 1330 getPersistence() 1331 .removeByC_C_C_P(companyId, classNameId, classPK, primary); 1332 } 1333 1334 /** 1335 * Returns the number of email addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1336 * 1337 * @param companyId the company ID 1338 * @param classNameId the class name ID 1339 * @param classPK the class p k 1340 * @param primary the primary 1341 * @return the number of matching email addresses 1342 * @throws SystemException if a system exception occurred 1343 */ 1344 public static int countByC_C_C_P(long companyId, long classNameId, 1345 long classPK, boolean primary) 1346 throws com.liferay.portal.kernel.exception.SystemException { 1347 return getPersistence() 1348 .countByC_C_C_P(companyId, classNameId, classPK, primary); 1349 } 1350 1351 /** 1352 * Caches the email address in the entity cache if it is enabled. 1353 * 1354 * @param emailAddress the email address 1355 */ 1356 public static void cacheResult( 1357 com.liferay.portal.model.EmailAddress emailAddress) { 1358 getPersistence().cacheResult(emailAddress); 1359 } 1360 1361 /** 1362 * Caches the email addresses in the entity cache if it is enabled. 1363 * 1364 * @param emailAddresses the email addresses 1365 */ 1366 public static void cacheResult( 1367 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses) { 1368 getPersistence().cacheResult(emailAddresses); 1369 } 1370 1371 /** 1372 * Creates a new email address with the primary key. Does not add the email address to the database. 1373 * 1374 * @param emailAddressId the primary key for the new email address 1375 * @return the new email address 1376 */ 1377 public static com.liferay.portal.model.EmailAddress create( 1378 long emailAddressId) { 1379 return getPersistence().create(emailAddressId); 1380 } 1381 1382 /** 1383 * Removes the email address with the primary key from the database. Also notifies the appropriate model listeners. 1384 * 1385 * @param emailAddressId the primary key of the email address 1386 * @return the email address that was removed 1387 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 1388 * @throws SystemException if a system exception occurred 1389 */ 1390 public static com.liferay.portal.model.EmailAddress remove( 1391 long emailAddressId) 1392 throws com.liferay.portal.NoSuchEmailAddressException, 1393 com.liferay.portal.kernel.exception.SystemException { 1394 return getPersistence().remove(emailAddressId); 1395 } 1396 1397 public static com.liferay.portal.model.EmailAddress updateImpl( 1398 com.liferay.portal.model.EmailAddress emailAddress) 1399 throws com.liferay.portal.kernel.exception.SystemException { 1400 return getPersistence().updateImpl(emailAddress); 1401 } 1402 1403 /** 1404 * Returns the email address with the primary key or throws a {@link com.liferay.portal.NoSuchEmailAddressException} if it could not be found. 1405 * 1406 * @param emailAddressId the primary key of the email address 1407 * @return the email address 1408 * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found 1409 * @throws SystemException if a system exception occurred 1410 */ 1411 public static com.liferay.portal.model.EmailAddress findByPrimaryKey( 1412 long emailAddressId) 1413 throws com.liferay.portal.NoSuchEmailAddressException, 1414 com.liferay.portal.kernel.exception.SystemException { 1415 return getPersistence().findByPrimaryKey(emailAddressId); 1416 } 1417 1418 /** 1419 * Returns the email address with the primary key or returns <code>null</code> if it could not be found. 1420 * 1421 * @param emailAddressId the primary key of the email address 1422 * @return the email address, or <code>null</code> if a email address with the primary key could not be found 1423 * @throws SystemException if a system exception occurred 1424 */ 1425 public static com.liferay.portal.model.EmailAddress fetchByPrimaryKey( 1426 long emailAddressId) 1427 throws com.liferay.portal.kernel.exception.SystemException { 1428 return getPersistence().fetchByPrimaryKey(emailAddressId); 1429 } 1430 1431 /** 1432 * Returns all the email addresses. 1433 * 1434 * @return the email addresses 1435 * @throws SystemException if a system exception occurred 1436 */ 1437 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll() 1438 throws com.liferay.portal.kernel.exception.SystemException { 1439 return getPersistence().findAll(); 1440 } 1441 1442 /** 1443 * Returns a range of all the email addresses. 1444 * 1445 * <p> 1446 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1447 * </p> 1448 * 1449 * @param start the lower bound of the range of email addresses 1450 * @param end the upper bound of the range of email addresses (not inclusive) 1451 * @return the range of email addresses 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll( 1455 int start, int end) 1456 throws com.liferay.portal.kernel.exception.SystemException { 1457 return getPersistence().findAll(start, end); 1458 } 1459 1460 /** 1461 * Returns an ordered range of all the email addresses. 1462 * 1463 * <p> 1464 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1465 * </p> 1466 * 1467 * @param start the lower bound of the range of email addresses 1468 * @param end the upper bound of the range of email addresses (not inclusive) 1469 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1470 * @return the ordered range of email addresses 1471 * @throws SystemException if a system exception occurred 1472 */ 1473 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll( 1474 int start, int end, 1475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1476 throws com.liferay.portal.kernel.exception.SystemException { 1477 return getPersistence().findAll(start, end, orderByComparator); 1478 } 1479 1480 /** 1481 * Removes all the email addresses from the database. 1482 * 1483 * @throws SystemException if a system exception occurred 1484 */ 1485 public static void removeAll() 1486 throws com.liferay.portal.kernel.exception.SystemException { 1487 getPersistence().removeAll(); 1488 } 1489 1490 /** 1491 * Returns the number of email addresses. 1492 * 1493 * @return the number of email addresses 1494 * @throws SystemException if a system exception occurred 1495 */ 1496 public static int countAll() 1497 throws com.liferay.portal.kernel.exception.SystemException { 1498 return getPersistence().countAll(); 1499 } 1500 1501 public static EmailAddressPersistence getPersistence() { 1502 if (_persistence == null) { 1503 _persistence = (EmailAddressPersistence)PortalBeanLocatorUtil.locate(EmailAddressPersistence.class.getName()); 1504 1505 ReferenceRegistry.registerReference(EmailAddressUtil.class, 1506 "_persistence"); 1507 } 1508 1509 return _persistence; 1510 } 1511 1512 /** 1513 * @deprecated As of 6.2.0 1514 */ 1515 public void setPersistence(EmailAddressPersistence persistence) { 1516 } 1517 1518 private static EmailAddressPersistence _persistence; 1519 }