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