001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.Website; 018 019 /** 020 * The persistence interface for the website service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see WebsitePersistenceImpl 028 * @see WebsiteUtil 029 * @generated 030 */ 031 public interface WebsitePersistence extends BasePersistence<Website> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * 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. 036 */ 037 038 /** 039 * Caches the website in the entity cache if it is enabled. 040 * 041 * @param website the website 042 */ 043 public void cacheResult(com.liferay.portal.model.Website website); 044 045 /** 046 * Caches the websites in the entity cache if it is enabled. 047 * 048 * @param websites the websites 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Website> websites); 052 053 /** 054 * Creates a new website with the primary key. Does not add the website to the database. 055 * 056 * @param websiteId the primary key for the new website 057 * @return the new website 058 */ 059 public com.liferay.portal.model.Website create(long websiteId); 060 061 /** 062 * Removes the website with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param websiteId the primary key of the website 065 * @return the website that was removed 066 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Website remove(long websiteId) 070 throws com.liferay.portal.NoSuchWebsiteException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Website updateImpl( 074 com.liferay.portal.model.Website website, boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found. 079 * 080 * @param websiteId the primary key of the website 081 * @return the website 082 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Website findByPrimaryKey(long websiteId) 086 throws com.liferay.portal.NoSuchWebsiteException, 087 com.liferay.portal.kernel.exception.SystemException; 088 089 /** 090 * Returns the website with the primary key or returns <code>null</code> if it could not be found. 091 * 092 * @param websiteId the primary key of the website 093 * @return the website, or <code>null</code> if a website with the primary key could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns all the websites where companyId = ?. 101 * 102 * @param companyId the company ID 103 * @return the matching websites 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 107 long companyId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Returns a range of all the websites where companyId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param companyId the company ID 118 * @param start the lower bound of the range of websites 119 * @param end the upper bound of the range of websites (not inclusive) 120 * @return the range of matching websites 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 124 long companyId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns an ordered range of all the websites where companyId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param companyId the company ID 135 * @param start the lower bound of the range of websites 136 * @param end the upper bound of the range of websites (not inclusive) 137 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 138 * @return the ordered range of matching websites 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 142 long companyId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the first website in the ordered set where companyId = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param companyId the company ID 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the first matching website 156 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.Website findByCompanyId_First( 160 long companyId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchWebsiteException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Returns the last website in the ordered set where companyId = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param companyId the company ID 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the last matching website 175 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portal.model.Website findByCompanyId_Last( 179 long companyId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchWebsiteException, 182 com.liferay.portal.kernel.exception.SystemException; 183 184 /** 185 * Returns the websites before and after the current website in the ordered set where companyId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param websiteId the primary key of the current website 192 * @param companyId the company ID 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the previous, current, and next website 195 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext( 199 long websiteId, long companyId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.NoSuchWebsiteException, 202 com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns all the websites where userId = ?. 206 * 207 * @param userId the user ID 208 * @return the matching websites 209 * @throws SystemException if a system exception occurred 210 */ 211 public java.util.List<com.liferay.portal.model.Website> findByUserId( 212 long userId) throws com.liferay.portal.kernel.exception.SystemException; 213 214 /** 215 * Returns a range of all the websites where userId = ?. 216 * 217 * <p> 218 * 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. 219 * </p> 220 * 221 * @param userId the user ID 222 * @param start the lower bound of the range of websites 223 * @param end the upper bound of the range of websites (not inclusive) 224 * @return the range of matching websites 225 * @throws SystemException if a system exception occurred 226 */ 227 public java.util.List<com.liferay.portal.model.Website> findByUserId( 228 long userId, int start, int end) 229 throws com.liferay.portal.kernel.exception.SystemException; 230 231 /** 232 * Returns an ordered range of all the websites where userId = ?. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param userId the user ID 239 * @param start the lower bound of the range of websites 240 * @param end the upper bound of the range of websites (not inclusive) 241 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 242 * @return the ordered range of matching websites 243 * @throws SystemException if a system exception occurred 244 */ 245 public java.util.List<com.liferay.portal.model.Website> findByUserId( 246 long userId, int start, int end, 247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns the first website in the ordered set where userId = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param userId the user ID 258 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 259 * @return the first matching website 260 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 261 * @throws SystemException if a system exception occurred 262 */ 263 public com.liferay.portal.model.Website findByUserId_First(long userId, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.NoSuchWebsiteException, 266 com.liferay.portal.kernel.exception.SystemException; 267 268 /** 269 * Returns the last website in the ordered set where userId = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param userId the user ID 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching website 278 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public com.liferay.portal.model.Website findByUserId_Last(long userId, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.NoSuchWebsiteException, 284 com.liferay.portal.kernel.exception.SystemException; 285 286 /** 287 * Returns the websites before and after the current website in the ordered set where userId = ?. 288 * 289 * <p> 290 * 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. 291 * </p> 292 * 293 * @param websiteId the primary key of the current website 294 * @param userId the user 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[] findByUserId_PrevAndNext( 301 long websiteId, long userId, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.NoSuchWebsiteException, 304 com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Returns all the websites where companyId = ? and classNameId = ?. 308 * 309 * @param companyId the company ID 310 * @param classNameId the class name ID 311 * @return the matching websites 312 * @throws SystemException if a system exception occurred 313 */ 314 public java.util.List<com.liferay.portal.model.Website> findByC_C( 315 long companyId, long classNameId) 316 throws com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Returns a range of all the websites where companyId = ? and classNameId = ?. 320 * 321 * <p> 322 * 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. 323 * </p> 324 * 325 * @param companyId the company ID 326 * @param classNameId the class name ID 327 * @param start the lower bound of the range of websites 328 * @param end the upper bound of the range of websites (not inclusive) 329 * @return the range of matching websites 330 * @throws SystemException if a system exception occurred 331 */ 332 public java.util.List<com.liferay.portal.model.Website> findByC_C( 333 long companyId, long classNameId, int start, int end) 334 throws com.liferay.portal.kernel.exception.SystemException; 335 336 /** 337 * Returns an ordered range of all the websites where companyId = ? and classNameId = ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param companyId the company ID 344 * @param classNameId the class name ID 345 * @param start the lower bound of the range of websites 346 * @param end the upper bound of the range of websites (not inclusive) 347 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 348 * @return the ordered range of matching websites 349 * @throws SystemException if a system exception occurred 350 */ 351 public java.util.List<com.liferay.portal.model.Website> findByC_C( 352 long companyId, long classNameId, int start, int end, 353 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param companyId the company ID 364 * @param classNameId the class name ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the first matching website 367 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portal.model.Website findByC_C_First(long companyId, 371 long classNameId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.NoSuchWebsiteException, 374 com.liferay.portal.kernel.exception.SystemException; 375 376 /** 377 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 378 * 379 * <p> 380 * 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. 381 * </p> 382 * 383 * @param companyId the company ID 384 * @param classNameId the class name ID 385 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 386 * @return the last matching website 387 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 388 * @throws SystemException if a system exception occurred 389 */ 390 public com.liferay.portal.model.Website findByC_C_Last(long companyId, 391 long classNameId, 392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 393 throws com.liferay.portal.NoSuchWebsiteException, 394 com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ?. 398 * 399 * <p> 400 * 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. 401 * </p> 402 * 403 * @param websiteId the primary key of the current website 404 * @param companyId the company ID 405 * @param classNameId the class name ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the previous, current, and next website 408 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext( 412 long websiteId, long companyId, long classNameId, 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 all the websites where companyId = ? and classNameId = ? and classPK = ?. 419 * 420 * @param companyId the company ID 421 * @param classNameId the class name ID 422 * @param classPK the class p k 423 * @return the matching websites 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 427 long companyId, long classNameId, long classPK) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param companyId the company ID 438 * @param classNameId the class name ID 439 * @param classPK the class p k 440 * @param start the lower bound of the range of websites 441 * @param end the upper bound of the range of websites (not inclusive) 442 * @return the range of matching websites 443 * @throws SystemException if a system exception occurred 444 */ 445 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 446 long companyId, long classNameId, long classPK, int start, int end) 447 throws com.liferay.portal.kernel.exception.SystemException; 448 449 /** 450 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 451 * 452 * <p> 453 * 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. 454 * </p> 455 * 456 * @param companyId the company ID 457 * @param classNameId the class name ID 458 * @param classPK the class p k 459 * @param start the lower bound of the range of websites 460 * @param end the upper bound of the range of websites (not inclusive) 461 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 462 * @return the ordered range of matching websites 463 * @throws SystemException if a system exception occurred 464 */ 465 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 466 long companyId, long classNameId, long classPK, int start, int end, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException; 469 470 /** 471 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 472 * 473 * <p> 474 * 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. 475 * </p> 476 * 477 * @param companyId the company ID 478 * @param classNameId the class name ID 479 * @param classPK the class p k 480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 481 * @return the first matching website 482 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 483 * @throws SystemException if a system exception occurred 484 */ 485 public com.liferay.portal.model.Website findByC_C_C_First(long companyId, 486 long classNameId, long classPK, 487 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 488 throws com.liferay.portal.NoSuchWebsiteException, 489 com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param companyId the company ID 499 * @param classNameId the class name ID 500 * @param classPK the class p k 501 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 502 * @return the last matching website 503 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 504 * @throws SystemException if a system exception occurred 505 */ 506 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId, 507 long classNameId, long classPK, 508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 509 throws com.liferay.portal.NoSuchWebsiteException, 510 com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 514 * 515 * <p> 516 * 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. 517 * </p> 518 * 519 * @param websiteId the primary key of the current website 520 * @param companyId the company ID 521 * @param classNameId the class name ID 522 * @param classPK the class p k 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the previous, current, and next website 525 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext( 529 long websiteId, long companyId, long classNameId, long classPK, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.NoSuchWebsiteException, 532 com.liferay.portal.kernel.exception.SystemException; 533 534 /** 535 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 536 * 537 * @param companyId the company ID 538 * @param classNameId the class name ID 539 * @param classPK the class p k 540 * @param primary the primary 541 * @return the matching websites 542 * @throws SystemException if a system exception occurred 543 */ 544 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 545 long companyId, long classNameId, long classPK, boolean primary) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param companyId the company ID 556 * @param classNameId the class name ID 557 * @param classPK the class p k 558 * @param primary the primary 559 * @param start the lower bound of the range of websites 560 * @param end the upper bound of the range of websites (not inclusive) 561 * @return the range of matching websites 562 * @throws SystemException if a system exception occurred 563 */ 564 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 565 long companyId, long classNameId, long classPK, boolean primary, 566 int start, int end) 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 571 * 572 * <p> 573 * 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. 574 * </p> 575 * 576 * @param companyId the company ID 577 * @param classNameId the class name ID 578 * @param classPK the class p k 579 * @param primary the primary 580 * @param start the lower bound of the range of websites 581 * @param end the upper bound of the range of websites (not inclusive) 582 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 583 * @return the ordered range of matching websites 584 * @throws SystemException if a system exception occurred 585 */ 586 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 587 long companyId, long classNameId, long classPK, boolean primary, 588 int start, int end, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 594 * 595 * <p> 596 * 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. 597 * </p> 598 * 599 * @param companyId the company ID 600 * @param classNameId the class name ID 601 * @param classPK the class p k 602 * @param primary the primary 603 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 604 * @return the first matching website 605 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 606 * @throws SystemException if a system exception occurred 607 */ 608 public com.liferay.portal.model.Website findByC_C_C_P_First( 609 long companyId, long classNameId, long classPK, boolean primary, 610 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 611 throws com.liferay.portal.NoSuchWebsiteException, 612 com.liferay.portal.kernel.exception.SystemException; 613 614 /** 615 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 616 * 617 * <p> 618 * 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. 619 * </p> 620 * 621 * @param companyId the company ID 622 * @param classNameId the class name ID 623 * @param classPK the class p k 624 * @param primary the primary 625 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 626 * @return the last matching website 627 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 628 * @throws SystemException if a system exception occurred 629 */ 630 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId, 631 long classNameId, long classPK, boolean primary, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.NoSuchWebsiteException, 634 com.liferay.portal.kernel.exception.SystemException; 635 636 /** 637 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 638 * 639 * <p> 640 * 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. 641 * </p> 642 * 643 * @param websiteId the primary key of the current website 644 * @param companyId the company ID 645 * @param classNameId the class name ID 646 * @param classPK the class p k 647 * @param primary the primary 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the previous, current, and next website 650 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 651 * @throws SystemException if a system exception occurred 652 */ 653 public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext( 654 long websiteId, long companyId, long classNameId, long classPK, 655 boolean primary, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.NoSuchWebsiteException, 658 com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * Returns all the websites. 662 * 663 * @return the websites 664 * @throws SystemException if a system exception occurred 665 */ 666 public java.util.List<com.liferay.portal.model.Website> findAll() 667 throws com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Returns a range of all the websites. 671 * 672 * <p> 673 * 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. 674 * </p> 675 * 676 * @param start the lower bound of the range of websites 677 * @param end the upper bound of the range of websites (not inclusive) 678 * @return the range of websites 679 * @throws SystemException if a system exception occurred 680 */ 681 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 682 int end) throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Returns an ordered range of all the websites. 686 * 687 * <p> 688 * 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. 689 * </p> 690 * 691 * @param start the lower bound of the range of websites 692 * @param end the upper bound of the range of websites (not inclusive) 693 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 694 * @return the ordered range of websites 695 * @throws SystemException if a system exception occurred 696 */ 697 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 698 int end, 699 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 700 throws com.liferay.portal.kernel.exception.SystemException; 701 702 /** 703 * Removes all the websites where companyId = ? from the database. 704 * 705 * @param companyId the company ID 706 * @throws SystemException if a system exception occurred 707 */ 708 public void removeByCompanyId(long companyId) 709 throws com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * Removes all the websites where userId = ? from the database. 713 * 714 * @param userId the user ID 715 * @throws SystemException if a system exception occurred 716 */ 717 public void removeByUserId(long userId) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Removes all the websites where companyId = ? and classNameId = ? from the database. 722 * 723 * @param companyId the company ID 724 * @param classNameId the class name ID 725 * @throws SystemException if a system exception occurred 726 */ 727 public void removeByC_C(long companyId, long classNameId) 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? from the database. 732 * 733 * @param companyId the company ID 734 * @param classNameId the class name ID 735 * @param classPK the class p k 736 * @throws SystemException if a system exception occurred 737 */ 738 public void removeByC_C_C(long companyId, long classNameId, long classPK) 739 throws com.liferay.portal.kernel.exception.SystemException; 740 741 /** 742 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 743 * 744 * @param companyId the company ID 745 * @param classNameId the class name ID 746 * @param classPK the class p k 747 * @param primary the primary 748 * @throws SystemException if a system exception occurred 749 */ 750 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 751 boolean primary) 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Removes all the websites from the database. 756 * 757 * @throws SystemException if a system exception occurred 758 */ 759 public void removeAll() 760 throws com.liferay.portal.kernel.exception.SystemException; 761 762 /** 763 * Returns the number of websites where companyId = ?. 764 * 765 * @param companyId the company ID 766 * @return the number of matching websites 767 * @throws SystemException if a system exception occurred 768 */ 769 public int countByCompanyId(long companyId) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Returns the number of websites where userId = ?. 774 * 775 * @param userId the user ID 776 * @return the number of matching websites 777 * @throws SystemException if a system exception occurred 778 */ 779 public int countByUserId(long userId) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Returns the number of websites where companyId = ? and classNameId = ?. 784 * 785 * @param companyId the company ID 786 * @param classNameId the class name ID 787 * @return the number of matching websites 788 * @throws SystemException if a system exception occurred 789 */ 790 public int countByC_C(long companyId, long classNameId) 791 throws com.liferay.portal.kernel.exception.SystemException; 792 793 /** 794 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ?. 795 * 796 * @param companyId the company ID 797 * @param classNameId the class name ID 798 * @param classPK the class p k 799 * @return the number of matching websites 800 * @throws SystemException if a system exception occurred 801 */ 802 public int countByC_C_C(long companyId, long classNameId, long classPK) 803 throws com.liferay.portal.kernel.exception.SystemException; 804 805 /** 806 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 807 * 808 * @param companyId the company ID 809 * @param classNameId the class name ID 810 * @param classPK the class p k 811 * @param primary the primary 812 * @return the number of matching websites 813 * @throws SystemException if a system exception occurred 814 */ 815 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 816 boolean primary) 817 throws com.liferay.portal.kernel.exception.SystemException; 818 819 /** 820 * Returns the number of websites. 821 * 822 * @return the number of websites 823 * @throws SystemException if a system exception occurred 824 */ 825 public int countAll() 826 throws com.liferay.portal.kernel.exception.SystemException; 827 }