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