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.model.Website; 020 021 /** 022 * The persistence interface for the website service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see WebsitePersistenceImpl 030 * @see WebsiteUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface WebsitePersistence extends BasePersistence<Website> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link WebsiteUtil} to access the website persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the websites where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching websites 046 */ 047 public java.util.List<com.liferay.portal.model.Website> findByUuid( 048 java.lang.String uuid); 049 050 /** 051 * Returns a range of all the websites where uuid = ?. 052 * 053 * <p> 054 * 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. 055 * </p> 056 * 057 * @param uuid the uuid 058 * @param start the lower bound of the range of websites 059 * @param end the upper bound of the range of websites (not inclusive) 060 * @return the range of matching websites 061 */ 062 public java.util.List<com.liferay.portal.model.Website> findByUuid( 063 java.lang.String uuid, int start, int end); 064 065 /** 066 * Returns an ordered range of all the websites where uuid = ?. 067 * 068 * <p> 069 * 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. 070 * </p> 071 * 072 * @param uuid the uuid 073 * @param start the lower bound of the range of websites 074 * @param end the upper bound of the range of websites (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching websites 077 */ 078 public java.util.List<com.liferay.portal.model.Website> findByUuid( 079 java.lang.String uuid, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 081 082 /** 083 * Returns the first website in the ordered set where uuid = ?. 084 * 085 * @param uuid the uuid 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching website 088 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 089 */ 090 public com.liferay.portal.model.Website findByUuid_First( 091 java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 093 throws com.liferay.portal.NoSuchWebsiteException; 094 095 /** 096 * Returns the first website in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching website, or <code>null</code> if a matching website could not be found 101 */ 102 public com.liferay.portal.model.Website fetchByUuid_First( 103 java.lang.String uuid, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 105 106 /** 107 * Returns the last website in the ordered set where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching website 112 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 113 */ 114 public com.liferay.portal.model.Website findByUuid_Last( 115 java.lang.String uuid, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 117 throws com.liferay.portal.NoSuchWebsiteException; 118 119 /** 120 * Returns the last website in the ordered set where uuid = ?. 121 * 122 * @param uuid the uuid 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching website, or <code>null</code> if a matching website could not be found 125 */ 126 public com.liferay.portal.model.Website fetchByUuid_Last( 127 java.lang.String uuid, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 129 130 /** 131 * Returns the websites before and after the current website in the ordered set where uuid = ?. 132 * 133 * @param websiteId the primary key of the current website 134 * @param uuid the uuid 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next website 137 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 138 */ 139 public com.liferay.portal.model.Website[] findByUuid_PrevAndNext( 140 long websiteId, java.lang.String uuid, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 142 throws com.liferay.portal.NoSuchWebsiteException; 143 144 /** 145 * Removes all the websites where uuid = ? from the database. 146 * 147 * @param uuid the uuid 148 */ 149 public void removeByUuid(java.lang.String uuid); 150 151 /** 152 * Returns the number of websites where uuid = ?. 153 * 154 * @param uuid the uuid 155 * @return the number of matching websites 156 */ 157 public int countByUuid(java.lang.String uuid); 158 159 /** 160 * Returns all the websites where uuid = ? and companyId = ?. 161 * 162 * @param uuid the uuid 163 * @param companyId the company ID 164 * @return the matching websites 165 */ 166 public java.util.List<com.liferay.portal.model.Website> findByUuid_C( 167 java.lang.String uuid, long companyId); 168 169 /** 170 * Returns a range of all the websites where uuid = ? and companyId = ?. 171 * 172 * <p> 173 * 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. 174 * </p> 175 * 176 * @param uuid the uuid 177 * @param companyId the company ID 178 * @param start the lower bound of the range of websites 179 * @param end the upper bound of the range of websites (not inclusive) 180 * @return the range of matching websites 181 */ 182 public java.util.List<com.liferay.portal.model.Website> findByUuid_C( 183 java.lang.String uuid, long companyId, int start, int end); 184 185 /** 186 * Returns an ordered range of all the websites where uuid = ? and companyId = ?. 187 * 188 * <p> 189 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 190 * </p> 191 * 192 * @param uuid the uuid 193 * @param companyId the company ID 194 * @param start the lower bound of the range of websites 195 * @param end the upper bound of the range of websites (not inclusive) 196 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 197 * @return the ordered range of matching websites 198 */ 199 public java.util.List<com.liferay.portal.model.Website> findByUuid_C( 200 java.lang.String uuid, long companyId, int start, int end, 201 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 202 203 /** 204 * Returns the first website in the ordered set where uuid = ? and companyId = ?. 205 * 206 * @param uuid the uuid 207 * @param companyId the company ID 208 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 209 * @return the first matching website 210 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 211 */ 212 public com.liferay.portal.model.Website findByUuid_C_First( 213 java.lang.String uuid, long companyId, 214 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 215 throws com.liferay.portal.NoSuchWebsiteException; 216 217 /** 218 * Returns the first website in the ordered set where uuid = ? and companyId = ?. 219 * 220 * @param uuid the uuid 221 * @param companyId the company ID 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the first matching website, or <code>null</code> if a matching website could not be found 224 */ 225 public com.liferay.portal.model.Website fetchByUuid_C_First( 226 java.lang.String uuid, long companyId, 227 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 228 229 /** 230 * Returns the last website in the ordered set where uuid = ? and companyId = ?. 231 * 232 * @param uuid the uuid 233 * @param companyId the company ID 234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 235 * @return the last matching website 236 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 237 */ 238 public com.liferay.portal.model.Website findByUuid_C_Last( 239 java.lang.String uuid, long companyId, 240 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 241 throws com.liferay.portal.NoSuchWebsiteException; 242 243 /** 244 * Returns the last website in the ordered set where uuid = ? and companyId = ?. 245 * 246 * @param uuid the uuid 247 * @param companyId the company ID 248 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 249 * @return the last matching website, or <code>null</code> if a matching website could not be found 250 */ 251 public com.liferay.portal.model.Website fetchByUuid_C_Last( 252 java.lang.String uuid, long companyId, 253 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 254 255 /** 256 * Returns the websites before and after the current website in the ordered set where uuid = ? and companyId = ?. 257 * 258 * @param websiteId the primary key of the current website 259 * @param uuid the uuid 260 * @param companyId the company ID 261 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 262 * @return the previous, current, and next website 263 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 264 */ 265 public com.liferay.portal.model.Website[] findByUuid_C_PrevAndNext( 266 long websiteId, java.lang.String uuid, long companyId, 267 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 268 throws com.liferay.portal.NoSuchWebsiteException; 269 270 /** 271 * Removes all the websites where uuid = ? and companyId = ? from the database. 272 * 273 * @param uuid the uuid 274 * @param companyId the company ID 275 */ 276 public void removeByUuid_C(java.lang.String uuid, long companyId); 277 278 /** 279 * Returns the number of websites where uuid = ? and companyId = ?. 280 * 281 * @param uuid the uuid 282 * @param companyId the company ID 283 * @return the number of matching websites 284 */ 285 public int countByUuid_C(java.lang.String uuid, long companyId); 286 287 /** 288 * Returns all the websites where companyId = ?. 289 * 290 * @param companyId the company ID 291 * @return the matching websites 292 */ 293 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 294 long companyId); 295 296 /** 297 * Returns a range of all the websites where companyId = ?. 298 * 299 * <p> 300 * 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. 301 * </p> 302 * 303 * @param companyId the company ID 304 * @param start the lower bound of the range of websites 305 * @param end the upper bound of the range of websites (not inclusive) 306 * @return the range of matching websites 307 */ 308 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 309 long companyId, int start, int end); 310 311 /** 312 * Returns an ordered range of all the websites where companyId = ?. 313 * 314 * <p> 315 * 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. 316 * </p> 317 * 318 * @param companyId the company ID 319 * @param start the lower bound of the range of websites 320 * @param end the upper bound of the range of websites (not inclusive) 321 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 322 * @return the ordered range of matching websites 323 */ 324 public java.util.List<com.liferay.portal.model.Website> findByCompanyId( 325 long companyId, int start, int end, 326 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 327 328 /** 329 * Returns the first website in the ordered set where companyId = ?. 330 * 331 * @param companyId the company ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the first matching website 334 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 335 */ 336 public com.liferay.portal.model.Website findByCompanyId_First( 337 long companyId, 338 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 339 throws com.liferay.portal.NoSuchWebsiteException; 340 341 /** 342 * Returns the first website in the ordered set where companyId = ?. 343 * 344 * @param companyId the company ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the first matching website, or <code>null</code> if a matching website could not be found 347 */ 348 public com.liferay.portal.model.Website fetchByCompanyId_First( 349 long companyId, 350 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 351 352 /** 353 * Returns the last website in the ordered set where companyId = ?. 354 * 355 * @param companyId the company ID 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the last matching website 358 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 359 */ 360 public com.liferay.portal.model.Website findByCompanyId_Last( 361 long companyId, 362 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 363 throws com.liferay.portal.NoSuchWebsiteException; 364 365 /** 366 * Returns the last website in the ordered set where companyId = ?. 367 * 368 * @param companyId the company ID 369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 370 * @return the last matching website, or <code>null</code> if a matching website could not be found 371 */ 372 public com.liferay.portal.model.Website fetchByCompanyId_Last( 373 long companyId, 374 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 375 376 /** 377 * Returns the websites before and after the current website in the ordered set where companyId = ?. 378 * 379 * @param websiteId the primary key of the current website 380 * @param companyId the company ID 381 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 382 * @return the previous, current, and next website 383 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 384 */ 385 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext( 386 long websiteId, long companyId, 387 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 388 throws com.liferay.portal.NoSuchWebsiteException; 389 390 /** 391 * Removes all the websites where companyId = ? from the database. 392 * 393 * @param companyId the company ID 394 */ 395 public void removeByCompanyId(long companyId); 396 397 /** 398 * Returns the number of websites where companyId = ?. 399 * 400 * @param companyId the company ID 401 * @return the number of matching websites 402 */ 403 public int countByCompanyId(long companyId); 404 405 /** 406 * Returns all the websites where userId = ?. 407 * 408 * @param userId the user ID 409 * @return the matching websites 410 */ 411 public java.util.List<com.liferay.portal.model.Website> findByUserId( 412 long userId); 413 414 /** 415 * Returns a range of all the websites where userId = ?. 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 userId the user 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 java.util.List<com.liferay.portal.model.Website> findByUserId( 427 long userId, int start, int end); 428 429 /** 430 * Returns an ordered range of all the websites where userId = ?. 431 * 432 * <p> 433 * 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. 434 * </p> 435 * 436 * @param userId the user ID 437 * @param start the lower bound of the range of websites 438 * @param end the upper bound of the range of websites (not inclusive) 439 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 440 * @return the ordered range of matching websites 441 */ 442 public java.util.List<com.liferay.portal.model.Website> findByUserId( 443 long userId, int start, int end, 444 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 445 446 /** 447 * Returns the first website in the ordered set where userId = ?. 448 * 449 * @param userId the user ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching website 452 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 453 */ 454 public com.liferay.portal.model.Website findByUserId_First(long userId, 455 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 456 throws com.liferay.portal.NoSuchWebsiteException; 457 458 /** 459 * Returns the first website in the ordered set where userId = ?. 460 * 461 * @param userId the user ID 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 463 * @return the first matching website, or <code>null</code> if a matching website could not be found 464 */ 465 public com.liferay.portal.model.Website fetchByUserId_First(long userId, 466 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 467 468 /** 469 * Returns the last website in the ordered set where userId = ?. 470 * 471 * @param userId the user ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching website 474 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 475 */ 476 public com.liferay.portal.model.Website findByUserId_Last(long userId, 477 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 478 throws com.liferay.portal.NoSuchWebsiteException; 479 480 /** 481 * Returns the last website in the ordered set where userId = ?. 482 * 483 * @param userId the user ID 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the last matching website, or <code>null</code> if a matching website could not be found 486 */ 487 public com.liferay.portal.model.Website fetchByUserId_Last(long userId, 488 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 489 490 /** 491 * Returns the websites before and after the current website in the ordered set where userId = ?. 492 * 493 * @param websiteId the primary key of the current website 494 * @param userId the user ID 495 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 496 * @return the previous, current, and next website 497 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 498 */ 499 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext( 500 long websiteId, long userId, 501 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 502 throws com.liferay.portal.NoSuchWebsiteException; 503 504 /** 505 * Removes all the websites where userId = ? from the database. 506 * 507 * @param userId the user ID 508 */ 509 public void removeByUserId(long userId); 510 511 /** 512 * Returns the number of websites where userId = ?. 513 * 514 * @param userId the user ID 515 * @return the number of matching websites 516 */ 517 public int countByUserId(long userId); 518 519 /** 520 * Returns all the websites where companyId = ? and classNameId = ?. 521 * 522 * @param companyId the company ID 523 * @param classNameId the class name ID 524 * @return the matching websites 525 */ 526 public java.util.List<com.liferay.portal.model.Website> findByC_C( 527 long companyId, long classNameId); 528 529 /** 530 * Returns a range of all the websites where companyId = ? and classNameId = ?. 531 * 532 * <p> 533 * 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. 534 * </p> 535 * 536 * @param companyId the company ID 537 * @param classNameId the class name ID 538 * @param start the lower bound of the range of websites 539 * @param end the upper bound of the range of websites (not inclusive) 540 * @return the range of matching websites 541 */ 542 public java.util.List<com.liferay.portal.model.Website> findByC_C( 543 long companyId, long classNameId, int start, int end); 544 545 /** 546 * Returns an ordered range of all the websites where companyId = ? and classNameId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param companyId the company ID 553 * @param classNameId the class name ID 554 * @param start the lower bound of the range of websites 555 * @param end the upper bound of the range of websites (not inclusive) 556 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 557 * @return the ordered range of matching websites 558 */ 559 public java.util.List<com.liferay.portal.model.Website> findByC_C( 560 long companyId, long classNameId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 562 563 /** 564 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 565 * 566 * @param companyId the company ID 567 * @param classNameId the class name ID 568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 569 * @return the first matching website 570 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 571 */ 572 public com.liferay.portal.model.Website findByC_C_First(long companyId, 573 long classNameId, 574 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 575 throws com.liferay.portal.NoSuchWebsiteException; 576 577 /** 578 * Returns the first website in the ordered set where companyId = ? and classNameId = ?. 579 * 580 * @param companyId the company ID 581 * @param classNameId the class name ID 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the first matching website, or <code>null</code> if a matching website could not be found 584 */ 585 public com.liferay.portal.model.Website fetchByC_C_First(long companyId, 586 long classNameId, 587 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 588 589 /** 590 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 591 * 592 * @param companyId the company ID 593 * @param classNameId the class name ID 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the last matching website 596 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 597 */ 598 public com.liferay.portal.model.Website findByC_C_Last(long companyId, 599 long classNameId, 600 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 601 throws com.liferay.portal.NoSuchWebsiteException; 602 603 /** 604 * Returns the last website in the ordered set where companyId = ? and classNameId = ?. 605 * 606 * @param companyId the company ID 607 * @param classNameId the class name ID 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the last matching website, or <code>null</code> if a matching website could not be found 610 */ 611 public com.liferay.portal.model.Website fetchByC_C_Last(long companyId, 612 long classNameId, 613 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 614 615 /** 616 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ?. 617 * 618 * @param websiteId the primary key of the current website 619 * @param companyId the company ID 620 * @param classNameId the class name ID 621 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 622 * @return the previous, current, and next website 623 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 624 */ 625 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext( 626 long websiteId, long companyId, long classNameId, 627 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 628 throws com.liferay.portal.NoSuchWebsiteException; 629 630 /** 631 * Removes all the websites where companyId = ? and classNameId = ? from the database. 632 * 633 * @param companyId the company ID 634 * @param classNameId the class name ID 635 */ 636 public void removeByC_C(long companyId, long classNameId); 637 638 /** 639 * Returns the number of websites where companyId = ? and classNameId = ?. 640 * 641 * @param companyId the company ID 642 * @param classNameId the class name ID 643 * @return the number of matching websites 644 */ 645 public int countByC_C(long companyId, long classNameId); 646 647 /** 648 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ?. 649 * 650 * @param companyId the company ID 651 * @param classNameId the class name ID 652 * @param classPK the class p k 653 * @return the matching websites 654 */ 655 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 656 long companyId, long classNameId, long classPK); 657 658 /** 659 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 660 * 661 * <p> 662 * 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. 663 * </p> 664 * 665 * @param companyId the company ID 666 * @param classNameId the class name ID 667 * @param classPK the class p k 668 * @param start the lower bound of the range of websites 669 * @param end the upper bound of the range of websites (not inclusive) 670 * @return the range of matching websites 671 */ 672 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 673 long companyId, long classNameId, long classPK, int start, int end); 674 675 /** 676 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ?. 677 * 678 * <p> 679 * 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. 680 * </p> 681 * 682 * @param companyId the company ID 683 * @param classNameId the class name ID 684 * @param classPK the class p k 685 * @param start the lower bound of the range of websites 686 * @param end the upper bound of the range of websites (not inclusive) 687 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 688 * @return the ordered range of matching websites 689 */ 690 public java.util.List<com.liferay.portal.model.Website> findByC_C_C( 691 long companyId, long classNameId, long classPK, int start, int end, 692 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 693 694 /** 695 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 696 * 697 * @param companyId the company ID 698 * @param classNameId the class name ID 699 * @param classPK the class p k 700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 701 * @return the first matching website 702 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 703 */ 704 public com.liferay.portal.model.Website findByC_C_C_First(long companyId, 705 long classNameId, long classPK, 706 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 707 throws com.liferay.portal.NoSuchWebsiteException; 708 709 /** 710 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 711 * 712 * @param companyId the company ID 713 * @param classNameId the class name ID 714 * @param classPK the class p k 715 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 716 * @return the first matching website, or <code>null</code> if a matching website could not be found 717 */ 718 public com.liferay.portal.model.Website fetchByC_C_C_First(long companyId, 719 long classNameId, long classPK, 720 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 721 722 /** 723 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 724 * 725 * @param companyId the company ID 726 * @param classNameId the class name ID 727 * @param classPK the class p k 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the last matching website 730 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 731 */ 732 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId, 733 long classNameId, long classPK, 734 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 735 throws com.liferay.portal.NoSuchWebsiteException; 736 737 /** 738 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 739 * 740 * @param companyId the company ID 741 * @param classNameId the class name ID 742 * @param classPK the class p k 743 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 744 * @return the last matching website, or <code>null</code> if a matching website could not be found 745 */ 746 public com.liferay.portal.model.Website fetchByC_C_C_Last(long companyId, 747 long classNameId, long classPK, 748 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 749 750 /** 751 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ?. 752 * 753 * @param websiteId the primary key of the current website 754 * @param companyId the company ID 755 * @param classNameId the class name ID 756 * @param classPK the class p k 757 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 758 * @return the previous, current, and next website 759 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 760 */ 761 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext( 762 long websiteId, long companyId, long classNameId, long classPK, 763 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 764 throws com.liferay.portal.NoSuchWebsiteException; 765 766 /** 767 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? from the database. 768 * 769 * @param companyId the company ID 770 * @param classNameId the class name ID 771 * @param classPK the class p k 772 */ 773 public void removeByC_C_C(long companyId, long classNameId, long classPK); 774 775 /** 776 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ?. 777 * 778 * @param companyId the company ID 779 * @param classNameId the class name ID 780 * @param classPK the class p k 781 * @return the number of matching websites 782 */ 783 public int countByC_C_C(long companyId, long classNameId, long classPK); 784 785 /** 786 * Returns all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 787 * 788 * @param companyId the company ID 789 * @param classNameId the class name ID 790 * @param classPK the class p k 791 * @param primary the primary 792 * @return the matching websites 793 */ 794 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 795 long companyId, long classNameId, long classPK, boolean primary); 796 797 /** 798 * Returns a range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 799 * 800 * <p> 801 * 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. 802 * </p> 803 * 804 * @param companyId the company ID 805 * @param classNameId the class name ID 806 * @param classPK the class p k 807 * @param primary the primary 808 * @param start the lower bound of the range of websites 809 * @param end the upper bound of the range of websites (not inclusive) 810 * @return the range of matching websites 811 */ 812 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 813 long companyId, long classNameId, long classPK, boolean primary, 814 int start, int end); 815 816 /** 817 * Returns an ordered range of all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 818 * 819 * <p> 820 * 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. 821 * </p> 822 * 823 * @param companyId the company ID 824 * @param classNameId the class name ID 825 * @param classPK the class p k 826 * @param primary the primary 827 * @param start the lower bound of the range of websites 828 * @param end the upper bound of the range of websites (not inclusive) 829 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 830 * @return the ordered range of matching websites 831 */ 832 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P( 833 long companyId, long classNameId, long classPK, boolean primary, 834 int start, int end, 835 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 836 837 /** 838 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 839 * 840 * @param companyId the company ID 841 * @param classNameId the class name ID 842 * @param classPK the class p k 843 * @param primary the primary 844 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 845 * @return the first matching website 846 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 847 */ 848 public com.liferay.portal.model.Website findByC_C_C_P_First( 849 long companyId, long classNameId, long classPK, boolean primary, 850 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 851 throws com.liferay.portal.NoSuchWebsiteException; 852 853 /** 854 * Returns the first website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 855 * 856 * @param companyId the company ID 857 * @param classNameId the class name ID 858 * @param classPK the class p k 859 * @param primary the primary 860 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 861 * @return the first matching website, or <code>null</code> if a matching website could not be found 862 */ 863 public com.liferay.portal.model.Website fetchByC_C_C_P_First( 864 long companyId, long classNameId, long classPK, boolean primary, 865 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 866 867 /** 868 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 869 * 870 * @param companyId the company ID 871 * @param classNameId the class name ID 872 * @param classPK the class p k 873 * @param primary the primary 874 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 875 * @return the last matching website 876 * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found 877 */ 878 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId, 879 long classNameId, long classPK, boolean primary, 880 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 881 throws com.liferay.portal.NoSuchWebsiteException; 882 883 /** 884 * Returns the last website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 885 * 886 * @param companyId the company ID 887 * @param classNameId the class name ID 888 * @param classPK the class p k 889 * @param primary the primary 890 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 891 * @return the last matching website, or <code>null</code> if a matching website could not be found 892 */ 893 public com.liferay.portal.model.Website fetchByC_C_C_P_Last( 894 long companyId, long classNameId, long classPK, boolean primary, 895 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 896 897 /** 898 * Returns the websites before and after the current website in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 899 * 900 * @param websiteId the primary key of the current website 901 * @param companyId the company ID 902 * @param classNameId the class name ID 903 * @param classPK the class p k 904 * @param primary the primary 905 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 906 * @return the previous, current, and next website 907 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 908 */ 909 public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext( 910 long websiteId, long companyId, long classNameId, long classPK, 911 boolean primary, 912 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator) 913 throws com.liferay.portal.NoSuchWebsiteException; 914 915 /** 916 * Removes all the websites where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. 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 */ 923 public void removeByC_C_C_P(long companyId, long classNameId, long classPK, 924 boolean primary); 925 926 /** 927 * Returns the number of websites where companyId = ? and classNameId = ? and classPK = ? and primary = ?. 928 * 929 * @param companyId the company ID 930 * @param classNameId the class name ID 931 * @param classPK the class p k 932 * @param primary the primary 933 * @return the number of matching websites 934 */ 935 public int countByC_C_C_P(long companyId, long classNameId, long classPK, 936 boolean primary); 937 938 /** 939 * Caches the website in the entity cache if it is enabled. 940 * 941 * @param website the website 942 */ 943 public void cacheResult(com.liferay.portal.model.Website website); 944 945 /** 946 * Caches the websites in the entity cache if it is enabled. 947 * 948 * @param websites the websites 949 */ 950 public void cacheResult( 951 java.util.List<com.liferay.portal.model.Website> websites); 952 953 /** 954 * Creates a new website with the primary key. Does not add the website to the database. 955 * 956 * @param websiteId the primary key for the new website 957 * @return the new website 958 */ 959 public com.liferay.portal.model.Website create(long websiteId); 960 961 /** 962 * Removes the website with the primary key from the database. Also notifies the appropriate model listeners. 963 * 964 * @param websiteId the primary key of the website 965 * @return the website that was removed 966 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 967 */ 968 public com.liferay.portal.model.Website remove(long websiteId) 969 throws com.liferay.portal.NoSuchWebsiteException; 970 971 public com.liferay.portal.model.Website updateImpl( 972 com.liferay.portal.model.Website website); 973 974 /** 975 * Returns the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found. 976 * 977 * @param websiteId the primary key of the website 978 * @return the website 979 * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found 980 */ 981 public com.liferay.portal.model.Website findByPrimaryKey(long websiteId) 982 throws com.liferay.portal.NoSuchWebsiteException; 983 984 /** 985 * Returns the website with the primary key or returns <code>null</code> if it could not be found. 986 * 987 * @param websiteId the primary key of the website 988 * @return the website, or <code>null</code> if a website with the primary key could not be found 989 */ 990 public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId); 991 992 @Override 993 public java.util.Map<java.io.Serializable, com.liferay.portal.model.Website> fetchByPrimaryKeys( 994 java.util.Set<java.io.Serializable> primaryKeys); 995 996 /** 997 * Returns all the websites. 998 * 999 * @return the websites 1000 */ 1001 public java.util.List<com.liferay.portal.model.Website> findAll(); 1002 1003 /** 1004 * Returns a range of all the websites. 1005 * 1006 * <p> 1007 * 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. 1008 * </p> 1009 * 1010 * @param start the lower bound of the range of websites 1011 * @param end the upper bound of the range of websites (not inclusive) 1012 * @return the range of websites 1013 */ 1014 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 1015 int end); 1016 1017 /** 1018 * Returns an ordered range of all the websites. 1019 * 1020 * <p> 1021 * 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. 1022 * </p> 1023 * 1024 * @param start the lower bound of the range of websites 1025 * @param end the upper bound of the range of websites (not inclusive) 1026 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1027 * @return the ordered range of websites 1028 */ 1029 public java.util.List<com.liferay.portal.model.Website> findAll(int start, 1030 int end, 1031 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Website> orderByComparator); 1032 1033 /** 1034 * Removes all the websites from the database. 1035 */ 1036 public void removeAll(); 1037 1038 /** 1039 * Returns the number of websites. 1040 * 1041 * @return the number of websites 1042 */ 1043 public int countAll(); 1044 }