001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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#remove(com.liferay.portal.model.BaseModel) 098 */ 099 public static LayoutSetPrototype remove( 100 LayoutSetPrototype layoutSetPrototype) throws SystemException { 101 return getPersistence().remove(layoutSetPrototype); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static LayoutSetPrototype update( 108 LayoutSetPrototype layoutSetPrototype, boolean merge) 109 throws SystemException { 110 return getPersistence().update(layoutSetPrototype, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static LayoutSetPrototype update( 117 LayoutSetPrototype layoutSetPrototype, boolean merge, 118 ServiceContext serviceContext) throws SystemException { 119 return getPersistence().update(layoutSetPrototype, merge, serviceContext); 120 } 121 122 /** 123 * Caches the layout set prototype in the entity cache if it is enabled. 124 * 125 * @param layoutSetPrototype the layout set prototype to cache 126 */ 127 public static void cacheResult( 128 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) { 129 getPersistence().cacheResult(layoutSetPrototype); 130 } 131 132 /** 133 * Caches the layout set prototypes in the entity cache if it is enabled. 134 * 135 * @param layoutSetPrototypes the layout set prototypes to cache 136 */ 137 public static void cacheResult( 138 java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) { 139 getPersistence().cacheResult(layoutSetPrototypes); 140 } 141 142 /** 143 * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database. 144 * 145 * @param layoutSetPrototypeId the primary key for the new layout set prototype 146 * @return the new layout set prototype 147 */ 148 public static com.liferay.portal.model.LayoutSetPrototype create( 149 long layoutSetPrototypeId) { 150 return getPersistence().create(layoutSetPrototypeId); 151 } 152 153 /** 154 * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners. 155 * 156 * @param layoutSetPrototypeId the primary key of the layout set prototype to remove 157 * @return the layout set prototype that was removed 158 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public static com.liferay.portal.model.LayoutSetPrototype remove( 162 long layoutSetPrototypeId) 163 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 164 com.liferay.portal.kernel.exception.SystemException { 165 return getPersistence().remove(layoutSetPrototypeId); 166 } 167 168 public static com.liferay.portal.model.LayoutSetPrototype updateImpl( 169 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype, 170 boolean merge) 171 throws com.liferay.portal.kernel.exception.SystemException { 172 return getPersistence().updateImpl(layoutSetPrototype, merge); 173 } 174 175 /** 176 * Finds the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found. 177 * 178 * @param layoutSetPrototypeId the primary key of the layout set prototype to find 179 * @return the layout set prototype 180 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey( 184 long layoutSetPrototypeId) 185 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 186 com.liferay.portal.kernel.exception.SystemException { 187 return getPersistence().findByPrimaryKey(layoutSetPrototypeId); 188 } 189 190 /** 191 * Finds the layout set prototype with the primary key or returns <code>null</code> if it could not be found. 192 * 193 * @param layoutSetPrototypeId the primary key of the layout set prototype to find 194 * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey( 198 long layoutSetPrototypeId) 199 throws com.liferay.portal.kernel.exception.SystemException { 200 return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId); 201 } 202 203 /** 204 * Finds all the layout set prototypes where companyId = ?. 205 * 206 * @param companyId the company ID to search with 207 * @return the matching layout set prototypes 208 * @throws SystemException if a system exception occurred 209 */ 210 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 211 long companyId) 212 throws com.liferay.portal.kernel.exception.SystemException { 213 return getPersistence().findByCompanyId(companyId); 214 } 215 216 /** 217 * Finds a range of all the layout set prototypes where companyId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param companyId the company ID to search with 224 * @param start the lower bound of the range of layout set prototypes to return 225 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 226 * @return the range of matching layout set prototypes 227 * @throws SystemException if a system exception occurred 228 */ 229 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 230 long companyId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException { 232 return getPersistence().findByCompanyId(companyId, start, end); 233 } 234 235 /** 236 * Finds an ordered range of all the layout set prototypes where companyId = ?. 237 * 238 * <p> 239 * 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. 240 * </p> 241 * 242 * @param companyId the company ID to search with 243 * @param start the lower bound of the range of layout set prototypes to return 244 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 245 * @param orderByComparator the comparator to order the results by 246 * @return the ordered range of matching layout set prototypes 247 * @throws SystemException if a system exception occurred 248 */ 249 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 250 long companyId, int start, int end, 251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 252 throws com.liferay.portal.kernel.exception.SystemException { 253 return getPersistence() 254 .findByCompanyId(companyId, start, end, orderByComparator); 255 } 256 257 /** 258 * Finds the first layout set prototype in the ordered set where companyId = ?. 259 * 260 * <p> 261 * 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. 262 * </p> 263 * 264 * @param companyId the company ID to search with 265 * @param orderByComparator the comparator to order the set by 266 * @return the first matching layout set prototype 267 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First( 271 long companyId, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 274 com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence() 276 .findByCompanyId_First(companyId, orderByComparator); 277 } 278 279 /** 280 * Finds the last layout set prototype in the ordered set where companyId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param companyId the company ID to search with 287 * @param orderByComparator the comparator to order the set by 288 * @return the last matching layout set prototype 289 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 290 * @throws SystemException if a system exception occurred 291 */ 292 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last( 293 long companyId, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 296 com.liferay.portal.kernel.exception.SystemException { 297 return getPersistence() 298 .findByCompanyId_Last(companyId, orderByComparator); 299 } 300 301 /** 302 * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?. 303 * 304 * <p> 305 * 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. 306 * </p> 307 * 308 * @param layoutSetPrototypeId the primary key of the current layout set prototype 309 * @param companyId the company ID to search with 310 * @param orderByComparator the comparator to order the set by 311 * @return the previous, current, and next layout set prototype 312 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 313 * @throws SystemException if a system exception occurred 314 */ 315 public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext( 316 long layoutSetPrototypeId, long companyId, 317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 318 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 319 com.liferay.portal.kernel.exception.SystemException { 320 return getPersistence() 321 .findByCompanyId_PrevAndNext(layoutSetPrototypeId, 322 companyId, orderByComparator); 323 } 324 325 /** 326 * Filters by the user's permissions and finds all the layout set prototypes where companyId = ?. 327 * 328 * @param companyId the company ID to search with 329 * @return the matching layout set prototypes that the user has permission to view 330 * @throws SystemException if a system exception occurred 331 */ 332 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 333 long companyId) 334 throws com.liferay.portal.kernel.exception.SystemException { 335 return getPersistence().filterFindByCompanyId(companyId); 336 } 337 338 /** 339 * Filters by the user's permissions and finds a range of all the layout set prototypes where companyId = ?. 340 * 341 * <p> 342 * 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. 343 * </p> 344 * 345 * @param companyId the company ID to search with 346 * @param start the lower bound of the range of layout set prototypes to return 347 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 348 * @return the range of matching layout set prototypes that the user has permission to view 349 * @throws SystemException if a system exception occurred 350 */ 351 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 352 long companyId, int start, int end) 353 throws com.liferay.portal.kernel.exception.SystemException { 354 return getPersistence().filterFindByCompanyId(companyId, start, end); 355 } 356 357 /** 358 * Filters by the user's permissions and finds an ordered range of all the layout set prototypes where companyId = ?. 359 * 360 * <p> 361 * 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. 362 * </p> 363 * 364 * @param companyId the company ID to search with 365 * @param start the lower bound of the range of layout set prototypes to return 366 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 367 * @param orderByComparator the comparator to order the results by 368 * @return the ordered range of matching layout set prototypes that the user has permission to view 369 * @throws SystemException if a system exception occurred 370 */ 371 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 372 long companyId, int start, int end, 373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence() 376 .filterFindByCompanyId(companyId, start, end, 377 orderByComparator); 378 } 379 380 /** 381 * Filters the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param layoutSetPrototypeId the primary key of the current layout set prototype 388 * @param companyId the company ID to search with 389 * @param orderByComparator the comparator to order the set by 390 * @return the previous, current, and next layout set prototype 391 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByCompanyId_PrevAndNext( 395 long layoutSetPrototypeId, long companyId, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 398 com.liferay.portal.kernel.exception.SystemException { 399 return getPersistence() 400 .filterFindByCompanyId_PrevAndNext(layoutSetPrototypeId, 401 companyId, orderByComparator); 402 } 403 404 /** 405 * Finds all the layout set prototypes where companyId = ? and active = ?. 406 * 407 * @param companyId the company ID to search with 408 * @param active the active to search with 409 * @return the matching layout set prototypes 410 * @throws SystemException if a system exception occurred 411 */ 412 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 413 long companyId, boolean active) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getPersistence().findByC_A(companyId, active); 416 } 417 418 /** 419 * Finds a range of all the layout set prototypes where companyId = ? and active = ?. 420 * 421 * <p> 422 * 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. 423 * </p> 424 * 425 * @param companyId the company ID to search with 426 * @param active the active to search with 427 * @param start the lower bound of the range of layout set prototypes to return 428 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 429 * @return the range of matching layout set prototypes 430 * @throws SystemException if a system exception occurred 431 */ 432 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 433 long companyId, boolean active, int start, int end) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence().findByC_A(companyId, active, start, end); 436 } 437 438 /** 439 * Finds an ordered range of all the layout set prototypes where companyId = ? and active = ?. 440 * 441 * <p> 442 * 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. 443 * </p> 444 * 445 * @param companyId the company ID to search with 446 * @param active the active to search with 447 * @param start the lower bound of the range of layout set prototypes to return 448 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 449 * @param orderByComparator the comparator to order the results by 450 * @return the ordered range of matching layout set prototypes 451 * @throws SystemException if a system exception occurred 452 */ 453 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 454 long companyId, boolean active, int start, int end, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return getPersistence() 458 .findByC_A(companyId, active, start, end, orderByComparator); 459 } 460 461 /** 462 * Finds the first layout set prototype in the ordered set where companyId = ? and active = ?. 463 * 464 * <p> 465 * 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. 466 * </p> 467 * 468 * @param companyId the company ID to search with 469 * @param active the active to search with 470 * @param orderByComparator the comparator to order the set by 471 * @return the first matching layout set prototype 472 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First( 476 long companyId, boolean active, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 479 com.liferay.portal.kernel.exception.SystemException { 480 return getPersistence() 481 .findByC_A_First(companyId, active, orderByComparator); 482 } 483 484 /** 485 * Finds the last layout set prototype in the ordered set where companyId = ? and active = ?. 486 * 487 * <p> 488 * 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. 489 * </p> 490 * 491 * @param companyId the company ID to search with 492 * @param active the active to search with 493 * @param orderByComparator the comparator to order the set by 494 * @return the last matching layout set prototype 495 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last( 499 long companyId, boolean active, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 502 com.liferay.portal.kernel.exception.SystemException { 503 return getPersistence() 504 .findByC_A_Last(companyId, active, orderByComparator); 505 } 506 507 /** 508 * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?. 509 * 510 * <p> 511 * 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. 512 * </p> 513 * 514 * @param layoutSetPrototypeId the primary key of the current layout set prototype 515 * @param companyId the company ID to search with 516 * @param active the active to search with 517 * @param orderByComparator the comparator to order the set by 518 * @return the previous, current, and next layout set prototype 519 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 520 * @throws SystemException if a system exception occurred 521 */ 522 public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext( 523 long layoutSetPrototypeId, long companyId, boolean active, 524 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 525 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 526 com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence() 528 .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId, 529 active, orderByComparator); 530 } 531 532 /** 533 * Filters by the user's permissions and finds all the layout set prototypes where companyId = ? and active = ?. 534 * 535 * @param companyId the company ID to search with 536 * @param active the active to search with 537 * @return the 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> filterFindByC_A( 541 long companyId, boolean active) 542 throws com.liferay.portal.kernel.exception.SystemException { 543 return getPersistence().filterFindByC_A(companyId, active); 544 } 545 546 /** 547 * Filters by the user's permissions and finds a range of all the layout set prototypes where companyId = ? and active = ?. 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. 551 * </p> 552 * 553 * @param companyId the company ID to search with 554 * @param active the active to search with 555 * @param start the lower bound of the range of layout set prototypes to return 556 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 557 * @return the range of matching layout set prototypes that the user has permission to view 558 * @throws SystemException if a system exception occurred 559 */ 560 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 561 long companyId, boolean active, int start, int end) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence().filterFindByC_A(companyId, active, start, end); 564 } 565 566 /** 567 * Filters by the user's permissions and finds an ordered range of all the layout set prototypes where companyId = ? and active = ?. 568 * 569 * <p> 570 * 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. 571 * </p> 572 * 573 * @param companyId the company ID to search with 574 * @param active the active to search with 575 * @param start the lower bound of the range of layout set prototypes to return 576 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 577 * @param orderByComparator the comparator to order the results by 578 * @return the ordered range of matching layout set prototypes that the user has permission to view 579 * @throws SystemException if a system exception occurred 580 */ 581 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 582 long companyId, boolean active, int start, int end, 583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 584 throws com.liferay.portal.kernel.exception.SystemException { 585 return getPersistence() 586 .filterFindByC_A(companyId, active, start, end, 587 orderByComparator); 588 } 589 590 /** 591 * Filters the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param layoutSetPrototypeId the primary key of the current layout set prototype 598 * @param companyId the company ID to search with 599 * @param active the active to search with 600 * @param orderByComparator the comparator to order the set by 601 * @return the previous, current, and next layout set prototype 602 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByC_A_PrevAndNext( 606 long layoutSetPrototypeId, long companyId, boolean active, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 609 com.liferay.portal.kernel.exception.SystemException { 610 return getPersistence() 611 .filterFindByC_A_PrevAndNext(layoutSetPrototypeId, 612 companyId, active, orderByComparator); 613 } 614 615 /** 616 * Finds all the layout set prototypes. 617 * 618 * @return the layout set prototypes 619 * @throws SystemException if a system exception occurred 620 */ 621 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll() 622 throws com.liferay.portal.kernel.exception.SystemException { 623 return getPersistence().findAll(); 624 } 625 626 /** 627 * Finds a range of all the layout set prototypes. 628 * 629 * <p> 630 * 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. 631 * </p> 632 * 633 * @param start the lower bound of the range of layout set prototypes to return 634 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 635 * @return the range of layout set prototypes 636 * @throws SystemException if a system exception occurred 637 */ 638 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 639 int start, int end) 640 throws com.liferay.portal.kernel.exception.SystemException { 641 return getPersistence().findAll(start, end); 642 } 643 644 /** 645 * Finds an ordered range of all the layout set prototypes. 646 * 647 * <p> 648 * 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. 649 * </p> 650 * 651 * @param start the lower bound of the range of layout set prototypes to return 652 * @param end the upper bound of the range of layout set prototypes to return (not inclusive) 653 * @param orderByComparator the comparator to order the results by 654 * @return the ordered range of layout set prototypes 655 * @throws SystemException if a system exception occurred 656 */ 657 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 658 int start, int end, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException { 661 return getPersistence().findAll(start, end, orderByComparator); 662 } 663 664 /** 665 * Removes all the layout set prototypes where companyId = ? from the database. 666 * 667 * @param companyId the company ID to search with 668 * @throws SystemException if a system exception occurred 669 */ 670 public static void removeByCompanyId(long companyId) 671 throws com.liferay.portal.kernel.exception.SystemException { 672 getPersistence().removeByCompanyId(companyId); 673 } 674 675 /** 676 * Removes all the layout set prototypes where companyId = ? and active = ? from the database. 677 * 678 * @param companyId the company ID to search with 679 * @param active the active to search with 680 * @throws SystemException if a system exception occurred 681 */ 682 public static void removeByC_A(long companyId, boolean active) 683 throws com.liferay.portal.kernel.exception.SystemException { 684 getPersistence().removeByC_A(companyId, active); 685 } 686 687 /** 688 * Removes all the layout set prototypes from the database. 689 * 690 * @throws SystemException if a system exception occurred 691 */ 692 public static void removeAll() 693 throws com.liferay.portal.kernel.exception.SystemException { 694 getPersistence().removeAll(); 695 } 696 697 /** 698 * Counts all the layout set prototypes where companyId = ?. 699 * 700 * @param companyId the company ID to search with 701 * @return the number of matching layout set prototypes 702 * @throws SystemException if a system exception occurred 703 */ 704 public static int countByCompanyId(long companyId) 705 throws com.liferay.portal.kernel.exception.SystemException { 706 return getPersistence().countByCompanyId(companyId); 707 } 708 709 /** 710 * Filters by the user's permissions and counts all the layout set prototypes where companyId = ?. 711 * 712 * @param companyId the company ID to search with 713 * @return the number of matching layout set prototypes that the user has permission to view 714 * @throws SystemException if a system exception occurred 715 */ 716 public static int filterCountByCompanyId(long companyId) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 return getPersistence().filterCountByCompanyId(companyId); 719 } 720 721 /** 722 * Counts all the layout set prototypes where companyId = ? and active = ?. 723 * 724 * @param companyId the company ID to search with 725 * @param active the active to search with 726 * @return the number of matching layout set prototypes 727 * @throws SystemException if a system exception occurred 728 */ 729 public static int countByC_A(long companyId, boolean active) 730 throws com.liferay.portal.kernel.exception.SystemException { 731 return getPersistence().countByC_A(companyId, active); 732 } 733 734 /** 735 * Filters by the user's permissions and counts all the layout set prototypes where companyId = ? and active = ?. 736 * 737 * @param companyId the company ID to search with 738 * @param active the active to search with 739 * @return the number of matching layout set prototypes that the user has permission to view 740 * @throws SystemException if a system exception occurred 741 */ 742 public static int filterCountByC_A(long companyId, boolean active) 743 throws com.liferay.portal.kernel.exception.SystemException { 744 return getPersistence().filterCountByC_A(companyId, active); 745 } 746 747 /** 748 * Counts all the layout set prototypes. 749 * 750 * @return the number of layout set prototypes 751 * @throws SystemException if a system exception occurred 752 */ 753 public static int countAll() 754 throws com.liferay.portal.kernel.exception.SystemException { 755 return getPersistence().countAll(); 756 } 757 758 public static LayoutSetPrototypePersistence getPersistence() { 759 if (_persistence == null) { 760 _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName()); 761 762 ReferenceRegistry.registerReference(LayoutSetPrototypeUtil.class, 763 "_persistence"); 764 } 765 766 return _persistence; 767 } 768 769 public void setPersistence(LayoutSetPrototypePersistence persistence) { 770 _persistence = persistence; 771 772 ReferenceRegistry.registerReference(LayoutSetPrototypeUtil.class, 773 "_persistence"); 774 } 775 776 private static LayoutSetPrototypePersistence _persistence; 777 }