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