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