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