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