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) 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 * @param companyId the company ID 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the first matching website 152 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public com.liferay.portal.model.Website findByCompanyId_First( 156 long companyId, 157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 158 throws com.liferay.portal.NoSuchWebsiteException, 159 com.liferay.portal.kernel.exception.SystemException; 160 161 /** 162 * Returns the first website in the ordered set where companyId = ?. 163 * 164 * @param companyId the company ID 165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 166 * @return the first matching website, or <code>null</code> if a matching website could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.Website fetchByCompanyId_First( 170 long companyId, 171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 172 throws com.liferay.portal.kernel.exception.SystemException; 173 174 /** 175 * Returns the last website in the ordered set where companyId = ?. 176 * 177 * @param companyId the company ID 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching website 180 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.Website findByCompanyId_Last( 184 long companyId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.NoSuchWebsiteException, 187 com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns the last website in the ordered set where companyId = ?. 191 * 192 * @param companyId the company ID 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the last matching website, or <code>null</code> if a matching website could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portal.model.Website fetchByCompanyId_Last( 198 long companyId, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Returns the websites before and after the current website in the ordered set where companyId = ?. 204 * 205 * @param websiteId the primary key of the current website 206 * @param companyId the company ID 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the previous, current, and next website 209 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext( 213 long websiteId, long companyId, 214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 215 throws com.liferay.portal.NoSuchWebsiteException, 216 com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns all the websites where userId = ?. 220 * 221 * @param userId the user ID 222 * @return the matching websites 223 * @throws SystemException if a system exception occurred 224 */ 225 public java.util.List<com.liferay.portal.model.Website> findByUserId( 226 long userId) throws com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns a range of all the websites where userId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param userId the user ID 236 * @param start the lower bound of the range of websites 237 * @param end the upper bound of the range of websites (not inclusive) 238 * @return the range of matching websites 239 * @throws SystemException if a system exception occurred 240 */ 241 public java.util.List<com.liferay.portal.model.Website> findByUserId( 242 long userId, int start, int end) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Returns an ordered range of all the websites where userId = ?. 247 * 248 * <p> 249 * 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. 250 * </p> 251 * 252 * @param userId the user ID 253 * @param start the lower bound of the range of websites 254 * @param end the upper bound of the range of websites (not inclusive) 255 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 256 * @return the ordered range of matching websites 257 * @throws SystemException if a system exception occurred 258 */ 259 public java.util.List<com.liferay.portal.model.Website> findByUserId( 260 long userId, int start, int end, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns the first website in the ordered set where userId = ?. 266 * 267 * @param userId the user ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching website 270 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portal.model.Website findByUserId_First(long userId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.NoSuchWebsiteException, 276 com.liferay.portal.kernel.exception.SystemException; 277 278 /** 279 * Returns the first website in the ordered set where userId = ?. 280 * 281 * @param userId the user ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the first matching website, or <code>null</code> if a matching website could not be found 284 * @throws SystemException if a system exception occurred 285 */ 286 public com.liferay.portal.model.Website fetchByUserId_First(long userId, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Returns the last website in the ordered set where userId = ?. 292 * 293 * @param userId the user ID 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the last matching website 296 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portal.model.Website findByUserId_Last(long userId, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.NoSuchWebsiteException, 302 com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns the last website in the ordered set where userId = ?. 306 * 307 * @param userId the user ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the last matching website, or <code>null</code> if a matching website could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public com.liferay.portal.model.Website fetchByUserId_Last(long userId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns the websites before and after the current website in the ordered set where userId = ?. 318 * 319 * @param websiteId the primary key of the current website 320 * @param userId the user ID 321 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 322 * @return the previous, current, and next website 323 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 324 * @throws SystemException if a system exception occurred 325 */ 326 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext( 327 long websiteId, long userId, 328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 329 throws com.liferay.portal.NoSuchWebsiteException, 330 com.liferay.portal.kernel.exception.SystemException; 331 332 /** 333 * Returns all the websites where companyId = ? and classNameId = ?. 334 * 335 * @param companyId the company ID 336 * @param classNameId the class name ID 337 * @return the matching websites 338 * @throws SystemException if a system exception occurred 339 */ 340 public java.util.List<com.liferay.portal.model.Website> findByC_C( 341 long companyId, long classNameId) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns a range of all the websites where companyId = ? and classNameId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param companyId the company ID 352 * @param classNameId the class name ID 353 * @param start the lower bound of the range of websites 354 * @param end the upper bound of the range of websites (not inclusive) 355 * @return the range of matching websites 356 * @throws SystemException if a system exception occurred 357 */ 358 public java.util.List<com.liferay.portal.model.Website> findByC_C( 359 long companyId, long classNameId, int start, int end) 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Returns an ordered range of all the websites where companyId = ? and classNameId = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param companyId the company ID 370 * @param classNameId the class name ID 371 * @param start the lower bound of the range of websites 372 * @param end the upper bound of the range of websites (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching websites 375 * @throws SystemException if a system exception occurred 376 */ 377 public java.util.List<com.liferay.portal.model.Website> findByC_C( 378 long companyId, long classNameId, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 384 * 385 * @param companyId the company ID 386 * @param classNameId the class name ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching website 389 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 390 * @throws SystemException if a system exception occurred 391 */ 392 public com.liferay.portal.model.Website findByC_C_First(long companyId, 393 long classNameId, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.NoSuchWebsiteException, 396 com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 400 * 401 * @param companyId the company ID 402 * @param classNameId the class name ID 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the first matching website, or <code>null</code> if a matching website could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public com.liferay.portal.model.Website fetchByC_C_First(long companyId, 408 long classNameId, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 414 * 415 * @param companyId the company ID 416 * @param classNameId the class name ID 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the last matching website 419 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portal.model.Website findByC_C_Last(long companyId, 423 long classNameId, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.NoSuchWebsiteException, 426 com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 430 * 431 * @param companyId the company ID 432 * @param classNameId the class name ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the last matching website, or <code>null</code> if a matching website could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portal.model.Website fetchByC_C_Last(long companyId, 438 long classNameId, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ?. 444 * 445 * @param websiteId the primary key of the current website 446 * @param companyId the company ID 447 * @param classNameId the class name ID 448 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 449 * @return the previous, current, and next website 450 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext( 454 long websiteId, long companyId, long classNameId, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.NoSuchWebsiteException, 457 com.liferay.portal.kernel.exception.SystemException; 458 459 /** 460 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ?. 461 * 462 * @param companyId the company ID 463 * @param classNameId the class name ID 464 * @param classPK the class p k 465 * @return the matching websites 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 469 long companyId, long classNameId, long classPK) 470 throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 474 * 475 * <p> 476 * 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. 477 * </p> 478 * 479 * @param companyId the company ID 480 * @param classNameId the class name ID 481 * @param classPK the class p k 482 * @param start the lower bound of the range of websites 483 * @param end the upper bound of the range of websites (not inclusive) 484 * @return the range of matching websites 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 488 long companyId, long classNameId, long classPK, int start, int end) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns an ordered range of all the websites 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 start the lower bound of the range of websites 502 * @param end the upper bound of the range of websites (not inclusive) 503 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 504 * @return the ordered range of matching websites 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 508 long companyId, long classNameId, long classPK, int start, int end, 509 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 510 throws com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 514 * 515 * @param companyId the company ID 516 * @param classNameId the class name ID 517 * @param classPK the class p k 518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 519 * @return the first matching website 520 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public com.liferay.portal.model.Website findByC_C_C_First(long companyId, 524 long classNameId, long classPK, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.NoSuchWebsiteException, 527 com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 531 * 532 * @param companyId the company ID 533 * @param classNameId the class name ID 534 * @param classPK the class p k 535 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 536 * @return the first matching website, or <code>null</code> if a matching website could not be found 537 * @throws SystemException if a system exception occurred 538 */ 539 public com.liferay.portal.model.Website fetchByC_C_C_First(long companyId, 540 long classNameId, long classPK, 541 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 542 throws com.liferay.portal.kernel.exception.SystemException; 543 544 /** 545 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 546 * 547 * @param companyId the company ID 548 * @param classNameId the class name ID 549 * @param classPK the class p k 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the last matching website 552 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId, 556 long classNameId, long classPK, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.NoSuchWebsiteException, 559 com.liferay.portal.kernel.exception.SystemException; 560 561 /** 562 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 563 * 564 * @param companyId the company ID 565 * @param classNameId the class name ID 566 * @param classPK the class p k 567 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 568 * @return the last matching website, or <code>null</code> if a matching website could not be found 569 * @throws SystemException if a system exception occurred 570 */ 571 public com.liferay.portal.model.Website fetchByC_C_C_Last(long companyId, 572 long classNameId, long classPK, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 578 * 579 * @param websiteId the primary key of the current website 580 * @param companyId the company ID 581 * @param classNameId the class name ID 582 * @param classPK the class p k 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the previous, current, and next website 585 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext( 589 long websiteId, long companyId, long classNameId, long classPK, 590 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 591 throws com.liferay.portal.NoSuchWebsiteException, 592 com.liferay.portal.kernel.exception.SystemException; 593 594 /** 595 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 596 * 597 * @param companyId the company ID 598 * @param classNameId the class name ID 599 * @param classPK the class p k 600 * @param primary the primary 601 * @return the matching websites 602 * @throws SystemException if a system exception occurred 603 */ 604 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 605 long companyId, long classNameId, long classPK, boolean primary) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 608 /** 609 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 610 * 611 * <p> 612 * 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. 613 * </p> 614 * 615 * @param companyId the company ID 616 * @param classNameId the class name ID 617 * @param classPK the class p k 618 * @param primary the primary 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_C_P( 625 long companyId, long classNameId, long classPK, boolean primary, 626 int start, int end) 627 throws com.liferay.portal.kernel.exception.SystemException; 628 629 /** 630 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param companyId the company ID 637 * @param classNameId the class name ID 638 * @param classPK the class p k 639 * @param primary the primary 640 * @param start the lower bound of the range of websites 641 * @param end the upper bound of the range of websites (not inclusive) 642 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 643 * @return the ordered range of matching websites 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 647 long companyId, long classNameId, long classPK, boolean primary, 648 int start, int end, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException; 651 652 /** 653 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 654 * 655 * @param companyId the company ID 656 * @param classNameId the class name ID 657 * @param classPK the class p k 658 * @param primary the primary 659 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 660 * @return the first matching website 661 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 662 * @throws SystemException if a system exception occurred 663 */ 664 public com.liferay.portal.model.Website findByC_C_C_P_First( 665 long companyId, long classNameId, long classPK, boolean primary, 666 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 667 throws com.liferay.portal.NoSuchWebsiteException, 668 com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 672 * 673 * @param companyId the company ID 674 * @param classNameId the class name ID 675 * @param classPK the class p k 676 * @param primary the primary 677 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 678 * @return the first matching website, or <code>null</code> if a matching website could not be found 679 * @throws SystemException if a system exception occurred 680 */ 681 public com.liferay.portal.model.Website fetchByC_C_C_P_First( 682 long companyId, long classNameId, long classPK, boolean primary, 683 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 684 throws com.liferay.portal.kernel.exception.SystemException; 685 686 /** 687 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 688 * 689 * @param companyId the company ID 690 * @param classNameId the class name ID 691 * @param classPK the class p k 692 * @param primary the primary 693 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 694 * @return the last matching website 695 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId, 699 long classNameId, long classPK, boolean primary, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.NoSuchWebsiteException, 702 com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 706 * 707 * @param companyId the company ID 708 * @param classNameId the class name ID 709 * @param classPK the class p k 710 * @param primary the primary 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the last matching website, or <code>null</code> if a matching website could not be found 713 * @throws SystemException if a system exception occurred 714 */ 715 public com.liferay.portal.model.Website fetchByC_C_C_P_Last( 716 long companyId, long classNameId, long classPK, boolean primary, 717 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 722 * 723 * @param websiteId the primary key of the current website 724 * @param companyId the company ID 725 * @param classNameId the class name ID 726 * @param classPK the class p k 727 * @param primary the primary 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the previous, current, and next website 730 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext( 734 long websiteId, long companyId, long classNameId, long classPK, 735 boolean primary, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.NoSuchWebsiteException, 738 com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Returns all the websites. 742 * 743 * @return the websites 744 * @throws SystemException if a system exception occurred 745 */ 746 public java.util.List<com.liferay.portal.model.Website> findAll() 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns a range of all the websites. 751 * 752 * <p> 753 * 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. 754 * </p> 755 * 756 * @param start the lower bound of the range of websites 757 * @param end the upper bound of the range of websites (not inclusive) 758 * @return the range of websites 759 * @throws SystemException if a system exception occurred 760 */ 761 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 762 int end) throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns an ordered range of all the websites. 766 * 767 * <p> 768 * 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. 769 * </p> 770 * 771 * @param start the lower bound of the range of websites 772 * @param end the upper bound of the range of websites (not inclusive) 773 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 774 * @return the ordered range of websites 775 * @throws SystemException if a system exception occurred 776 */ 777 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 778 int end, 779 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Removes all the websites where companyId = ? from the database. 784 * 785 * @param companyId the company ID 786 * @throws SystemException if a system exception occurred 787 */ 788 public void removeByCompanyId(long companyId) 789 throws com.liferay.portal.kernel.exception.SystemException; 790 791 /** 792 * Removes all the websites where userId = ? from the database. 793 * 794 * @param userId the user ID 795 * @throws SystemException if a system exception occurred 796 */ 797 public void removeByUserId(long userId) 798 throws com.liferay.portal.kernel.exception.SystemException; 799 800 /** 801 * Removes all the websites where companyId = ? and classNameId = ? from the database. 802 * 803 * @param companyId the company ID 804 * @param classNameId the class name ID 805 * @throws SystemException if a system exception occurred 806 */ 807 public void removeByC_C(long companyId, long classNameId) 808 throws com.liferay.portal.kernel.exception.SystemException; 809 810 /** 811 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? from the database. 812 * 813 * @param companyId the company ID 814 * @param classNameId the class name ID 815 * @param classPK the class p k 816 * @throws SystemException if a system exception occurred 817 */ 818 public void removeByC_C_C(long companyId, long classNameId, long classPK) 819 throws com.liferay.portal.kernel.exception.SystemException; 820 821 /** 822 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 823 * 824 * @param companyId the company ID 825 * @param classNameId the class name ID 826 * @param classPK the class p k 827 * @param primary the primary 828 * @throws SystemException if a system exception occurred 829 */ 830 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 831 boolean primary) 832 throws com.liferay.portal.kernel.exception.SystemException; 833 834 /** 835 * Removes all the websites from the database. 836 * 837 * @throws SystemException if a system exception occurred 838 */ 839 public void removeAll() 840 throws com.liferay.portal.kernel.exception.SystemException; 841 842 /** 843 * Returns the number of websites where companyId = ?. 844 * 845 * @param companyId the company ID 846 * @return the number of matching websites 847 * @throws SystemException if a system exception occurred 848 */ 849 public int countByCompanyId(long companyId) 850 throws com.liferay.portal.kernel.exception.SystemException; 851 852 /** 853 * Returns the number of websites where userId = ?. 854 * 855 * @param userId the user ID 856 * @return the number of matching websites 857 * @throws SystemException if a system exception occurred 858 */ 859 public int countByUserId(long userId) 860 throws com.liferay.portal.kernel.exception.SystemException; 861 862 /** 863 * Returns the number of websites where companyId = ? and classNameId = ?. 864 * 865 * @param companyId the company ID 866 * @param classNameId the class name ID 867 * @return the number of matching websites 868 * @throws SystemException if a system exception occurred 869 */ 870 public int countByC_C(long companyId, long classNameId) 871 throws com.liferay.portal.kernel.exception.SystemException; 872 873 /** 874 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ?. 875 * 876 * @param companyId the company ID 877 * @param classNameId the class name ID 878 * @param classPK the class p k 879 * @return the number of matching websites 880 * @throws SystemException if a system exception occurred 881 */ 882 public int countByC_C_C(long companyId, long classNameId, long classPK) 883 throws com.liferay.portal.kernel.exception.SystemException; 884 885 /** 886 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 887 * 888 * @param companyId the company ID 889 * @param classNameId the class name ID 890 * @param classPK the class p k 891 * @param primary the primary 892 * @return the number of matching websites 893 * @throws SystemException if a system exception occurred 894 */ 895 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 896 boolean primary) 897 throws com.liferay.portal.kernel.exception.SystemException; 898 899 /** 900 * Returns the number of websites. 901 * 902 * @return the number of websites 903 * @throws SystemException if a system exception occurred 904 */ 905 public int countAll() 906 throws com.liferay.portal.kernel.exception.SystemException; 907 }