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