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