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