001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.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 * Caches the address in the entity cache if it is enabled. 040 * 041 * @param address the address 042 */ 043 public void cacheResult(com.liferay.portal.model.Address address); 044 045 /** 046 * Caches the addresses in the entity cache if it is enabled. 047 * 048 * @param addresses the addresses 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Address> addresses); 052 053 /** 054 * Creates a new address with the primary key. Does not add the address to the database. 055 * 056 * @param addressId the primary key for the new address 057 * @return the new address 058 */ 059 public com.liferay.portal.model.Address create(long addressId); 060 061 /** 062 * Removes the address with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param addressId the primary key of the address 065 * @return the address that was removed 066 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Address remove(long addressId) 070 throws com.liferay.portal.NoSuchAddressException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Address updateImpl( 074 com.liferay.portal.model.Address address) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the address with the primary key or throws a {@link com.liferay.portal.NoSuchAddressException} if it could not be found. 079 * 080 * @param addressId the primary key of the address 081 * @return the address 082 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Address findByPrimaryKey(long addressId) 086 throws com.liferay.portal.NoSuchAddressException, 087 com.liferay.portal.kernel.exception.SystemException; 088 089 /** 090 * Returns the address with the primary key or returns <code>null</code> if it could not be found. 091 * 092 * @param addressId the primary key of the address 093 * @return the address, or <code>null</code> if a address with the primary key could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portal.model.Address fetchByPrimaryKey(long addressId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns all the addresses where companyId = ?. 101 * 102 * @param companyId the company ID 103 * @return the matching addresses 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.Address> findByCompanyId( 107 long companyId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Returns a range of all the addresses where companyId = ?. 112 * 113 * <p> 114 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 115 * </p> 116 * 117 * @param companyId the company ID 118 * @param start the lower bound of the range of addresses 119 * @param end the upper bound of the range of addresses (not inclusive) 120 * @return the range of matching addresses 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.Address> findByCompanyId( 124 long companyId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns an ordered range of all the addresses where companyId = ?. 129 * 130 * <p> 131 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 132 * </p> 133 * 134 * @param companyId the company ID 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 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 138 * @return the ordered range of matching addresses 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.Address> findByCompanyId( 142 long companyId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the first address in the ordered set where companyId = ?. 148 * 149 * @param companyId the company ID 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the first matching address 152 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public com.liferay.portal.model.Address findByCompanyId_First( 156 long companyId, 157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 158 throws com.liferay.portal.NoSuchAddressException, 159 com.liferay.portal.kernel.exception.SystemException; 160 161 /** 162 * Returns the first address in the ordered set where companyId = ?. 163 * 164 * @param companyId the company ID 165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 166 * @return the first matching address, or <code>null</code> if a matching address could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.Address fetchByCompanyId_First( 170 long companyId, 171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 172 throws com.liferay.portal.kernel.exception.SystemException; 173 174 /** 175 * Returns the last address in the ordered set where companyId = ?. 176 * 177 * @param companyId the company ID 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching address 180 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.Address findByCompanyId_Last( 184 long companyId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.NoSuchAddressException, 187 com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns the last address in the ordered set where companyId = ?. 191 * 192 * @param companyId the company ID 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the last matching address, or <code>null</code> if a matching address could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portal.model.Address fetchByCompanyId_Last( 198 long companyId, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Returns the addresses before and after the current address in the ordered set where companyId = ?. 204 * 205 * @param addressId the primary key of the current address 206 * @param companyId the company ID 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the previous, current, and next address 209 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext( 213 long addressId, long companyId, 214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 215 throws com.liferay.portal.NoSuchAddressException, 216 com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns all the addresses where userId = ?. 220 * 221 * @param userId the user ID 222 * @return the matching addresses 223 * @throws SystemException if a system exception occurred 224 */ 225 public java.util.List<com.liferay.portal.model.Address> findByUserId( 226 long userId) throws com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns a range of all the addresses where userId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param userId the user ID 236 * @param start the lower bound of the range of addresses 237 * @param end the upper bound of the range of addresses (not inclusive) 238 * @return the range of matching addresses 239 * @throws SystemException if a system exception occurred 240 */ 241 public java.util.List<com.liferay.portal.model.Address> findByUserId( 242 long userId, int start, int end) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Returns an ordered range of all the addresses where userId = ?. 247 * 248 * <p> 249 * 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. 250 * </p> 251 * 252 * @param userId the user ID 253 * @param start the lower bound of the range of addresses 254 * @param end the upper bound of the range of addresses (not inclusive) 255 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 256 * @return the ordered range of matching addresses 257 * @throws SystemException if a system exception occurred 258 */ 259 public java.util.List<com.liferay.portal.model.Address> findByUserId( 260 long userId, int start, int end, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns the first address in the ordered set where userId = ?. 266 * 267 * @param userId the user ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching address 270 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portal.model.Address findByUserId_First(long userId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.NoSuchAddressException, 276 com.liferay.portal.kernel.exception.SystemException; 277 278 /** 279 * Returns the first address in the ordered set where userId = ?. 280 * 281 * @param userId the user ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the first matching address, or <code>null</code> if a matching address could not be found 284 * @throws SystemException if a system exception occurred 285 */ 286 public com.liferay.portal.model.Address fetchByUserId_First(long userId, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Returns the last address in the ordered set where userId = ?. 292 * 293 * @param userId the user ID 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the last matching address 296 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portal.model.Address findByUserId_Last(long userId, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.NoSuchAddressException, 302 com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns the last address in the ordered set where userId = ?. 306 * 307 * @param userId the user ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the last matching address, or <code>null</code> if a matching address could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public com.liferay.portal.model.Address fetchByUserId_Last(long userId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns the addresses before and after the current address in the ordered set where userId = ?. 318 * 319 * @param addressId the primary key of the current address 320 * @param userId the user ID 321 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 322 * @return the previous, current, and next address 323 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 324 * @throws SystemException if a system exception occurred 325 */ 326 public com.liferay.portal.model.Address[] findByUserId_PrevAndNext( 327 long addressId, long userId, 328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 329 throws com.liferay.portal.NoSuchAddressException, 330 com.liferay.portal.kernel.exception.SystemException; 331 332 /** 333 * Returns all the addresses where companyId = ? and classNameId = ?. 334 * 335 * @param companyId the company ID 336 * @param classNameId the class name ID 337 * @return the matching addresses 338 * @throws SystemException if a system exception occurred 339 */ 340 public java.util.List<com.liferay.portal.model.Address> findByC_C( 341 long companyId, long classNameId) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns a range of all the addresses where companyId = ? and classNameId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param companyId the company ID 352 * @param classNameId the class name ID 353 * @param start the lower bound of the range of addresses 354 * @param end the upper bound of the range of addresses (not inclusive) 355 * @return the range of matching addresses 356 * @throws SystemException if a system exception occurred 357 */ 358 public java.util.List<com.liferay.portal.model.Address> findByC_C( 359 long companyId, long classNameId, int start, int end) 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Returns an ordered range of all the addresses where companyId = ? and classNameId = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param companyId the company ID 370 * @param classNameId the class name ID 371 * @param start the lower bound of the range of addresses 372 * @param end the upper bound of the range of addresses (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching addresses 375 * @throws SystemException if a system exception occurred 376 */ 377 public java.util.List<com.liferay.portal.model.Address> findByC_C( 378 long companyId, long classNameId, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns the first address in the ordered set where companyId = ? and classNameId = ?. 384 * 385 * @param companyId the company ID 386 * @param classNameId the class name ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching address 389 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 390 * @throws SystemException if a system exception occurred 391 */ 392 public com.liferay.portal.model.Address findByC_C_First(long companyId, 393 long classNameId, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.NoSuchAddressException, 396 com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Returns the first address in the ordered set where companyId = ? and classNameId = ?. 400 * 401 * @param companyId the company ID 402 * @param classNameId the class name ID 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the first matching address, or <code>null</code> if a matching address could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public com.liferay.portal.model.Address fetchByC_C_First(long companyId, 408 long classNameId, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Returns the last address in the ordered set where companyId = ? and classNameId = ?. 414 * 415 * @param companyId the company ID 416 * @param classNameId the class name ID 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the last matching address 419 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portal.model.Address findByC_C_Last(long companyId, 423 long classNameId, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.NoSuchAddressException, 426 com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Returns the last address in the ordered set where companyId = ? and classNameId = ?. 430 * 431 * @param companyId the company ID 432 * @param classNameId the class name ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the last matching address, or <code>null</code> if a matching address could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portal.model.Address fetchByC_C_Last(long companyId, 438 long classNameId, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ?. 444 * 445 * @param addressId the primary key of the current address 446 * @param companyId the company ID 447 * @param classNameId the class name ID 448 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 449 * @return the previous, current, and next address 450 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portal.model.Address[] findByC_C_PrevAndNext( 454 long addressId, long companyId, long classNameId, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.NoSuchAddressException, 457 com.liferay.portal.kernel.exception.SystemException; 458 459 /** 460 * Returns all the addresses where companyId = ? and classNameId = ? and classPK = ?. 461 * 462 * @param companyId the company ID 463 * @param classNameId the class name ID 464 * @param classPK the class p k 465 * @return the matching addresses 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portal.model.Address> findByC_C_C( 469 long companyId, long classNameId, long classPK) 470 throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Returns a range of all the addresses where companyId = ? and classNameId = ? and classPK = ?. 474 * 475 * <p> 476 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 477 * </p> 478 * 479 * @param companyId the company ID 480 * @param classNameId the class name ID 481 * @param classPK the class p k 482 * @param start the lower bound of the range of addresses 483 * @param end the upper bound of the range of addresses (not inclusive) 484 * @return the range of matching addresses 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portal.model.Address> findByC_C_C( 488 long companyId, long classNameId, long classPK, int start, int end) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns an ordered range of all the addresses where companyId = ? and classNameId = ? and classPK = ?. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param companyId the company ID 499 * @param classNameId the class name ID 500 * @param classPK the class p k 501 * @param start the lower bound of the range of addresses 502 * @param end the upper bound of the range of addresses (not inclusive) 503 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 504 * @return the ordered range of matching addresses 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portal.model.Address> findByC_C_C( 508 long companyId, long classNameId, long classPK, int start, int end, 509 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 510 throws com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 514 * 515 * @param companyId the company ID 516 * @param classNameId the class name ID 517 * @param classPK the class p k 518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 519 * @return the first matching address 520 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public com.liferay.portal.model.Address findByC_C_C_First(long companyId, 524 long classNameId, long classPK, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.NoSuchAddressException, 527 com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 531 * 532 * @param companyId the company ID 533 * @param classNameId the class name ID 534 * @param classPK the class p k 535 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 536 * @return the first matching address, or <code>null</code> if a matching address could not be found 537 * @throws SystemException if a system exception occurred 538 */ 539 public com.liferay.portal.model.Address fetchByC_C_C_First(long companyId, 540 long classNameId, long classPK, 541 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 542 throws com.liferay.portal.kernel.exception.SystemException; 543 544 /** 545 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 546 * 547 * @param companyId the company ID 548 * @param classNameId the class name ID 549 * @param classPK the class p k 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the last matching address 552 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public com.liferay.portal.model.Address findByC_C_C_Last(long companyId, 556 long classNameId, long classPK, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.NoSuchAddressException, 559 com.liferay.portal.kernel.exception.SystemException; 560 561 /** 562 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 563 * 564 * @param companyId the company ID 565 * @param classNameId the class name ID 566 * @param classPK the class p k 567 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 568 * @return the last matching address, or <code>null</code> if a matching address could not be found 569 * @throws SystemException if a system exception occurred 570 */ 571 public com.liferay.portal.model.Address fetchByC_C_C_Last(long companyId, 572 long classNameId, long classPK, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Returns the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 578 * 579 * @param addressId the primary key of the current address 580 * @param companyId the company ID 581 * @param classNameId the class name ID 582 * @param classPK the class p k 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the previous, current, and next address 585 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext( 589 long addressId, long companyId, long classNameId, long classPK, 590 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 591 throws com.liferay.portal.NoSuchAddressException, 592 com.liferay.portal.kernel.exception.SystemException; 593 594 /** 595 * Returns all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 596 * 597 * @param companyId the company ID 598 * @param classNameId the class name ID 599 * @param classPK the class p k 600 * @param mailing the mailing 601 * @return the matching addresses 602 * @throws SystemException if a system exception occurred 603 */ 604 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M( 605 long companyId, long classNameId, long classPK, boolean mailing) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 608 /** 609 * Returns a range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 610 * 611 * <p> 612 * 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. 613 * </p> 614 * 615 * @param companyId the company ID 616 * @param classNameId the class name ID 617 * @param classPK the class p k 618 * @param mailing the mailing 619 * @param start the lower bound of the range of addresses 620 * @param end the upper bound of the range of addresses (not inclusive) 621 * @return the range of matching addresses 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M( 625 long companyId, long classNameId, long classPK, boolean mailing, 626 int start, int end) 627 throws com.liferay.portal.kernel.exception.SystemException; 628 629 /** 630 * Returns an ordered range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param companyId the company ID 637 * @param classNameId the class name ID 638 * @param classPK the class p k 639 * @param mailing the mailing 640 * @param start the lower bound of the range of addresses 641 * @param end the upper bound of the range of addresses (not inclusive) 642 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 643 * @return the ordered range of matching addresses 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M( 647 long companyId, long classNameId, long classPK, boolean mailing, 648 int start, int end, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException; 651 652 /** 653 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 654 * 655 * @param companyId the company ID 656 * @param classNameId the class name ID 657 * @param classPK the class p k 658 * @param mailing the mailing 659 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 660 * @return the first matching address 661 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 662 * @throws SystemException if a system exception occurred 663 */ 664 public com.liferay.portal.model.Address findByC_C_C_M_First( 665 long companyId, long classNameId, long classPK, boolean mailing, 666 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 667 throws com.liferay.portal.NoSuchAddressException, 668 com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 672 * 673 * @param companyId the company ID 674 * @param classNameId the class name ID 675 * @param classPK the class p k 676 * @param mailing the mailing 677 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 678 * @return the first matching address, or <code>null</code> if a matching address could not be found 679 * @throws SystemException if a system exception occurred 680 */ 681 public com.liferay.portal.model.Address fetchByC_C_C_M_First( 682 long companyId, long classNameId, long classPK, boolean mailing, 683 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 684 throws com.liferay.portal.kernel.exception.SystemException; 685 686 /** 687 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 688 * 689 * @param companyId the company ID 690 * @param classNameId the class name ID 691 * @param classPK the class p k 692 * @param mailing the mailing 693 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 694 * @return the last matching address 695 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public com.liferay.portal.model.Address findByC_C_C_M_Last(long companyId, 699 long classNameId, long classPK, boolean mailing, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.NoSuchAddressException, 702 com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 706 * 707 * @param companyId the company ID 708 * @param classNameId the class name ID 709 * @param classPK the class p k 710 * @param mailing the mailing 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the last matching address, or <code>null</code> if a matching address could not be found 713 * @throws SystemException if a system exception occurred 714 */ 715 public com.liferay.portal.model.Address fetchByC_C_C_M_Last( 716 long companyId, long classNameId, long classPK, boolean mailing, 717 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Returns the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 722 * 723 * @param addressId the primary key of the current address 724 * @param companyId the company ID 725 * @param classNameId the class name ID 726 * @param classPK the class p k 727 * @param mailing the mailing 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the previous, current, and next address 730 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext( 734 long addressId, long companyId, long classNameId, long classPK, 735 boolean mailing, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.NoSuchAddressException, 738 com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Returns all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 742 * 743 * @param companyId the company ID 744 * @param classNameId the class name ID 745 * @param classPK the class p k 746 * @param primary the primary 747 * @return the matching addresses 748 * @throws SystemException if a system exception occurred 749 */ 750 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P( 751 long companyId, long classNameId, long classPK, boolean primary) 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Returns a range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param companyId the company ID 762 * @param classNameId the class name ID 763 * @param classPK the class p k 764 * @param primary the primary 765 * @param start the lower bound of the range of addresses 766 * @param end the upper bound of the range of addresses (not inclusive) 767 * @return the range of matching addresses 768 * @throws SystemException if a system exception occurred 769 */ 770 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P( 771 long companyId, long classNameId, long classPK, boolean primary, 772 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 = ? and primary = ?. 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. 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 primary the primary 786 * @param start the lower bound of the range of addresses 787 * @param end the upper bound of the range of addresses (not inclusive) 788 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 789 * @return the ordered range of matching addresses 790 * @throws SystemException if a system exception occurred 791 */ 792 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P( 793 long companyId, long classNameId, long classPK, boolean primary, 794 int start, int end, 795 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 796 throws com.liferay.portal.kernel.exception.SystemException; 797 798 /** 799 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 800 * 801 * @param companyId the company ID 802 * @param classNameId the class name ID 803 * @param classPK the class p k 804 * @param primary the primary 805 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 806 * @return the first matching address 807 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 808 * @throws SystemException if a system exception occurred 809 */ 810 public com.liferay.portal.model.Address findByC_C_C_P_First( 811 long companyId, long classNameId, long classPK, boolean primary, 812 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 813 throws com.liferay.portal.NoSuchAddressException, 814 com.liferay.portal.kernel.exception.SystemException; 815 816 /** 817 * Returns the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 818 * 819 * @param companyId the company ID 820 * @param classNameId the class name ID 821 * @param classPK the class p k 822 * @param primary the primary 823 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 824 * @return the first matching address, or <code>null</code> if a matching address could not be found 825 * @throws SystemException if a system exception occurred 826 */ 827 public com.liferay.portal.model.Address fetchByC_C_C_P_First( 828 long companyId, long classNameId, long classPK, boolean primary, 829 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 830 throws com.liferay.portal.kernel.exception.SystemException; 831 832 /** 833 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 834 * 835 * @param companyId the company ID 836 * @param classNameId the class name ID 837 * @param classPK the class p k 838 * @param primary the primary 839 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 840 * @return the last matching address 841 * @throws com.liferay.portal.NoSuchAddressException if a matching address could not be found 842 * @throws SystemException if a system exception occurred 843 */ 844 public com.liferay.portal.model.Address findByC_C_C_P_Last(long companyId, 845 long classNameId, long classPK, boolean primary, 846 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 847 throws com.liferay.portal.NoSuchAddressException, 848 com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * Returns the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 852 * 853 * @param companyId the company ID 854 * @param classNameId the class name ID 855 * @param classPK the class p k 856 * @param primary the primary 857 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 858 * @return the last matching address, or <code>null</code> if a matching address could not be found 859 * @throws SystemException if a system exception occurred 860 */ 861 public com.liferay.portal.model.Address fetchByC_C_C_P_Last( 862 long companyId, long classNameId, long classPK, boolean primary, 863 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 864 throws com.liferay.portal.kernel.exception.SystemException; 865 866 /** 867 * Returns the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 868 * 869 * @param addressId the primary key of the current address 870 * @param companyId the company ID 871 * @param classNameId the class name ID 872 * @param classPK the class p k 873 * @param primary the primary 874 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 875 * @return the previous, current, and next address 876 * @throws com.liferay.portal.NoSuchAddressException if a address with the primary key could not be found 877 * @throws SystemException if a system exception occurred 878 */ 879 public com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext( 880 long addressId, long companyId, long classNameId, long classPK, 881 boolean primary, 882 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 883 throws com.liferay.portal.NoSuchAddressException, 884 com.liferay.portal.kernel.exception.SystemException; 885 886 /** 887 * Returns all the addresses. 888 * 889 * @return the addresses 890 * @throws SystemException if a system exception occurred 891 */ 892 public java.util.List<com.liferay.portal.model.Address> findAll() 893 throws com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Returns a range of all the addresses. 897 * 898 * <p> 899 * 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. 900 * </p> 901 * 902 * @param start the lower bound of the range of addresses 903 * @param end the upper bound of the range of addresses (not inclusive) 904 * @return the range of addresses 905 * @throws SystemException if a system exception occurred 906 */ 907 public java.util.List<com.liferay.portal.model.Address> findAll(int start, 908 int end) throws com.liferay.portal.kernel.exception.SystemException; 909 910 /** 911 * Returns an ordered range of all the addresses. 912 * 913 * <p> 914 * 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. 915 * </p> 916 * 917 * @param start the lower bound of the range of addresses 918 * @param end the upper bound of the range of addresses (not inclusive) 919 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 920 * @return the ordered range of addresses 921 * @throws SystemException if a system exception occurred 922 */ 923 public java.util.List<com.liferay.portal.model.Address> findAll(int start, 924 int end, 925 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 926 throws com.liferay.portal.kernel.exception.SystemException; 927 928 /** 929 * Removes all the addresses where companyId = ? from the database. 930 * 931 * @param companyId the company ID 932 * @throws SystemException if a system exception occurred 933 */ 934 public void removeByCompanyId(long companyId) 935 throws com.liferay.portal.kernel.exception.SystemException; 936 937 /** 938 * Removes all the addresses where userId = ? from the database. 939 * 940 * @param userId the user ID 941 * @throws SystemException if a system exception occurred 942 */ 943 public void removeByUserId(long userId) 944 throws com.liferay.portal.kernel.exception.SystemException; 945 946 /** 947 * Removes all the addresses where companyId = ? and classNameId = ? from the database. 948 * 949 * @param companyId the company ID 950 * @param classNameId the class name ID 951 * @throws SystemException if a system exception occurred 952 */ 953 public void removeByC_C(long companyId, long classNameId) 954 throws com.liferay.portal.kernel.exception.SystemException; 955 956 /** 957 * Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? from the database. 958 * 959 * @param companyId the company ID 960 * @param classNameId the class name ID 961 * @param classPK the class p k 962 * @throws SystemException if a system exception occurred 963 */ 964 public void removeByC_C_C(long companyId, long classNameId, long classPK) 965 throws com.liferay.portal.kernel.exception.SystemException; 966 967 /** 968 * Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ? from the database. 969 * 970 * @param companyId the company ID 971 * @param classNameId the class name ID 972 * @param classPK the class p k 973 * @param mailing the mailing 974 * @throws SystemException if a system exception occurred 975 */ 976 public void removeByC_C_C_M(long companyId, long classNameId, long classPK, 977 boolean mailing) 978 throws com.liferay.portal.kernel.exception.SystemException; 979 980 /** 981 * Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 982 * 983 * @param companyId the company ID 984 * @param classNameId the class name ID 985 * @param classPK the class p k 986 * @param primary the primary 987 * @throws SystemException if a system exception occurred 988 */ 989 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 990 boolean primary) 991 throws com.liferay.portal.kernel.exception.SystemException; 992 993 /** 994 * Removes all the addresses from the database. 995 * 996 * @throws SystemException if a system exception occurred 997 */ 998 public void removeAll() 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Returns the number of addresses where companyId = ?. 1003 * 1004 * @param companyId the company ID 1005 * @return the number of matching addresses 1006 * @throws SystemException if a system exception occurred 1007 */ 1008 public int countByCompanyId(long companyId) 1009 throws com.liferay.portal.kernel.exception.SystemException; 1010 1011 /** 1012 * Returns the number of addresses where userId = ?. 1013 * 1014 * @param userId the user ID 1015 * @return the number of matching addresses 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public int countByUserId(long userId) 1019 throws com.liferay.portal.kernel.exception.SystemException; 1020 1021 /** 1022 * Returns the number of addresses where companyId = ? and classNameId = ?. 1023 * 1024 * @param companyId the company ID 1025 * @param classNameId the class name ID 1026 * @return the number of matching addresses 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public int countByC_C(long companyId, long classNameId) 1030 throws com.liferay.portal.kernel.exception.SystemException; 1031 1032 /** 1033 * Returns the number of addresses 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 * @return the number of matching addresses 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public int countByC_C_C(long companyId, long classNameId, long classPK) 1042 throws com.liferay.portal.kernel.exception.SystemException; 1043 1044 /** 1045 * Returns the number of addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. 1046 * 1047 * @param companyId the company ID 1048 * @param classNameId the class name ID 1049 * @param classPK the class p k 1050 * @param mailing the mailing 1051 * @return the number of matching addresses 1052 * @throws SystemException if a system exception occurred 1053 */ 1054 public int countByC_C_C_M(long companyId, long classNameId, long classPK, 1055 boolean mailing) 1056 throws com.liferay.portal.kernel.exception.SystemException; 1057 1058 /** 1059 * Returns the number of addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1060 * 1061 * @param companyId the company ID 1062 * @param classNameId the class name ID 1063 * @param classPK the class p k 1064 * @param primary the primary 1065 * @return the number of matching addresses 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 1069 boolean primary) 1070 throws com.liferay.portal.kernel.exception.SystemException; 1071 1072 /** 1073 * Returns the number of addresses. 1074 * 1075 * @return the number of addresses 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public int countAll() 1079 throws com.liferay.portal.kernel.exception.SystemException; 1080 }