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