001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.model.LayoutSetPrototype; 022 import com.liferay.portal.service.ServiceContext; 023 024 import java.util.List; 025 026 /** 027 * 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. 028 * 029 * <p> 030 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 031 * </p> 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see LayoutSetPrototypePersistence 039 * @see LayoutSetPrototypePersistenceImpl 040 * @generated 041 */ 042 public class LayoutSetPrototypeUtil { 043 /** 044 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 045 */ 046 public static void clearCache() { 047 getPersistence().clearCache(); 048 } 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 052 */ 053 public static void clearCache(LayoutSetPrototype layoutSetPrototype) { 054 getPersistence().clearCache(layoutSetPrototype); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 059 */ 060 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 061 throws SystemException { 062 return getPersistence().countWithDynamicQuery(dynamicQuery); 063 } 064 065 /** 066 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 067 */ 068 public static List<LayoutSetPrototype> findWithDynamicQuery( 069 DynamicQuery dynamicQuery) throws SystemException { 070 return getPersistence().findWithDynamicQuery(dynamicQuery); 071 } 072 073 /** 074 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 075 */ 076 public static List<LayoutSetPrototype> findWithDynamicQuery( 077 DynamicQuery dynamicQuery, int start, int end) 078 throws SystemException { 079 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 080 } 081 082 /** 083 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 084 */ 085 public static List<LayoutSetPrototype> findWithDynamicQuery( 086 DynamicQuery dynamicQuery, int start, int end, 087 OrderByComparator orderByComparator) throws SystemException { 088 return getPersistence() 089 .findWithDynamicQuery(dynamicQuery, start, end, 090 orderByComparator); 091 } 092 093 /** 094 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 095 */ 096 public static LayoutSetPrototype remove( 097 LayoutSetPrototype layoutSetPrototype) throws SystemException { 098 return getPersistence().remove(layoutSetPrototype); 099 } 100 101 /** 102 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 103 */ 104 public static LayoutSetPrototype update( 105 LayoutSetPrototype layoutSetPrototype, boolean merge) 106 throws SystemException { 107 return getPersistence().update(layoutSetPrototype, merge); 108 } 109 110 /** 111 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 112 */ 113 public static LayoutSetPrototype update( 114 LayoutSetPrototype layoutSetPrototype, boolean merge, 115 ServiceContext serviceContext) throws SystemException { 116 return getPersistence().update(layoutSetPrototype, merge, serviceContext); 117 } 118 119 /** 120 * Caches the layout set prototype in the entity cache if it is enabled. 121 * 122 * @param layoutSetPrototype the layout set prototype to cache 123 */ 124 public static void cacheResult( 125 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) { 126 getPersistence().cacheResult(layoutSetPrototype); 127 } 128 129 /** 130 * Caches the layout set prototypes in the entity cache if it is enabled. 131 * 132 * @param layoutSetPrototypes the layout set prototypes to cache 133 */ 134 public static void cacheResult( 135 java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) { 136 getPersistence().cacheResult(layoutSetPrototypes); 137 } 138 139 /** 140 * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database. 141 * 142 * @param layoutSetPrototypeId the primary key for the new layout set prototype 143 * @return the new layout set prototype 144 */ 145 public static com.liferay.portal.model.LayoutSetPrototype create( 146 long layoutSetPrototypeId) { 147 return getPersistence().create(layoutSetPrototypeId); 148 } 149 150 /** 151 * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners. 152 * 153 * @param layoutSetPrototypeId the primary key of the layout set prototype to remove 154 * @return the layout set prototype that was removed 155 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 156 * @throws SystemException if a system exception occurred 157 */ 158 public static com.liferay.portal.model.LayoutSetPrototype remove( 159 long layoutSetPrototypeId) 160 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 161 com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().remove(layoutSetPrototypeId); 163 } 164 165 public static com.liferay.portal.model.LayoutSetPrototype updateImpl( 166 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype, 167 boolean merge) 168 throws com.liferay.portal.kernel.exception.SystemException { 169 return getPersistence().updateImpl(layoutSetPrototype, merge); 170 } 171 172 /** 173 * Finds the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found. 174 * 175 * @param layoutSetPrototypeId the primary key of the layout set prototype to find 176 * @return the layout set prototype 177 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey( 181 long layoutSetPrototypeId) 182 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 183 com.liferay.portal.kernel.exception.SystemException { 184 return getPersistence().findByPrimaryKey(layoutSetPrototypeId); 185 } 186 187 /** 188 * Finds the layout set prototype with the primary key or returns <code>null</code> if it could not be found. 189 * 190 * @param layoutSetPrototypeId the primary key of the layout set prototype to find 191 * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey( 195 long layoutSetPrototypeId) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId); 198 } 199 200 /** 201 * Finds all the layout set prototypes where companyId = ?. 202 * 203 * @param companyId the company id to search with 204 * @return the matching layout set prototypes 205 * @throws SystemException if a system exception occurred 206 */ 207 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 208 long companyId) 209 throws com.liferay.portal.kernel.exception.SystemException { 210 return getPersistence().findByCompanyId(companyId); 211 } 212 213 /** 214 * Finds a range of all the layout set prototypes where companyId = ?. 215 * 216 * <p> 217 * 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. 218 * </p> 219 * 220 * @param companyId the company id to search with 221 * @param start the lower bound of the range of layout set prototypes to return 222 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 223 * @return the range of matching layout set prototypes 224 * @throws SystemException if a system exception occurred 225 */ 226 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 227 long companyId, int start, int end) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().findByCompanyId(companyId, start, end); 230 } 231 232 /** 233 * Finds an ordered range of all the layout set prototypes where companyId = ?. 234 * 235 * <p> 236 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 237 * </p> 238 * 239 * @param companyId the company id to search with 240 * @param start the lower bound of the range of layout set prototypes to return 241 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 242 * @param orderByComparator the comparator to order the results by 243 * @return the ordered range of matching layout set prototypes 244 * @throws SystemException if a system exception occurred 245 */ 246 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 247 long companyId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException { 250 return getPersistence() 251 .findByCompanyId(companyId, start, end, orderByComparator); 252 } 253 254 /** 255 * Finds the first layout set prototype in the ordered set where companyId = ?. 256 * 257 * <p> 258 * 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. 259 * </p> 260 * 261 * @param companyId the company id to search with 262 * @param orderByComparator the comparator to order the set by 263 * @return the first matching layout set prototype 264 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First( 268 long companyId, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 271 com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence() 273 .findByCompanyId_First(companyId, orderByComparator); 274 } 275 276 /** 277 * Finds the last layout set prototype in the ordered set where companyId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param companyId the company id to search with 284 * @param orderByComparator the comparator to order the set by 285 * @return the last matching layout set prototype 286 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last( 290 long companyId, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 293 com.liferay.portal.kernel.exception.SystemException { 294 return getPersistence() 295 .findByCompanyId_Last(companyId, orderByComparator); 296 } 297 298 /** 299 * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param layoutSetPrototypeId the primary key of the current layout set prototype 306 * @param companyId the company id to search with 307 * @param orderByComparator the comparator to order the set by 308 * @return the previous, current, and next layout set prototype 309 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext( 313 long layoutSetPrototypeId, long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 316 com.liferay.portal.kernel.exception.SystemException { 317 return getPersistence() 318 .findByCompanyId_PrevAndNext(layoutSetPrototypeId, 319 companyId, orderByComparator); 320 } 321 322 /** 323 * Filters by the user's permissions and finds all the layout set prototypes where companyId = ?. 324 * 325 * @param companyId the company id to search with 326 * @return the matching layout set prototypes that the user has permission to view 327 * @throws SystemException if a system exception occurred 328 */ 329 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 330 long companyId) 331 throws com.liferay.portal.kernel.exception.SystemException { 332 return getPersistence().filterFindByCompanyId(companyId); 333 } 334 335 /** 336 * Filters by the user's permissions and finds a range of all the layout set prototypes where companyId = ?. 337 * 338 * <p> 339 * 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. 340 * </p> 341 * 342 * @param companyId the company id to search with 343 * @param start the lower bound of the range of layout set prototypes to return 344 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 345 * @return the range of matching layout set prototypes that the user has permission to view 346 * @throws SystemException if a system exception occurred 347 */ 348 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 349 long companyId, int start, int end) 350 throws com.liferay.portal.kernel.exception.SystemException { 351 return getPersistence().filterFindByCompanyId(companyId, start, end); 352 } 353 354 /** 355 * Filters by the user's permissions and finds an ordered range of all the layout set prototypes where companyId = ?. 356 * 357 * <p> 358 * 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. 359 * </p> 360 * 361 * @param companyId the company id to search with 362 * @param start the lower bound of the range of layout set prototypes to return 363 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 364 * @param orderByComparator the comparator to order the results by 365 * @return the ordered range of matching layout set prototypes that the user has permission to view 366 * @throws SystemException if a system exception occurred 367 */ 368 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 369 long companyId, int start, int end, 370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence() 373 .filterFindByCompanyId(companyId, start, end, 374 orderByComparator); 375 } 376 377 /** 378 * Finds all the layout set prototypes where companyId = ? and active = ?. 379 * 380 * @param companyId the company id to search with 381 * @param active the active to search with 382 * @return the matching layout set prototypes 383 * @throws SystemException if a system exception occurred 384 */ 385 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 386 long companyId, boolean active) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return getPersistence().findByC_A(companyId, active); 389 } 390 391 /** 392 * Finds a range of all the layout set prototypes where companyId = ? and active = ?. 393 * 394 * <p> 395 * 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. 396 * </p> 397 * 398 * @param companyId the company id to search with 399 * @param active the active to search with 400 * @param start the lower bound of the range of layout set prototypes to return 401 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 402 * @return the range of matching layout set prototypes 403 * @throws SystemException if a system exception occurred 404 */ 405 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 406 long companyId, boolean active, int start, int end) 407 throws com.liferay.portal.kernel.exception.SystemException { 408 return getPersistence().findByC_A(companyId, active, start, end); 409 } 410 411 /** 412 * Finds an ordered range of all the layout set prototypes where companyId = ? and active = ?. 413 * 414 * <p> 415 * 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. 416 * </p> 417 * 418 * @param companyId the company id to search with 419 * @param active the active to search with 420 * @param start the lower bound of the range of layout set prototypes to return 421 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 422 * @param orderByComparator the comparator to order the results by 423 * @return the ordered range of matching layout set prototypes 424 * @throws SystemException if a system exception occurred 425 */ 426 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 427 long companyId, boolean active, int start, int end, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return getPersistence() 431 .findByC_A(companyId, active, start, end, orderByComparator); 432 } 433 434 /** 435 * Finds the first layout set prototype in the ordered set where companyId = ? and active = ?. 436 * 437 * <p> 438 * 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. 439 * </p> 440 * 441 * @param companyId the company id to search with 442 * @param active the active to search with 443 * @param orderByComparator the comparator to order the set by 444 * @return the first matching layout set prototype 445 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First( 449 long companyId, boolean active, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 452 com.liferay.portal.kernel.exception.SystemException { 453 return getPersistence() 454 .findByC_A_First(companyId, active, orderByComparator); 455 } 456 457 /** 458 * Finds the last layout set prototype in the ordered set where companyId = ? and active = ?. 459 * 460 * <p> 461 * 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. 462 * </p> 463 * 464 * @param companyId the company id to search with 465 * @param active the active to search with 466 * @param orderByComparator the comparator to order the set by 467 * @return the last matching layout set prototype 468 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last( 472 long companyId, boolean active, 473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 474 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 475 com.liferay.portal.kernel.exception.SystemException { 476 return getPersistence() 477 .findByC_A_Last(companyId, active, orderByComparator); 478 } 479 480 /** 481 * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?. 482 * 483 * <p> 484 * 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. 485 * </p> 486 * 487 * @param layoutSetPrototypeId the primary key of the current layout set prototype 488 * @param companyId the company id to search with 489 * @param active the active to search with 490 * @param orderByComparator the comparator to order the set by 491 * @return the previous, current, and next layout set prototype 492 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext( 496 long layoutSetPrototypeId, long companyId, boolean active, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 499 com.liferay.portal.kernel.exception.SystemException { 500 return getPersistence() 501 .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId, 502 active, orderByComparator); 503 } 504 505 /** 506 * Filters by the user's permissions and finds all the layout set prototypes where companyId = ? and active = ?. 507 * 508 * @param companyId the company id to search with 509 * @param active the active to search with 510 * @return the matching layout set prototypes that the user has permission to view 511 * @throws SystemException if a system exception occurred 512 */ 513 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 514 long companyId, boolean active) 515 throws com.liferay.portal.kernel.exception.SystemException { 516 return getPersistence().filterFindByC_A(companyId, active); 517 } 518 519 /** 520 * Filters by the user's permissions and finds a range of all the layout set prototypes where companyId = ? and active = ?. 521 * 522 * <p> 523 * 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. 524 * </p> 525 * 526 * @param companyId the company id to search with 527 * @param active the active to search with 528 * @param start the lower bound of the range of layout set prototypes to return 529 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 530 * @return the range of matching layout set prototypes that the user has permission to view 531 * @throws SystemException if a system exception occurred 532 */ 533 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 534 long companyId, boolean active, int start, int end) 535 throws com.liferay.portal.kernel.exception.SystemException { 536 return getPersistence().filterFindByC_A(companyId, active, start, end); 537 } 538 539 /** 540 * Filters by the user's permissions and finds an ordered range of all the layout set prototypes where companyId = ? and active = ?. 541 * 542 * <p> 543 * 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. 544 * </p> 545 * 546 * @param companyId the company id to search with 547 * @param active the active to search with 548 * @param start the lower bound of the range of layout set prototypes to return 549 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 550 * @param orderByComparator the comparator to order the results by 551 * @return the ordered range of matching layout set prototypes that the user has permission to view 552 * @throws SystemException if a system exception occurred 553 */ 554 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 555 long companyId, boolean active, int start, int end, 556 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 557 throws com.liferay.portal.kernel.exception.SystemException { 558 return getPersistence() 559 .filterFindByC_A(companyId, active, start, end, 560 orderByComparator); 561 } 562 563 /** 564 * Finds all the layout set prototypes. 565 * 566 * @return the layout set prototypes 567 * @throws SystemException if a system exception occurred 568 */ 569 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll() 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence().findAll(); 572 } 573 574 /** 575 * Finds a range of all the layout set prototypes. 576 * 577 * <p> 578 * 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. 579 * </p> 580 * 581 * @param start the lower bound of the range of layout set prototypes to return 582 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 583 * @return the range of layout set prototypes 584 * @throws SystemException if a system exception occurred 585 */ 586 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 587 int start, int end) 588 throws com.liferay.portal.kernel.exception.SystemException { 589 return getPersistence().findAll(start, end); 590 } 591 592 /** 593 * Finds an ordered range of all the layout set prototypes. 594 * 595 * <p> 596 * 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. 597 * </p> 598 * 599 * @param start the lower bound of the range of layout set prototypes to return 600 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 601 * @param orderByComparator the comparator to order the results by 602 * @return the ordered range of layout set prototypes 603 * @throws SystemException if a system exception occurred 604 */ 605 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 606 int start, int end, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence().findAll(start, end, orderByComparator); 610 } 611 612 /** 613 * Removes all the layout set prototypes where companyId = ? from the database. 614 * 615 * @param companyId the company id to search with 616 * @throws SystemException if a system exception occurred 617 */ 618 public static void removeByCompanyId(long companyId) 619 throws com.liferay.portal.kernel.exception.SystemException { 620 getPersistence().removeByCompanyId(companyId); 621 } 622 623 /** 624 * Removes all the layout set prototypes where companyId = ? and active = ? from the database. 625 * 626 * @param companyId the company id to search with 627 * @param active the active to search with 628 * @throws SystemException if a system exception occurred 629 */ 630 public static void removeByC_A(long companyId, boolean active) 631 throws com.liferay.portal.kernel.exception.SystemException { 632 getPersistence().removeByC_A(companyId, active); 633 } 634 635 /** 636 * Removes all the layout set prototypes from the database. 637 * 638 * @throws SystemException if a system exception occurred 639 */ 640 public static void removeAll() 641 throws com.liferay.portal.kernel.exception.SystemException { 642 getPersistence().removeAll(); 643 } 644 645 /** 646 * Counts all the layout set prototypes where companyId = ?. 647 * 648 * @param companyId the company id to search with 649 * @return the number of matching layout set prototypes 650 * @throws SystemException if a system exception occurred 651 */ 652 public static int countByCompanyId(long companyId) 653 throws com.liferay.portal.kernel.exception.SystemException { 654 return getPersistence().countByCompanyId(companyId); 655 } 656 657 /** 658 * Filters by the user's permissions and counts all the layout set prototypes where companyId = ?. 659 * 660 * @param companyId the company id to search with 661 * @return the number of matching layout set prototypes that the user has permission to view 662 * @throws SystemException if a system exception occurred 663 */ 664 public static int filterCountByCompanyId(long companyId) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 return getPersistence().filterCountByCompanyId(companyId); 667 } 668 669 /** 670 * Counts all the layout set prototypes where companyId = ? and active = ?. 671 * 672 * @param companyId the company id to search with 673 * @param active the active to search with 674 * @return the number of matching layout set prototypes 675 * @throws SystemException if a system exception occurred 676 */ 677 public static int countByC_A(long companyId, boolean active) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().countByC_A(companyId, active); 680 } 681 682 /** 683 * Filters by the user's permissions and counts all the layout set prototypes where companyId = ? and active = ?. 684 * 685 * @param companyId the company id to search with 686 * @param active the active to search with 687 * @return the number of matching layout set prototypes that the user has permission to view 688 * @throws SystemException if a system exception occurred 689 */ 690 public static int filterCountByC_A(long companyId, boolean active) 691 throws com.liferay.portal.kernel.exception.SystemException { 692 return getPersistence().filterCountByC_A(companyId, active); 693 } 694 695 /** 696 * Counts all the layout set prototypes. 697 * 698 * @return the number of layout set prototypes 699 * @throws SystemException if a system exception occurred 700 */ 701 public static int countAll() 702 throws com.liferay.portal.kernel.exception.SystemException { 703 return getPersistence().countAll(); 704 } 705 706 public static LayoutSetPrototypePersistence getPersistence() { 707 if (_persistence == null) { 708 _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName()); 709 } 710 711 return _persistence; 712 } 713 714 public void setPersistence(LayoutSetPrototypePersistence persistence) { 715 _persistence = persistence; 716 } 717 718 private static LayoutSetPrototypePersistence _persistence; 719 }