001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.model.Website; 024 import com.liferay.portal.service.ServiceContext; 025 026 import java.util.List; 027 028 /** 029 * 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. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see WebsitePersistence 037 * @see WebsitePersistenceImpl 038 * @generated 039 */ 040 @ProviderType 041 public class WebsiteUtil { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 046 */ 047 048 /** 049 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 050 */ 051 public static void clearCache() { 052 getPersistence().clearCache(); 053 } 054 055 /** 056 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 057 */ 058 public static void clearCache(Website website) { 059 getPersistence().clearCache(website); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 064 */ 065 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<Website> findWithDynamicQuery(DynamicQuery dynamicQuery) { 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 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 082 } 083 084 /** 085 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 086 */ 087 public static List<Website> findWithDynamicQuery( 088 DynamicQuery dynamicQuery, int start, int end, 089 OrderByComparator<Website> orderByComparator) { 090 return getPersistence() 091 .findWithDynamicQuery(dynamicQuery, start, end, 092 orderByComparator); 093 } 094 095 /** 096 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 097 */ 098 public static Website update(Website website) { 099 return getPersistence().update(website); 100 } 101 102 /** 103 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 104 */ 105 public static Website update(Website website, ServiceContext serviceContext) { 106 return getPersistence().update(website, serviceContext); 107 } 108 109 /** 110 * Returns all the websites where uuid = ?. 111 * 112 * @param uuid the uuid 113 * @return the matching websites 114 */ 115 public static java.util.List<com.liferay.portal.model.Website> findByUuid( 116 java.lang.String uuid) { 117 return getPersistence().findByUuid(uuid); 118 } 119 120 /** 121 * Returns a range of all the websites where uuid = ?. 122 * 123 * <p> 124 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 125 * </p> 126 * 127 * @param uuid the uuid 128 * @param start the lower bound of the range of websites 129 * @param end the upper bound of the range of websites (not inclusive) 130 * @return the range of matching websites 131 */ 132 public static java.util.List<com.liferay.portal.model.Website> findByUuid( 133 java.lang.String uuid, int start, int end) { 134 return getPersistence().findByUuid(uuid, start, end); 135 } 136 137 /** 138 * Returns an ordered range of all the websites where uuid = ?. 139 * 140 * <p> 141 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 142 * </p> 143 * 144 * @param uuid the uuid 145 * @param start the lower bound of the range of websites 146 * @param end the upper bound of the range of websites (not inclusive) 147 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 148 * @return the ordered range of matching websites 149 */ 150 public static java.util.List<com.liferay.portal.model.Website> findByUuid( 151 java.lang.String uuid, int start, int end, 152 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 153 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 154 } 155 156 /** 157 * Returns the first website in the ordered set where uuid = ?. 158 * 159 * @param uuid the uuid 160 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 161 * @return the first matching website 162 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 163 */ 164 public static com.liferay.portal.model.Website findByUuid_First( 165 java.lang.String uuid, 166 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 167 throws com.liferay.portal.NoSuchWebsiteException { 168 return getPersistence().findByUuid_First(uuid, orderByComparator); 169 } 170 171 /** 172 * Returns the first website in the ordered set where uuid = ?. 173 * 174 * @param uuid the uuid 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the first matching website, or <code>null</code> if a matching website could not be found 177 */ 178 public static com.liferay.portal.model.Website fetchByUuid_First( 179 java.lang.String uuid, 180 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 181 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 182 } 183 184 /** 185 * Returns the last website in the ordered set where uuid = ?. 186 * 187 * @param uuid the uuid 188 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 189 * @return the last matching website 190 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 191 */ 192 public static com.liferay.portal.model.Website findByUuid_Last( 193 java.lang.String uuid, 194 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 195 throws com.liferay.portal.NoSuchWebsiteException { 196 return getPersistence().findByUuid_Last(uuid, orderByComparator); 197 } 198 199 /** 200 * Returns the last website in the ordered set where uuid = ?. 201 * 202 * @param uuid the uuid 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the last matching website, or <code>null</code> if a matching website could not be found 205 */ 206 public static com.liferay.portal.model.Website fetchByUuid_Last( 207 java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 209 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 210 } 211 212 /** 213 * Returns the websites before and after the current website in the ordered set where uuid = ?. 214 * 215 * @param websiteId the primary key of the current website 216 * @param uuid the uuid 217 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 218 * @return the previous, current, and next website 219 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 220 */ 221 public static com.liferay.portal.model.Website[] findByUuid_PrevAndNext( 222 long websiteId, java.lang.String uuid, 223 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 224 throws com.liferay.portal.NoSuchWebsiteException { 225 return getPersistence() 226 .findByUuid_PrevAndNext(websiteId, uuid, orderByComparator); 227 } 228 229 /** 230 * Removes all the websites where uuid = ? from the database. 231 * 232 * @param uuid the uuid 233 */ 234 public static void removeByUuid(java.lang.String uuid) { 235 getPersistence().removeByUuid(uuid); 236 } 237 238 /** 239 * Returns the number of websites where uuid = ?. 240 * 241 * @param uuid the uuid 242 * @return the number of matching websites 243 */ 244 public static int countByUuid(java.lang.String uuid) { 245 return getPersistence().countByUuid(uuid); 246 } 247 248 /** 249 * Returns all the websites where uuid = ? and companyId = ?. 250 * 251 * @param uuid the uuid 252 * @param companyId the company ID 253 * @return the matching websites 254 */ 255 public static java.util.List<com.liferay.portal.model.Website> findByUuid_C( 256 java.lang.String uuid, long companyId) { 257 return getPersistence().findByUuid_C(uuid, companyId); 258 } 259 260 /** 261 * Returns a range of all the websites where uuid = ? and companyId = ?. 262 * 263 * <p> 264 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 265 * </p> 266 * 267 * @param uuid the uuid 268 * @param companyId the company ID 269 * @param start the lower bound of the range of websites 270 * @param end the upper bound of the range of websites (not inclusive) 271 * @return the range of matching websites 272 */ 273 public static java.util.List<com.liferay.portal.model.Website> findByUuid_C( 274 java.lang.String uuid, long companyId, int start, int end) { 275 return getPersistence().findByUuid_C(uuid, companyId, start, end); 276 } 277 278 /** 279 * Returns an ordered range of all the websites where uuid = ? and companyId = ?. 280 * 281 * <p> 282 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 283 * </p> 284 * 285 * @param uuid the uuid 286 * @param companyId the company ID 287 * @param start the lower bound of the range of websites 288 * @param end the upper bound of the range of websites (not inclusive) 289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 290 * @return the ordered range of matching websites 291 */ 292 public static java.util.List<com.liferay.portal.model.Website> findByUuid_C( 293 java.lang.String uuid, long companyId, int start, int end, 294 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 295 return getPersistence() 296 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 297 } 298 299 /** 300 * Returns the first website in the ordered set where uuid = ? and companyId = ?. 301 * 302 * @param uuid the uuid 303 * @param companyId the company ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the first matching website 306 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 307 */ 308 public static com.liferay.portal.model.Website findByUuid_C_First( 309 java.lang.String uuid, long companyId, 310 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 311 throws com.liferay.portal.NoSuchWebsiteException { 312 return getPersistence() 313 .findByUuid_C_First(uuid, companyId, orderByComparator); 314 } 315 316 /** 317 * Returns the first website in the ordered set where uuid = ? and companyId = ?. 318 * 319 * @param uuid the uuid 320 * @param companyId the company ID 321 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 322 * @return the first matching website, or <code>null</code> if a matching website could not be found 323 */ 324 public static com.liferay.portal.model.Website fetchByUuid_C_First( 325 java.lang.String uuid, long companyId, 326 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 327 return getPersistence() 328 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 329 } 330 331 /** 332 * Returns the last website in the ordered set where uuid = ? and companyId = ?. 333 * 334 * @param uuid the uuid 335 * @param companyId the company ID 336 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 337 * @return the last matching website 338 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 339 */ 340 public static com.liferay.portal.model.Website findByUuid_C_Last( 341 java.lang.String uuid, long companyId, 342 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 343 throws com.liferay.portal.NoSuchWebsiteException { 344 return getPersistence() 345 .findByUuid_C_Last(uuid, companyId, orderByComparator); 346 } 347 348 /** 349 * Returns the last website in the ordered set where uuid = ? and companyId = ?. 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the last matching website, or <code>null</code> if a matching website could not be found 355 */ 356 public static com.liferay.portal.model.Website fetchByUuid_C_Last( 357 java.lang.String uuid, long companyId, 358 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 359 return getPersistence() 360 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 361 } 362 363 /** 364 * Returns the websites before and after the current website in the ordered set where uuid = ? and companyId = ?. 365 * 366 * @param websiteId the primary key of the current website 367 * @param uuid the uuid 368 * @param companyId the company ID 369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 370 * @return the previous, current, and next website 371 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 372 */ 373 public static com.liferay.portal.model.Website[] findByUuid_C_PrevAndNext( 374 long websiteId, java.lang.String uuid, long companyId, 375 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 376 throws com.liferay.portal.NoSuchWebsiteException { 377 return getPersistence() 378 .findByUuid_C_PrevAndNext(websiteId, uuid, companyId, 379 orderByComparator); 380 } 381 382 /** 383 * Removes all the websites where uuid = ? and companyId = ? from the database. 384 * 385 * @param uuid the uuid 386 * @param companyId the company ID 387 */ 388 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 389 getPersistence().removeByUuid_C(uuid, companyId); 390 } 391 392 /** 393 * Returns the number of websites where uuid = ? and companyId = ?. 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 * @return the number of matching websites 398 */ 399 public static int countByUuid_C(java.lang.String uuid, long companyId) { 400 return getPersistence().countByUuid_C(uuid, companyId); 401 } 402 403 /** 404 * Returns all the websites where companyId = ?. 405 * 406 * @param companyId the company ID 407 * @return the matching websites 408 */ 409 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId( 410 long companyId) { 411 return getPersistence().findByCompanyId(companyId); 412 } 413 414 /** 415 * Returns a range of all the websites where companyId = ?. 416 * 417 * <p> 418 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 419 * </p> 420 * 421 * @param companyId the company ID 422 * @param start the lower bound of the range of websites 423 * @param end the upper bound of the range of websites (not inclusive) 424 * @return the range of matching websites 425 */ 426 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId( 427 long companyId, int start, int end) { 428 return getPersistence().findByCompanyId(companyId, start, end); 429 } 430 431 /** 432 * Returns an ordered range of all the websites where companyId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 436 * </p> 437 * 438 * @param companyId the company ID 439 * @param start the lower bound of the range of websites 440 * @param end the upper bound of the range of websites (not inclusive) 441 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 442 * @return the ordered range of matching websites 443 */ 444 public static java.util.List<com.liferay.portal.model.Website> findByCompanyId( 445 long companyId, int start, int end, 446 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 447 return getPersistence() 448 .findByCompanyId(companyId, start, end, orderByComparator); 449 } 450 451 /** 452 * Returns the first website in the ordered set where companyId = ?. 453 * 454 * @param companyId the company ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching website 457 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 458 */ 459 public static com.liferay.portal.model.Website findByCompanyId_First( 460 long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 462 throws com.liferay.portal.NoSuchWebsiteException { 463 return getPersistence() 464 .findByCompanyId_First(companyId, orderByComparator); 465 } 466 467 /** 468 * Returns the first website in the ordered set where companyId = ?. 469 * 470 * @param companyId the company ID 471 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 472 * @return the first matching website, or <code>null</code> if a matching website could not be found 473 */ 474 public static com.liferay.portal.model.Website fetchByCompanyId_First( 475 long companyId, 476 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 477 return getPersistence() 478 .fetchByCompanyId_First(companyId, orderByComparator); 479 } 480 481 /** 482 * Returns the last website in the ordered set where companyId = ?. 483 * 484 * @param companyId the company ID 485 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 486 * @return the last matching website 487 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 488 */ 489 public static com.liferay.portal.model.Website findByCompanyId_Last( 490 long companyId, 491 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 492 throws com.liferay.portal.NoSuchWebsiteException { 493 return getPersistence() 494 .findByCompanyId_Last(companyId, orderByComparator); 495 } 496 497 /** 498 * Returns the last website in the ordered set where companyId = ?. 499 * 500 * @param companyId the company ID 501 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 502 * @return the last matching website, or <code>null</code> if a matching website could not be found 503 */ 504 public static com.liferay.portal.model.Website fetchByCompanyId_Last( 505 long companyId, 506 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 507 return getPersistence() 508 .fetchByCompanyId_Last(companyId, orderByComparator); 509 } 510 511 /** 512 * Returns the websites before and after the current website in the ordered set where companyId = ?. 513 * 514 * @param websiteId the primary key of the current website 515 * @param companyId the company ID 516 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 517 * @return the previous, current, and next website 518 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 519 */ 520 public static com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext( 521 long websiteId, long companyId, 522 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 523 throws com.liferay.portal.NoSuchWebsiteException { 524 return getPersistence() 525 .findByCompanyId_PrevAndNext(websiteId, companyId, 526 orderByComparator); 527 } 528 529 /** 530 * Removes all the websites where companyId = ? from the database. 531 * 532 * @param companyId the company ID 533 */ 534 public static void removeByCompanyId(long companyId) { 535 getPersistence().removeByCompanyId(companyId); 536 } 537 538 /** 539 * Returns the number of websites where companyId = ?. 540 * 541 * @param companyId the company ID 542 * @return the number of matching websites 543 */ 544 public static int countByCompanyId(long companyId) { 545 return getPersistence().countByCompanyId(companyId); 546 } 547 548 /** 549 * Returns all the websites where userId = ?. 550 * 551 * @param userId the user ID 552 * @return the matching websites 553 */ 554 public static java.util.List<com.liferay.portal.model.Website> findByUserId( 555 long userId) { 556 return getPersistence().findByUserId(userId); 557 } 558 559 /** 560 * Returns a range of all the websites where userId = ?. 561 * 562 * <p> 563 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 564 * </p> 565 * 566 * @param userId the user ID 567 * @param start the lower bound of the range of websites 568 * @param end the upper bound of the range of websites (not inclusive) 569 * @return the range of matching websites 570 */ 571 public static java.util.List<com.liferay.portal.model.Website> findByUserId( 572 long userId, int start, int end) { 573 return getPersistence().findByUserId(userId, start, end); 574 } 575 576 /** 577 * Returns an ordered range of all the websites where userId = ?. 578 * 579 * <p> 580 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 581 * </p> 582 * 583 * @param userId the user ID 584 * @param start the lower bound of the range of websites 585 * @param end the upper bound of the range of websites (not inclusive) 586 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 587 * @return the ordered range of matching websites 588 */ 589 public static java.util.List<com.liferay.portal.model.Website> findByUserId( 590 long userId, int start, int end, 591 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 592 return getPersistence() 593 .findByUserId(userId, start, end, orderByComparator); 594 } 595 596 /** 597 * Returns the first website in the ordered set where userId = ?. 598 * 599 * @param userId the user ID 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the first matching website 602 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 603 */ 604 public static com.liferay.portal.model.Website findByUserId_First( 605 long userId, 606 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 607 throws com.liferay.portal.NoSuchWebsiteException { 608 return getPersistence().findByUserId_First(userId, orderByComparator); 609 } 610 611 /** 612 * Returns the first website in the ordered set where userId = ?. 613 * 614 * @param userId the user ID 615 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 616 * @return the first matching website, or <code>null</code> if a matching website could not be found 617 */ 618 public static com.liferay.portal.model.Website fetchByUserId_First( 619 long userId, 620 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 621 return getPersistence().fetchByUserId_First(userId, orderByComparator); 622 } 623 624 /** 625 * Returns the last website in the ordered set where userId = ?. 626 * 627 * @param userId the user ID 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the last matching website 630 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 631 */ 632 public static com.liferay.portal.model.Website findByUserId_Last( 633 long userId, 634 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 635 throws com.liferay.portal.NoSuchWebsiteException { 636 return getPersistence().findByUserId_Last(userId, orderByComparator); 637 } 638 639 /** 640 * Returns the last website in the ordered set where userId = ?. 641 * 642 * @param userId the user ID 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the last matching website, or <code>null</code> if a matching website could not be found 645 */ 646 public static com.liferay.portal.model.Website fetchByUserId_Last( 647 long userId, 648 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 649 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 650 } 651 652 /** 653 * Returns the websites before and after the current website in the ordered set where userId = ?. 654 * 655 * @param websiteId the primary key of the current website 656 * @param userId the user ID 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the previous, current, and next website 659 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 660 */ 661 public static com.liferay.portal.model.Website[] findByUserId_PrevAndNext( 662 long websiteId, long userId, 663 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 664 throws com.liferay.portal.NoSuchWebsiteException { 665 return getPersistence() 666 .findByUserId_PrevAndNext(websiteId, userId, 667 orderByComparator); 668 } 669 670 /** 671 * Removes all the websites where userId = ? from the database. 672 * 673 * @param userId the user ID 674 */ 675 public static void removeByUserId(long userId) { 676 getPersistence().removeByUserId(userId); 677 } 678 679 /** 680 * Returns the number of websites where userId = ?. 681 * 682 * @param userId the user ID 683 * @return the number of matching websites 684 */ 685 public static int countByUserId(long userId) { 686 return getPersistence().countByUserId(userId); 687 } 688 689 /** 690 * Returns all the websites where companyId = ? and classNameId = ?. 691 * 692 * @param companyId the company ID 693 * @param classNameId the class name ID 694 * @return the matching websites 695 */ 696 public static java.util.List<com.liferay.portal.model.Website> findByC_C( 697 long companyId, long classNameId) { 698 return getPersistence().findByC_C(companyId, classNameId); 699 } 700 701 /** 702 * Returns a range of all the websites where companyId = ? and classNameId = ?. 703 * 704 * <p> 705 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 706 * </p> 707 * 708 * @param companyId the company ID 709 * @param classNameId the class name ID 710 * @param start the lower bound of the range of websites 711 * @param end the upper bound of the range of websites (not inclusive) 712 * @return the range of matching websites 713 */ 714 public static java.util.List<com.liferay.portal.model.Website> findByC_C( 715 long companyId, long classNameId, int start, int end) { 716 return getPersistence().findByC_C(companyId, classNameId, start, end); 717 } 718 719 /** 720 * Returns an ordered range of all the websites where companyId = ? and classNameId = ?. 721 * 722 * <p> 723 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 724 * </p> 725 * 726 * @param companyId the company ID 727 * @param classNameId the class name ID 728 * @param start the lower bound of the range of websites 729 * @param end the upper bound of the range of websites (not inclusive) 730 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 731 * @return the ordered range of matching websites 732 */ 733 public static java.util.List<com.liferay.portal.model.Website> findByC_C( 734 long companyId, long classNameId, int start, int end, 735 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 736 return getPersistence() 737 .findByC_C(companyId, classNameId, start, end, 738 orderByComparator); 739 } 740 741 /** 742 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 743 * 744 * @param companyId the company ID 745 * @param classNameId the class name ID 746 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 747 * @return the first matching website 748 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 749 */ 750 public static com.liferay.portal.model.Website findByC_C_First( 751 long companyId, long classNameId, 752 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 753 throws com.liferay.portal.NoSuchWebsiteException { 754 return getPersistence() 755 .findByC_C_First(companyId, classNameId, orderByComparator); 756 } 757 758 /** 759 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 760 * 761 * @param companyId the company ID 762 * @param classNameId the class name ID 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the first matching website, or <code>null</code> if a matching website could not be found 765 */ 766 public static com.liferay.portal.model.Website fetchByC_C_First( 767 long companyId, long classNameId, 768 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 769 return getPersistence() 770 .fetchByC_C_First(companyId, classNameId, orderByComparator); 771 } 772 773 /** 774 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 775 * 776 * @param companyId the company ID 777 * @param classNameId the class name ID 778 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 779 * @return the last matching website 780 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 781 */ 782 public static com.liferay.portal.model.Website findByC_C_Last( 783 long companyId, long classNameId, 784 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 785 throws com.liferay.portal.NoSuchWebsiteException { 786 return getPersistence() 787 .findByC_C_Last(companyId, classNameId, orderByComparator); 788 } 789 790 /** 791 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 792 * 793 * @param companyId the company ID 794 * @param classNameId the class name ID 795 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 796 * @return the last matching website, or <code>null</code> if a matching website could not be found 797 */ 798 public static com.liferay.portal.model.Website fetchByC_C_Last( 799 long companyId, long classNameId, 800 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 801 return getPersistence() 802 .fetchByC_C_Last(companyId, classNameId, orderByComparator); 803 } 804 805 /** 806 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ?. 807 * 808 * @param websiteId the primary key of the current website 809 * @param companyId the company ID 810 * @param classNameId the class name ID 811 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 812 * @return the previous, current, and next website 813 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 814 */ 815 public static com.liferay.portal.model.Website[] findByC_C_PrevAndNext( 816 long websiteId, long companyId, long classNameId, 817 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 818 throws com.liferay.portal.NoSuchWebsiteException { 819 return getPersistence() 820 .findByC_C_PrevAndNext(websiteId, companyId, classNameId, 821 orderByComparator); 822 } 823 824 /** 825 * Removes all the websites where companyId = ? and classNameId = ? from the database. 826 * 827 * @param companyId the company ID 828 * @param classNameId the class name ID 829 */ 830 public static void removeByC_C(long companyId, long classNameId) { 831 getPersistence().removeByC_C(companyId, classNameId); 832 } 833 834 /** 835 * Returns the number of websites where companyId = ? and classNameId = ?. 836 * 837 * @param companyId the company ID 838 * @param classNameId the class name ID 839 * @return the number of matching websites 840 */ 841 public static int countByC_C(long companyId, long classNameId) { 842 return getPersistence().countByC_C(companyId, classNameId); 843 } 844 845 /** 846 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ?. 847 * 848 * @param companyId the company ID 849 * @param classNameId the class name ID 850 * @param classPK the class p k 851 * @return the matching websites 852 */ 853 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C( 854 long companyId, long classNameId, long classPK) { 855 return getPersistence().findByC_C_C(companyId, classNameId, classPK); 856 } 857 858 /** 859 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 860 * 861 * <p> 862 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 863 * </p> 864 * 865 * @param companyId the company ID 866 * @param classNameId the class name ID 867 * @param classPK the class p k 868 * @param start the lower bound of the range of websites 869 * @param end the upper bound of the range of websites (not inclusive) 870 * @return the range of matching websites 871 */ 872 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C( 873 long companyId, long classNameId, long classPK, int start, int end) { 874 return getPersistence() 875 .findByC_C_C(companyId, classNameId, classPK, start, end); 876 } 877 878 /** 879 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 880 * 881 * <p> 882 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 883 * </p> 884 * 885 * @param companyId the company ID 886 * @param classNameId the class name ID 887 * @param classPK the class p k 888 * @param start the lower bound of the range of websites 889 * @param end the upper bound of the range of websites (not inclusive) 890 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 891 * @return the ordered range of matching websites 892 */ 893 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C( 894 long companyId, long classNameId, long classPK, int start, int end, 895 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 896 return getPersistence() 897 .findByC_C_C(companyId, classNameId, classPK, start, end, 898 orderByComparator); 899 } 900 901 /** 902 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 903 * 904 * @param companyId the company ID 905 * @param classNameId the class name ID 906 * @param classPK the class p k 907 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 908 * @return the first matching website 909 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 910 */ 911 public static com.liferay.portal.model.Website findByC_C_C_First( 912 long companyId, long classNameId, long classPK, 913 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 914 throws com.liferay.portal.NoSuchWebsiteException { 915 return getPersistence() 916 .findByC_C_C_First(companyId, classNameId, classPK, 917 orderByComparator); 918 } 919 920 /** 921 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 922 * 923 * @param companyId the company ID 924 * @param classNameId the class name ID 925 * @param classPK the class p k 926 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 927 * @return the first matching website, or <code>null</code> if a matching website could not be found 928 */ 929 public static com.liferay.portal.model.Website fetchByC_C_C_First( 930 long companyId, long classNameId, long classPK, 931 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 932 return getPersistence() 933 .fetchByC_C_C_First(companyId, classNameId, classPK, 934 orderByComparator); 935 } 936 937 /** 938 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 939 * 940 * @param companyId the company ID 941 * @param classNameId the class name ID 942 * @param classPK the class p k 943 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 944 * @return the last matching website 945 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 946 */ 947 public static com.liferay.portal.model.Website findByC_C_C_Last( 948 long companyId, long classNameId, long classPK, 949 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 950 throws com.liferay.portal.NoSuchWebsiteException { 951 return getPersistence() 952 .findByC_C_C_Last(companyId, classNameId, classPK, 953 orderByComparator); 954 } 955 956 /** 957 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 958 * 959 * @param companyId the company ID 960 * @param classNameId the class name ID 961 * @param classPK the class p k 962 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 963 * @return the last matching website, or <code>null</code> if a matching website could not be found 964 */ 965 public static com.liferay.portal.model.Website fetchByC_C_C_Last( 966 long companyId, long classNameId, long classPK, 967 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 968 return getPersistence() 969 .fetchByC_C_C_Last(companyId, classNameId, classPK, 970 orderByComparator); 971 } 972 973 /** 974 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 975 * 976 * @param websiteId the primary key of the current website 977 * @param companyId the company ID 978 * @param classNameId the class name ID 979 * @param classPK the class p k 980 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 981 * @return the previous, current, and next website 982 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 983 */ 984 public static com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext( 985 long websiteId, long companyId, long classNameId, long classPK, 986 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 987 throws com.liferay.portal.NoSuchWebsiteException { 988 return getPersistence() 989 .findByC_C_C_PrevAndNext(websiteId, companyId, classNameId, 990 classPK, orderByComparator); 991 } 992 993 /** 994 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? from the database. 995 * 996 * @param companyId the company ID 997 * @param classNameId the class name ID 998 * @param classPK the class p k 999 */ 1000 public static void removeByC_C_C(long companyId, long classNameId, 1001 long classPK) { 1002 getPersistence().removeByC_C_C(companyId, classNameId, classPK); 1003 } 1004 1005 /** 1006 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ?. 1007 * 1008 * @param companyId the company ID 1009 * @param classNameId the class name ID 1010 * @param classPK the class p k 1011 * @return the number of matching websites 1012 */ 1013 public static int countByC_C_C(long companyId, long classNameId, 1014 long classPK) { 1015 return getPersistence().countByC_C_C(companyId, classNameId, classPK); 1016 } 1017 1018 /** 1019 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1020 * 1021 * @param companyId the company ID 1022 * @param classNameId the class name ID 1023 * @param classPK the class p k 1024 * @param primary the primary 1025 * @return the matching websites 1026 */ 1027 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 1028 long companyId, long classNameId, long classPK, boolean primary) { 1029 return getPersistence() 1030 .findByC_C_C_P(companyId, classNameId, classPK, primary); 1031 } 1032 1033 /** 1034 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1035 * 1036 * <p> 1037 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1038 * </p> 1039 * 1040 * @param companyId the company ID 1041 * @param classNameId the class name ID 1042 * @param classPK the class p k 1043 * @param primary the primary 1044 * @param start the lower bound of the range of websites 1045 * @param end the upper bound of the range of websites (not inclusive) 1046 * @return the range of matching websites 1047 */ 1048 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 1049 long companyId, long classNameId, long classPK, boolean primary, 1050 int start, int end) { 1051 return getPersistence() 1052 .findByC_C_C_P(companyId, classNameId, classPK, primary, 1053 start, end); 1054 } 1055 1056 /** 1057 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1058 * 1059 * <p> 1060 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1061 * </p> 1062 * 1063 * @param companyId the company ID 1064 * @param classNameId the class name ID 1065 * @param classPK the class p k 1066 * @param primary the primary 1067 * @param start the lower bound of the range of websites 1068 * @param end the upper bound of the range of websites (not inclusive) 1069 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1070 * @return the ordered range of matching websites 1071 */ 1072 public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 1073 long companyId, long classNameId, long classPK, boolean primary, 1074 int start, int end, 1075 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 1076 return getPersistence() 1077 .findByC_C_C_P(companyId, classNameId, classPK, primary, 1078 start, end, orderByComparator); 1079 } 1080 1081 /** 1082 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1083 * 1084 * @param companyId the company ID 1085 * @param classNameId the class name ID 1086 * @param classPK the class p k 1087 * @param primary the primary 1088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1089 * @return the first matching website 1090 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 1091 */ 1092 public static com.liferay.portal.model.Website findByC_C_C_P_First( 1093 long companyId, long classNameId, long classPK, boolean primary, 1094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 1095 throws com.liferay.portal.NoSuchWebsiteException { 1096 return getPersistence() 1097 .findByC_C_C_P_First(companyId, classNameId, classPK, 1098 primary, orderByComparator); 1099 } 1100 1101 /** 1102 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1103 * 1104 * @param companyId the company ID 1105 * @param classNameId the class name ID 1106 * @param classPK the class p k 1107 * @param primary the primary 1108 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1109 * @return the first matching website, or <code>null</code> if a matching website could not be found 1110 */ 1111 public static com.liferay.portal.model.Website fetchByC_C_C_P_First( 1112 long companyId, long classNameId, long classPK, boolean primary, 1113 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 1114 return getPersistence() 1115 .fetchByC_C_C_P_First(companyId, classNameId, classPK, 1116 primary, orderByComparator); 1117 } 1118 1119 /** 1120 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1121 * 1122 * @param companyId the company ID 1123 * @param classNameId the class name ID 1124 * @param classPK the class p k 1125 * @param primary the primary 1126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1127 * @return the last matching website 1128 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 1129 */ 1130 public static com.liferay.portal.model.Website findByC_C_C_P_Last( 1131 long companyId, long classNameId, long classPK, boolean primary, 1132 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 1133 throws com.liferay.portal.NoSuchWebsiteException { 1134 return getPersistence() 1135 .findByC_C_C_P_Last(companyId, classNameId, classPK, 1136 primary, orderByComparator); 1137 } 1138 1139 /** 1140 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1141 * 1142 * @param companyId the company ID 1143 * @param classNameId the class name ID 1144 * @param classPK the class p k 1145 * @param primary the primary 1146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1147 * @return the last matching website, or <code>null</code> if a matching website could not be found 1148 */ 1149 public static com.liferay.portal.model.Website fetchByC_C_C_P_Last( 1150 long companyId, long classNameId, long classPK, boolean primary, 1151 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 1152 return getPersistence() 1153 .fetchByC_C_C_P_Last(companyId, classNameId, classPK, 1154 primary, orderByComparator); 1155 } 1156 1157 /** 1158 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1159 * 1160 * @param websiteId the primary key of the current website 1161 * @param companyId the company ID 1162 * @param classNameId the class name ID 1163 * @param classPK the class p k 1164 * @param primary the primary 1165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1166 * @return the previous, current, and next website 1167 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 1168 */ 1169 public static com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext( 1170 long websiteId, long companyId, long classNameId, long classPK, 1171 boolean primary, 1172 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 1173 throws com.liferay.portal.NoSuchWebsiteException { 1174 return getPersistence() 1175 .findByC_C_C_P_PrevAndNext(websiteId, companyId, 1176 classNameId, classPK, primary, orderByComparator); 1177 } 1178 1179 /** 1180 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 1181 * 1182 * @param companyId the company ID 1183 * @param classNameId the class name ID 1184 * @param classPK the class p k 1185 * @param primary the primary 1186 */ 1187 public static void removeByC_C_C_P(long companyId, long classNameId, 1188 long classPK, boolean primary) { 1189 getPersistence() 1190 .removeByC_C_C_P(companyId, classNameId, classPK, primary); 1191 } 1192 1193 /** 1194 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 1195 * 1196 * @param companyId the company ID 1197 * @param classNameId the class name ID 1198 * @param classPK the class p k 1199 * @param primary the primary 1200 * @return the number of matching websites 1201 */ 1202 public static int countByC_C_C_P(long companyId, long classNameId, 1203 long classPK, boolean primary) { 1204 return getPersistence() 1205 .countByC_C_C_P(companyId, classNameId, classPK, primary); 1206 } 1207 1208 /** 1209 * Caches the website in the entity cache if it is enabled. 1210 * 1211 * @param website the website 1212 */ 1213 public static void cacheResult(com.liferay.portal.model.Website website) { 1214 getPersistence().cacheResult(website); 1215 } 1216 1217 /** 1218 * Caches the websites in the entity cache if it is enabled. 1219 * 1220 * @param websites the websites 1221 */ 1222 public static void cacheResult( 1223 java.util.List<com.liferay.portal.model.Website> websites) { 1224 getPersistence().cacheResult(websites); 1225 } 1226 1227 /** 1228 * Creates a new website with the primary key. Does not add the website to the database. 1229 * 1230 * @param websiteId the primary key for the new website 1231 * @return the new website 1232 */ 1233 public static com.liferay.portal.model.Website create(long websiteId) { 1234 return getPersistence().create(websiteId); 1235 } 1236 1237 /** 1238 * Removes the website with the primary key from the database. Also notifies the appropriate model listeners. 1239 * 1240 * @param websiteId the primary key of the website 1241 * @return the website that was removed 1242 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 1243 */ 1244 public static com.liferay.portal.model.Website remove(long websiteId) 1245 throws com.liferay.portal.NoSuchWebsiteException { 1246 return getPersistence().remove(websiteId); 1247 } 1248 1249 public static com.liferay.portal.model.Website updateImpl( 1250 com.liferay.portal.model.Website website) { 1251 return getPersistence().updateImpl(website); 1252 } 1253 1254 /** 1255 * Returns the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found. 1256 * 1257 * @param websiteId the primary key of the website 1258 * @return the website 1259 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 1260 */ 1261 public static com.liferay.portal.model.Website findByPrimaryKey( 1262 long websiteId) throws com.liferay.portal.NoSuchWebsiteException { 1263 return getPersistence().findByPrimaryKey(websiteId); 1264 } 1265 1266 /** 1267 * Returns the website with the primary key or returns <code>null</code> if it could not be found. 1268 * 1269 * @param websiteId the primary key of the website 1270 * @return the website, or <code>null</code> if a website with the primary key could not be found 1271 */ 1272 public static com.liferay.portal.model.Website fetchByPrimaryKey( 1273 long websiteId) { 1274 return getPersistence().fetchByPrimaryKey(websiteId); 1275 } 1276 1277 public static java.util.Map<java.io.Serializable, com.liferay.portal.model.Website> fetchByPrimaryKeys( 1278 java.util.Set<java.io.Serializable> primaryKeys) { 1279 return getPersistence().fetchByPrimaryKeys(primaryKeys); 1280 } 1281 1282 /** 1283 * Returns all the websites. 1284 * 1285 * @return the websites 1286 */ 1287 public static java.util.List<com.liferay.portal.model.Website> findAll() { 1288 return getPersistence().findAll(); 1289 } 1290 1291 /** 1292 * Returns a range of all the websites. 1293 * 1294 * <p> 1295 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1296 * </p> 1297 * 1298 * @param start the lower bound of the range of websites 1299 * @param end the upper bound of the range of websites (not inclusive) 1300 * @return the range of websites 1301 */ 1302 public static java.util.List<com.liferay.portal.model.Website> findAll( 1303 int start, int end) { 1304 return getPersistence().findAll(start, end); 1305 } 1306 1307 /** 1308 * Returns an ordered range of all the websites. 1309 * 1310 * <p> 1311 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1312 * </p> 1313 * 1314 * @param start the lower bound of the range of websites 1315 * @param end the upper bound of the range of websites (not inclusive) 1316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1317 * @return the ordered range of websites 1318 */ 1319 public static java.util.List<com.liferay.portal.model.Website> findAll( 1320 int start, int end, 1321 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) { 1322 return getPersistence().findAll(start, end, orderByComparator); 1323 } 1324 1325 /** 1326 * Removes all the websites from the database. 1327 */ 1328 public static void removeAll() { 1329 getPersistence().removeAll(); 1330 } 1331 1332 /** 1333 * Returns the number of websites. 1334 * 1335 * @return the number of websites 1336 */ 1337 public static int countAll() { 1338 return getPersistence().countAll(); 1339 } 1340 1341 public static WebsitePersistence getPersistence() { 1342 if (_persistence == null) { 1343 _persistence = (WebsitePersistence)PortalBeanLocatorUtil.locate(WebsitePersistence.class.getName()); 1344 1345 ReferenceRegistry.registerReference(WebsiteUtil.class, 1346 "_persistence"); 1347 } 1348 1349 return _persistence; 1350 } 1351 1352 /** 1353 * @deprecated As of 6.2.0 1354 */ 1355 @Deprecated 1356 public void setPersistence(WebsitePersistence persistence) { 1357 } 1358 1359 private static WebsitePersistence _persistence; 1360 }