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