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