001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import 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.LayoutRevision; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the layout revision service. This utility wraps {@link LayoutRevisionPersistenceImpl} 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 LayoutRevisionPersistence 036 * @see LayoutRevisionPersistenceImpl 037 * @generated 038 */ 039 public class LayoutRevisionUtil { 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(LayoutRevision layoutRevision) { 057 getPersistence().clearCache(layoutRevision); 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<LayoutRevision> 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<LayoutRevision> 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<LayoutRevision> 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 LayoutRevision update(LayoutRevision layoutRevision, 100 boolean merge) throws SystemException { 101 return getPersistence().update(layoutRevision, merge); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 106 */ 107 public static LayoutRevision update(LayoutRevision layoutRevision, 108 boolean merge, ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(layoutRevision, merge, serviceContext); 110 } 111 112 /** 113 * Caches the layout revision in the entity cache if it is enabled. 114 * 115 * @param layoutRevision the layout revision 116 */ 117 public static void cacheResult( 118 com.liferay.portal.model.LayoutRevision layoutRevision) { 119 getPersistence().cacheResult(layoutRevision); 120 } 121 122 /** 123 * Caches the layout revisions in the entity cache if it is enabled. 124 * 125 * @param layoutRevisions the layout revisions 126 */ 127 public static void cacheResult( 128 java.util.List<com.liferay.portal.model.LayoutRevision> layoutRevisions) { 129 getPersistence().cacheResult(layoutRevisions); 130 } 131 132 /** 133 * Creates a new layout revision with the primary key. Does not add the layout revision to the database. 134 * 135 * @param layoutRevisionId the primary key for the new layout revision 136 * @return the new layout revision 137 */ 138 public static com.liferay.portal.model.LayoutRevision create( 139 long layoutRevisionId) { 140 return getPersistence().create(layoutRevisionId); 141 } 142 143 /** 144 * Removes the layout revision with the primary key from the database. Also notifies the appropriate model listeners. 145 * 146 * @param layoutRevisionId the primary key of the layout revision 147 * @return the layout revision that was removed 148 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public static com.liferay.portal.model.LayoutRevision remove( 152 long layoutRevisionId) 153 throws com.liferay.portal.NoSuchLayoutRevisionException, 154 com.liferay.portal.kernel.exception.SystemException { 155 return getPersistence().remove(layoutRevisionId); 156 } 157 158 public static com.liferay.portal.model.LayoutRevision updateImpl( 159 com.liferay.portal.model.LayoutRevision layoutRevision, boolean merge) 160 throws com.liferay.portal.kernel.exception.SystemException { 161 return getPersistence().updateImpl(layoutRevision, merge); 162 } 163 164 /** 165 * Returns the layout revision with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 166 * 167 * @param layoutRevisionId the primary key of the layout revision 168 * @return the layout revision 169 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 170 * @throws SystemException if a system exception occurred 171 */ 172 public static com.liferay.portal.model.LayoutRevision findByPrimaryKey( 173 long layoutRevisionId) 174 throws com.liferay.portal.NoSuchLayoutRevisionException, 175 com.liferay.portal.kernel.exception.SystemException { 176 return getPersistence().findByPrimaryKey(layoutRevisionId); 177 } 178 179 /** 180 * Returns the layout revision with the primary key or returns <code>null</code> if it could not be found. 181 * 182 * @param layoutRevisionId the primary key of the layout revision 183 * @return the layout revision, or <code>null</code> if a layout revision with the primary key could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public static com.liferay.portal.model.LayoutRevision fetchByPrimaryKey( 187 long layoutRevisionId) 188 throws com.liferay.portal.kernel.exception.SystemException { 189 return getPersistence().fetchByPrimaryKey(layoutRevisionId); 190 } 191 192 /** 193 * Returns all the layout revisions where layoutSetBranchId = ?. 194 * 195 * @param layoutSetBranchId the layout set branch ID 196 * @return the matching layout revisions 197 * @throws SystemException if a system exception occurred 198 */ 199 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 200 long layoutSetBranchId) 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return getPersistence().findByLayoutSetBranchId(layoutSetBranchId); 203 } 204 205 /** 206 * Returns a range of all the layout revisions where layoutSetBranchId = ?. 207 * 208 * <p> 209 * 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. 210 * </p> 211 * 212 * @param layoutSetBranchId the layout set branch ID 213 * @param start the lower bound of the range of layout revisions 214 * @param end the upper bound of the range of layout revisions (not inclusive) 215 * @return the range of matching layout revisions 216 * @throws SystemException if a system exception occurred 217 */ 218 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 219 long layoutSetBranchId, int start, int end) 220 throws com.liferay.portal.kernel.exception.SystemException { 221 return getPersistence() 222 .findByLayoutSetBranchId(layoutSetBranchId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param layoutSetBranchId the layout set branch ID 233 * @param start the lower bound of the range of layout revisions 234 * @param end the upper bound of the range of layout revisions (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching layout revisions 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 240 long layoutSetBranchId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByLayoutSetBranchId(layoutSetBranchId, start, end, 245 orderByComparator); 246 } 247 248 /** 249 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 250 * 251 * @param layoutSetBranchId the layout set branch ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching layout revision 254 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_First( 258 long layoutSetBranchId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.NoSuchLayoutRevisionException, 261 com.liferay.portal.kernel.exception.SystemException { 262 return getPersistence() 263 .findByLayoutSetBranchId_First(layoutSetBranchId, 264 orderByComparator); 265 } 266 267 /** 268 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 269 * 270 * @param layoutSetBranchId the layout set branch ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public static com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_First( 276 long layoutSetBranchId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence() 280 .fetchByLayoutSetBranchId_First(layoutSetBranchId, 281 orderByComparator); 282 } 283 284 /** 285 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 286 * 287 * @param layoutSetBranchId the layout set branch ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the last matching layout revision 290 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public static com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_Last( 294 long layoutSetBranchId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.NoSuchLayoutRevisionException, 297 com.liferay.portal.kernel.exception.SystemException { 298 return getPersistence() 299 .findByLayoutSetBranchId_Last(layoutSetBranchId, 300 orderByComparator); 301 } 302 303 /** 304 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 305 * 306 * @param layoutSetBranchId the layout set branch ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public static com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_Last( 312 long layoutSetBranchId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence() 316 .fetchByLayoutSetBranchId_Last(layoutSetBranchId, 317 orderByComparator); 318 } 319 320 /** 321 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ?. 322 * 323 * @param layoutRevisionId the primary key of the current layout revision 324 * @param layoutSetBranchId the layout set branch ID 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the previous, current, and next layout revision 327 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public static com.liferay.portal.model.LayoutRevision[] findByLayoutSetBranchId_PrevAndNext( 331 long layoutRevisionId, long layoutSetBranchId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.NoSuchLayoutRevisionException, 334 com.liferay.portal.kernel.exception.SystemException { 335 return getPersistence() 336 .findByLayoutSetBranchId_PrevAndNext(layoutRevisionId, 337 layoutSetBranchId, orderByComparator); 338 } 339 340 /** 341 * Returns all the layout revisions where plid = ?. 342 * 343 * @param plid the plid 344 * @return the matching layout revisions 345 * @throws SystemException if a system exception occurred 346 */ 347 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 348 long plid) throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().findByPlid(plid); 350 } 351 352 /** 353 * Returns a range of all the layout revisions where plid = ?. 354 * 355 * <p> 356 * 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. 357 * </p> 358 * 359 * @param plid the plid 360 * @param start the lower bound of the range of layout revisions 361 * @param end the upper bound of the range of layout revisions (not inclusive) 362 * @return the range of matching layout revisions 363 * @throws SystemException if a system exception occurred 364 */ 365 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 366 long plid, int start, int end) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence().findByPlid(plid, start, end); 369 } 370 371 /** 372 * Returns an ordered range of all the layout revisions where plid = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param plid the plid 379 * @param start the lower bound of the range of layout revisions 380 * @param end the upper bound of the range of layout revisions (not inclusive) 381 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 382 * @return the ordered range of matching layout revisions 383 * @throws SystemException if a system exception occurred 384 */ 385 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 386 long plid, int start, int end, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException { 389 return getPersistence().findByPlid(plid, start, end, orderByComparator); 390 } 391 392 /** 393 * Returns the first layout revision in the ordered set where plid = ?. 394 * 395 * @param plid the plid 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the first matching layout revision 398 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public static com.liferay.portal.model.LayoutRevision findByPlid_First( 402 long plid, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.NoSuchLayoutRevisionException, 405 com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence().findByPlid_First(plid, orderByComparator); 407 } 408 409 /** 410 * Returns the first layout revision in the ordered set where plid = ?. 411 * 412 * @param plid the plid 413 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 414 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 415 * @throws SystemException if a system exception occurred 416 */ 417 public static com.liferay.portal.model.LayoutRevision fetchByPlid_First( 418 long plid, 419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 420 throws com.liferay.portal.kernel.exception.SystemException { 421 return getPersistence().fetchByPlid_First(plid, orderByComparator); 422 } 423 424 /** 425 * Returns the last layout revision in the ordered set where plid = ?. 426 * 427 * @param plid the plid 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the last matching layout revision 430 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public static com.liferay.portal.model.LayoutRevision findByPlid_Last( 434 long plid, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.NoSuchLayoutRevisionException, 437 com.liferay.portal.kernel.exception.SystemException { 438 return getPersistence().findByPlid_Last(plid, orderByComparator); 439 } 440 441 /** 442 * Returns the last layout revision in the ordered set where plid = ?. 443 * 444 * @param plid the plid 445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 446 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public static com.liferay.portal.model.LayoutRevision fetchByPlid_Last( 450 long plid, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException { 453 return getPersistence().fetchByPlid_Last(plid, orderByComparator); 454 } 455 456 /** 457 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ?. 458 * 459 * @param layoutRevisionId the primary key of the current layout revision 460 * @param plid the plid 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the previous, current, and next layout revision 463 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public static com.liferay.portal.model.LayoutRevision[] findByPlid_PrevAndNext( 467 long layoutRevisionId, long plid, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.NoSuchLayoutRevisionException, 470 com.liferay.portal.kernel.exception.SystemException { 471 return getPersistence() 472 .findByPlid_PrevAndNext(layoutRevisionId, plid, 473 orderByComparator); 474 } 475 476 /** 477 * Returns all the layout revisions where layoutSetBranchId = ? and head = ?. 478 * 479 * @param layoutSetBranchId the layout set branch ID 480 * @param head the head 481 * @return the matching layout revisions 482 * @throws SystemException if a system exception occurred 483 */ 484 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 485 long layoutSetBranchId, boolean head) 486 throws com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence().findByL_H(layoutSetBranchId, head); 488 } 489 490 /** 491 * Returns a range of all the layout revisions where layoutSetBranchId = ? and head = ?. 492 * 493 * <p> 494 * 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. 495 * </p> 496 * 497 * @param layoutSetBranchId the layout set branch ID 498 * @param head the head 499 * @param start the lower bound of the range of layout revisions 500 * @param end the upper bound of the range of layout revisions (not inclusive) 501 * @return the range of matching layout revisions 502 * @throws SystemException if a system exception occurred 503 */ 504 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 505 long layoutSetBranchId, boolean head, int start, int end) 506 throws com.liferay.portal.kernel.exception.SystemException { 507 return getPersistence().findByL_H(layoutSetBranchId, head, start, end); 508 } 509 510 /** 511 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and head = ?. 512 * 513 * <p> 514 * 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. 515 * </p> 516 * 517 * @param layoutSetBranchId the layout set branch ID 518 * @param head the head 519 * @param start the lower bound of the range of layout revisions 520 * @param end the upper bound of the range of layout revisions (not inclusive) 521 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 522 * @return the ordered range of matching layout revisions 523 * @throws SystemException if a system exception occurred 524 */ 525 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 526 long layoutSetBranchId, boolean head, int start, int end, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.kernel.exception.SystemException { 529 return getPersistence() 530 .findByL_H(layoutSetBranchId, head, start, end, 531 orderByComparator); 532 } 533 534 /** 535 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 536 * 537 * @param layoutSetBranchId the layout set branch ID 538 * @param head the head 539 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 540 * @return the first matching layout revision 541 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 542 * @throws SystemException if a system exception occurred 543 */ 544 public static com.liferay.portal.model.LayoutRevision findByL_H_First( 545 long layoutSetBranchId, boolean head, 546 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 547 throws com.liferay.portal.NoSuchLayoutRevisionException, 548 com.liferay.portal.kernel.exception.SystemException { 549 return getPersistence() 550 .findByL_H_First(layoutSetBranchId, head, orderByComparator); 551 } 552 553 /** 554 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 555 * 556 * @param layoutSetBranchId the layout set branch ID 557 * @param head the head 558 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 559 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 560 * @throws SystemException if a system exception occurred 561 */ 562 public static com.liferay.portal.model.LayoutRevision fetchByL_H_First( 563 long layoutSetBranchId, boolean head, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence() 567 .fetchByL_H_First(layoutSetBranchId, head, orderByComparator); 568 } 569 570 /** 571 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 572 * 573 * @param layoutSetBranchId the layout set branch ID 574 * @param head the head 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the last matching layout revision 577 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public static com.liferay.portal.model.LayoutRevision findByL_H_Last( 581 long layoutSetBranchId, boolean head, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.NoSuchLayoutRevisionException, 584 com.liferay.portal.kernel.exception.SystemException { 585 return getPersistence() 586 .findByL_H_Last(layoutSetBranchId, head, orderByComparator); 587 } 588 589 /** 590 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 591 * 592 * @param layoutSetBranchId the layout set branch ID 593 * @param head the head 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public static com.liferay.portal.model.LayoutRevision fetchByL_H_Last( 599 long layoutSetBranchId, boolean head, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException { 602 return getPersistence() 603 .fetchByL_H_Last(layoutSetBranchId, head, orderByComparator); 604 } 605 606 /** 607 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 608 * 609 * @param layoutRevisionId the primary key of the current layout revision 610 * @param layoutSetBranchId the layout set branch ID 611 * @param head the head 612 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 613 * @return the previous, current, and next layout revision 614 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 615 * @throws SystemException if a system exception occurred 616 */ 617 public static com.liferay.portal.model.LayoutRevision[] findByL_H_PrevAndNext( 618 long layoutRevisionId, long layoutSetBranchId, boolean head, 619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 620 throws com.liferay.portal.NoSuchLayoutRevisionException, 621 com.liferay.portal.kernel.exception.SystemException { 622 return getPersistence() 623 .findByL_H_PrevAndNext(layoutRevisionId, layoutSetBranchId, 624 head, orderByComparator); 625 } 626 627 /** 628 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ?. 629 * 630 * @param layoutSetBranchId the layout set branch ID 631 * @param plid the plid 632 * @return the matching layout revisions 633 * @throws SystemException if a system exception occurred 634 */ 635 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 636 long layoutSetBranchId, long plid) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence().findByL_P(layoutSetBranchId, plid); 639 } 640 641 /** 642 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ?. 643 * 644 * <p> 645 * 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. 646 * </p> 647 * 648 * @param layoutSetBranchId the layout set branch ID 649 * @param plid the plid 650 * @param start the lower bound of the range of layout revisions 651 * @param end the upper bound of the range of layout revisions (not inclusive) 652 * @return the range of matching layout revisions 653 * @throws SystemException if a system exception occurred 654 */ 655 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 656 long layoutSetBranchId, long plid, int start, int end) 657 throws com.liferay.portal.kernel.exception.SystemException { 658 return getPersistence().findByL_P(layoutSetBranchId, plid, start, end); 659 } 660 661 /** 662 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and plid = ?. 663 * 664 * <p> 665 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 666 * </p> 667 * 668 * @param layoutSetBranchId the layout set branch ID 669 * @param plid the plid 670 * @param start the lower bound of the range of layout revisions 671 * @param end the upper bound of the range of layout revisions (not inclusive) 672 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 673 * @return the ordered range of matching layout revisions 674 * @throws SystemException if a system exception occurred 675 */ 676 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 677 long layoutSetBranchId, long plid, int start, int end, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence() 681 .findByL_P(layoutSetBranchId, plid, start, end, 682 orderByComparator); 683 } 684 685 /** 686 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 687 * 688 * @param layoutSetBranchId the layout set branch ID 689 * @param plid the plid 690 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 691 * @return the first matching layout revision 692 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 693 * @throws SystemException if a system exception occurred 694 */ 695 public static com.liferay.portal.model.LayoutRevision findByL_P_First( 696 long layoutSetBranchId, long plid, 697 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 698 throws com.liferay.portal.NoSuchLayoutRevisionException, 699 com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence() 701 .findByL_P_First(layoutSetBranchId, plid, orderByComparator); 702 } 703 704 /** 705 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 706 * 707 * @param layoutSetBranchId the layout set branch ID 708 * @param plid the plid 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 711 * @throws SystemException if a system exception occurred 712 */ 713 public static com.liferay.portal.model.LayoutRevision fetchByL_P_First( 714 long layoutSetBranchId, long plid, 715 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 716 throws com.liferay.portal.kernel.exception.SystemException { 717 return getPersistence() 718 .fetchByL_P_First(layoutSetBranchId, plid, orderByComparator); 719 } 720 721 /** 722 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 723 * 724 * @param layoutSetBranchId the layout set branch ID 725 * @param plid the plid 726 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 727 * @return the last matching layout revision 728 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 729 * @throws SystemException if a system exception occurred 730 */ 731 public static com.liferay.portal.model.LayoutRevision findByL_P_Last( 732 long layoutSetBranchId, long plid, 733 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 734 throws com.liferay.portal.NoSuchLayoutRevisionException, 735 com.liferay.portal.kernel.exception.SystemException { 736 return getPersistence() 737 .findByL_P_Last(layoutSetBranchId, plid, orderByComparator); 738 } 739 740 /** 741 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 742 * 743 * @param layoutSetBranchId the layout set branch ID 744 * @param plid the plid 745 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 746 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 747 * @throws SystemException if a system exception occurred 748 */ 749 public static com.liferay.portal.model.LayoutRevision fetchByL_P_Last( 750 long layoutSetBranchId, long plid, 751 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 752 throws com.liferay.portal.kernel.exception.SystemException { 753 return getPersistence() 754 .fetchByL_P_Last(layoutSetBranchId, plid, orderByComparator); 755 } 756 757 /** 758 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 759 * 760 * @param layoutRevisionId the primary key of the current layout revision 761 * @param layoutSetBranchId the layout set branch ID 762 * @param plid the plid 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the previous, current, and next layout revision 765 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portal.model.LayoutRevision[] findByL_P_PrevAndNext( 769 long layoutRevisionId, long layoutSetBranchId, long plid, 770 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 771 throws com.liferay.portal.NoSuchLayoutRevisionException, 772 com.liferay.portal.kernel.exception.SystemException { 773 return getPersistence() 774 .findByL_P_PrevAndNext(layoutRevisionId, layoutSetBranchId, 775 plid, orderByComparator); 776 } 777 778 /** 779 * Returns all the layout revisions where layoutSetBranchId = ? and status = ?. 780 * 781 * @param layoutSetBranchId the layout set branch ID 782 * @param status the status 783 * @return the matching layout revisions 784 * @throws SystemException if a system exception occurred 785 */ 786 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 787 long layoutSetBranchId, int status) 788 throws com.liferay.portal.kernel.exception.SystemException { 789 return getPersistence().findByL_S(layoutSetBranchId, status); 790 } 791 792 /** 793 * Returns a range of all the layout revisions where layoutSetBranchId = ? and status = ?. 794 * 795 * <p> 796 * 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. 797 * </p> 798 * 799 * @param layoutSetBranchId the layout set branch ID 800 * @param status the status 801 * @param start the lower bound of the range of layout revisions 802 * @param end the upper bound of the range of layout revisions (not inclusive) 803 * @return the range of matching layout revisions 804 * @throws SystemException if a system exception occurred 805 */ 806 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 807 long layoutSetBranchId, int status, int start, int end) 808 throws com.liferay.portal.kernel.exception.SystemException { 809 return getPersistence().findByL_S(layoutSetBranchId, status, start, end); 810 } 811 812 /** 813 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and status = ?. 814 * 815 * <p> 816 * 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. 817 * </p> 818 * 819 * @param layoutSetBranchId the layout set branch ID 820 * @param status the status 821 * @param start the lower bound of the range of layout revisions 822 * @param end the upper bound of the range of layout revisions (not inclusive) 823 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 824 * @return the ordered range of matching layout revisions 825 * @throws SystemException if a system exception occurred 826 */ 827 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 828 long layoutSetBranchId, int status, int start, int end, 829 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 830 throws com.liferay.portal.kernel.exception.SystemException { 831 return getPersistence() 832 .findByL_S(layoutSetBranchId, status, start, end, 833 orderByComparator); 834 } 835 836 /** 837 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 838 * 839 * @param layoutSetBranchId the layout set branch ID 840 * @param status the status 841 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 842 * @return the first matching layout revision 843 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 844 * @throws SystemException if a system exception occurred 845 */ 846 public static com.liferay.portal.model.LayoutRevision findByL_S_First( 847 long layoutSetBranchId, int status, 848 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 849 throws com.liferay.portal.NoSuchLayoutRevisionException, 850 com.liferay.portal.kernel.exception.SystemException { 851 return getPersistence() 852 .findByL_S_First(layoutSetBranchId, status, orderByComparator); 853 } 854 855 /** 856 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 857 * 858 * @param layoutSetBranchId the layout set branch ID 859 * @param status the status 860 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 861 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 862 * @throws SystemException if a system exception occurred 863 */ 864 public static com.liferay.portal.model.LayoutRevision fetchByL_S_First( 865 long layoutSetBranchId, int status, 866 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 867 throws com.liferay.portal.kernel.exception.SystemException { 868 return getPersistence() 869 .fetchByL_S_First(layoutSetBranchId, status, 870 orderByComparator); 871 } 872 873 /** 874 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 875 * 876 * @param layoutSetBranchId the layout set branch ID 877 * @param status the status 878 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 879 * @return the last matching layout revision 880 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 881 * @throws SystemException if a system exception occurred 882 */ 883 public static com.liferay.portal.model.LayoutRevision findByL_S_Last( 884 long layoutSetBranchId, int status, 885 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 886 throws com.liferay.portal.NoSuchLayoutRevisionException, 887 com.liferay.portal.kernel.exception.SystemException { 888 return getPersistence() 889 .findByL_S_Last(layoutSetBranchId, status, orderByComparator); 890 } 891 892 /** 893 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 894 * 895 * @param layoutSetBranchId the layout set branch ID 896 * @param status the status 897 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 898 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 899 * @throws SystemException if a system exception occurred 900 */ 901 public static com.liferay.portal.model.LayoutRevision fetchByL_S_Last( 902 long layoutSetBranchId, int status, 903 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 904 throws com.liferay.portal.kernel.exception.SystemException { 905 return getPersistence() 906 .fetchByL_S_Last(layoutSetBranchId, status, orderByComparator); 907 } 908 909 /** 910 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 911 * 912 * @param layoutRevisionId the primary key of the current layout revision 913 * @param layoutSetBranchId the layout set branch ID 914 * @param status the status 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 916 * @return the previous, current, and next layout revision 917 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 918 * @throws SystemException if a system exception occurred 919 */ 920 public static com.liferay.portal.model.LayoutRevision[] findByL_S_PrevAndNext( 921 long layoutRevisionId, long layoutSetBranchId, int status, 922 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 923 throws com.liferay.portal.NoSuchLayoutRevisionException, 924 com.liferay.portal.kernel.exception.SystemException { 925 return getPersistence() 926 .findByL_S_PrevAndNext(layoutRevisionId, layoutSetBranchId, 927 status, orderByComparator); 928 } 929 930 /** 931 * Returns all the layout revisions where head = ? and plid = ?. 932 * 933 * @param head the head 934 * @param plid the plid 935 * @return the matching layout revisions 936 * @throws SystemException if a system exception occurred 937 */ 938 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 939 boolean head, long plid) 940 throws com.liferay.portal.kernel.exception.SystemException { 941 return getPersistence().findByH_P(head, plid); 942 } 943 944 /** 945 * Returns a range of all the layout revisions where head = ? and plid = ?. 946 * 947 * <p> 948 * 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. 949 * </p> 950 * 951 * @param head the head 952 * @param plid the plid 953 * @param start the lower bound of the range of layout revisions 954 * @param end the upper bound of the range of layout revisions (not inclusive) 955 * @return the range of matching layout revisions 956 * @throws SystemException if a system exception occurred 957 */ 958 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 959 boolean head, long plid, int start, int end) 960 throws com.liferay.portal.kernel.exception.SystemException { 961 return getPersistence().findByH_P(head, plid, start, end); 962 } 963 964 /** 965 * Returns an ordered range of all the layout revisions where head = ? and plid = ?. 966 * 967 * <p> 968 * 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. 969 * </p> 970 * 971 * @param head the head 972 * @param plid the plid 973 * @param start the lower bound of the range of layout revisions 974 * @param end the upper bound of the range of layout revisions (not inclusive) 975 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 976 * @return the ordered range of matching layout revisions 977 * @throws SystemException if a system exception occurred 978 */ 979 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 980 boolean head, long plid, int start, int end, 981 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 982 throws com.liferay.portal.kernel.exception.SystemException { 983 return getPersistence() 984 .findByH_P(head, plid, start, end, orderByComparator); 985 } 986 987 /** 988 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 989 * 990 * @param head the head 991 * @param plid the plid 992 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 993 * @return the first matching layout revision 994 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 995 * @throws SystemException if a system exception occurred 996 */ 997 public static com.liferay.portal.model.LayoutRevision findByH_P_First( 998 boolean head, long plid, 999 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1000 throws com.liferay.portal.NoSuchLayoutRevisionException, 1001 com.liferay.portal.kernel.exception.SystemException { 1002 return getPersistence().findByH_P_First(head, plid, orderByComparator); 1003 } 1004 1005 /** 1006 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 1007 * 1008 * @param head the head 1009 * @param plid the plid 1010 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1011 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static com.liferay.portal.model.LayoutRevision fetchByH_P_First( 1015 boolean head, long plid, 1016 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1017 throws com.liferay.portal.kernel.exception.SystemException { 1018 return getPersistence().fetchByH_P_First(head, plid, orderByComparator); 1019 } 1020 1021 /** 1022 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 1023 * 1024 * @param head the head 1025 * @param plid the plid 1026 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1027 * @return the last matching layout revision 1028 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static com.liferay.portal.model.LayoutRevision findByH_P_Last( 1032 boolean head, long plid, 1033 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1034 throws com.liferay.portal.NoSuchLayoutRevisionException, 1035 com.liferay.portal.kernel.exception.SystemException { 1036 return getPersistence().findByH_P_Last(head, plid, orderByComparator); 1037 } 1038 1039 /** 1040 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 1041 * 1042 * @param head the head 1043 * @param plid the plid 1044 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1045 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public static com.liferay.portal.model.LayoutRevision fetchByH_P_Last( 1049 boolean head, long plid, 1050 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1051 throws com.liferay.portal.kernel.exception.SystemException { 1052 return getPersistence().fetchByH_P_Last(head, plid, orderByComparator); 1053 } 1054 1055 /** 1056 * Returns the layout revisions before and after the current layout revision in the ordered set where head = ? and plid = ?. 1057 * 1058 * @param layoutRevisionId the primary key of the current layout revision 1059 * @param head the head 1060 * @param plid the plid 1061 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1062 * @return the previous, current, and next layout revision 1063 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public static com.liferay.portal.model.LayoutRevision[] findByH_P_PrevAndNext( 1067 long layoutRevisionId, boolean head, long plid, 1068 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1069 throws com.liferay.portal.NoSuchLayoutRevisionException, 1070 com.liferay.portal.kernel.exception.SystemException { 1071 return getPersistence() 1072 .findByH_P_PrevAndNext(layoutRevisionId, head, plid, 1073 orderByComparator); 1074 } 1075 1076 /** 1077 * Returns all the layout revisions where plid = ? and status ≠ ?. 1078 * 1079 * @param plid the plid 1080 * @param status the status 1081 * @return the matching layout revisions 1082 * @throws SystemException if a system exception occurred 1083 */ 1084 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 1085 long plid, int status) 1086 throws com.liferay.portal.kernel.exception.SystemException { 1087 return getPersistence().findByP_NotS(plid, status); 1088 } 1089 1090 /** 1091 * Returns a range of all the layout revisions where plid = ? and status ≠ ?. 1092 * 1093 * <p> 1094 * 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. 1095 * </p> 1096 * 1097 * @param plid the plid 1098 * @param status the status 1099 * @param start the lower bound of the range of layout revisions 1100 * @param end the upper bound of the range of layout revisions (not inclusive) 1101 * @return the range of matching layout revisions 1102 * @throws SystemException if a system exception occurred 1103 */ 1104 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 1105 long plid, int status, int start, int end) 1106 throws com.liferay.portal.kernel.exception.SystemException { 1107 return getPersistence().findByP_NotS(plid, status, start, end); 1108 } 1109 1110 /** 1111 * Returns an ordered range of all the layout revisions where plid = ? and status ≠ ?. 1112 * 1113 * <p> 1114 * 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. 1115 * </p> 1116 * 1117 * @param plid the plid 1118 * @param status the status 1119 * @param start the lower bound of the range of layout revisions 1120 * @param end the upper bound of the range of layout revisions (not inclusive) 1121 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1122 * @return the ordered range of matching layout revisions 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 1126 long plid, int status, int start, int end, 1127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1128 throws com.liferay.portal.kernel.exception.SystemException { 1129 return getPersistence() 1130 .findByP_NotS(plid, status, start, end, orderByComparator); 1131 } 1132 1133 /** 1134 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 1135 * 1136 * @param plid the plid 1137 * @param status the status 1138 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1139 * @return the first matching layout revision 1140 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1141 * @throws SystemException if a system exception occurred 1142 */ 1143 public static com.liferay.portal.model.LayoutRevision findByP_NotS_First( 1144 long plid, int status, 1145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1146 throws com.liferay.portal.NoSuchLayoutRevisionException, 1147 com.liferay.portal.kernel.exception.SystemException { 1148 return getPersistence() 1149 .findByP_NotS_First(plid, status, orderByComparator); 1150 } 1151 1152 /** 1153 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 1154 * 1155 * @param plid the plid 1156 * @param status the status 1157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1158 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public static com.liferay.portal.model.LayoutRevision fetchByP_NotS_First( 1162 long plid, int status, 1163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1164 throws com.liferay.portal.kernel.exception.SystemException { 1165 return getPersistence() 1166 .fetchByP_NotS_First(plid, status, orderByComparator); 1167 } 1168 1169 /** 1170 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 1171 * 1172 * @param plid the plid 1173 * @param status the status 1174 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1175 * @return the last matching layout revision 1176 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public static com.liferay.portal.model.LayoutRevision findByP_NotS_Last( 1180 long plid, int status, 1181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1182 throws com.liferay.portal.NoSuchLayoutRevisionException, 1183 com.liferay.portal.kernel.exception.SystemException { 1184 return getPersistence() 1185 .findByP_NotS_Last(plid, status, orderByComparator); 1186 } 1187 1188 /** 1189 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 1190 * 1191 * @param plid the plid 1192 * @param status the status 1193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1194 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1195 * @throws SystemException if a system exception occurred 1196 */ 1197 public static com.liferay.portal.model.LayoutRevision fetchByP_NotS_Last( 1198 long plid, int status, 1199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1200 throws com.liferay.portal.kernel.exception.SystemException { 1201 return getPersistence() 1202 .fetchByP_NotS_Last(plid, status, orderByComparator); 1203 } 1204 1205 /** 1206 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ? and status ≠ ?. 1207 * 1208 * @param layoutRevisionId the primary key of the current layout revision 1209 * @param plid the plid 1210 * @param status the status 1211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1212 * @return the previous, current, and next layout revision 1213 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 public static com.liferay.portal.model.LayoutRevision[] findByP_NotS_PrevAndNext( 1217 long layoutRevisionId, long plid, int status, 1218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1219 throws com.liferay.portal.NoSuchLayoutRevisionException, 1220 com.liferay.portal.kernel.exception.SystemException { 1221 return getPersistence() 1222 .findByP_NotS_PrevAndNext(layoutRevisionId, plid, status, 1223 orderByComparator); 1224 } 1225 1226 /** 1227 * Returns all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1228 * 1229 * @param layoutSetBranchId the layout set branch ID 1230 * @param layoutBranchId the layout branch ID 1231 * @param plid the plid 1232 * @return the matching layout revisions 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1236 long layoutSetBranchId, long layoutBranchId, long plid) 1237 throws com.liferay.portal.kernel.exception.SystemException { 1238 return getPersistence() 1239 .findByL_L_P(layoutSetBranchId, layoutBranchId, plid); 1240 } 1241 1242 /** 1243 * Returns a range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1244 * 1245 * <p> 1246 * 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. 1247 * </p> 1248 * 1249 * @param layoutSetBranchId the layout set branch ID 1250 * @param layoutBranchId the layout branch ID 1251 * @param plid the plid 1252 * @param start the lower bound of the range of layout revisions 1253 * @param end the upper bound of the range of layout revisions (not inclusive) 1254 * @return the range of matching layout revisions 1255 * @throws SystemException if a system exception occurred 1256 */ 1257 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1258 long layoutSetBranchId, long layoutBranchId, long plid, int start, 1259 int end) throws com.liferay.portal.kernel.exception.SystemException { 1260 return getPersistence() 1261 .findByL_L_P(layoutSetBranchId, layoutBranchId, plid, start, 1262 end); 1263 } 1264 1265 /** 1266 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1267 * 1268 * <p> 1269 * 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. 1270 * </p> 1271 * 1272 * @param layoutSetBranchId the layout set branch ID 1273 * @param layoutBranchId the layout branch ID 1274 * @param plid the plid 1275 * @param start the lower bound of the range of layout revisions 1276 * @param end the upper bound of the range of layout revisions (not inclusive) 1277 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1278 * @return the ordered range of matching layout revisions 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1282 long layoutSetBranchId, long layoutBranchId, long plid, int start, 1283 int end, 1284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1285 throws com.liferay.portal.kernel.exception.SystemException { 1286 return getPersistence() 1287 .findByL_L_P(layoutSetBranchId, layoutBranchId, plid, start, 1288 end, orderByComparator); 1289 } 1290 1291 /** 1292 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1293 * 1294 * @param layoutSetBranchId the layout set branch ID 1295 * @param layoutBranchId the layout branch ID 1296 * @param plid the plid 1297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1298 * @return the first matching layout revision 1299 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public static com.liferay.portal.model.LayoutRevision findByL_L_P_First( 1303 long layoutSetBranchId, long layoutBranchId, long plid, 1304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1305 throws com.liferay.portal.NoSuchLayoutRevisionException, 1306 com.liferay.portal.kernel.exception.SystemException { 1307 return getPersistence() 1308 .findByL_L_P_First(layoutSetBranchId, layoutBranchId, plid, 1309 orderByComparator); 1310 } 1311 1312 /** 1313 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1314 * 1315 * @param layoutSetBranchId the layout set branch ID 1316 * @param layoutBranchId the layout branch ID 1317 * @param plid the plid 1318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1319 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1320 * @throws SystemException if a system exception occurred 1321 */ 1322 public static com.liferay.portal.model.LayoutRevision fetchByL_L_P_First( 1323 long layoutSetBranchId, long layoutBranchId, long plid, 1324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1325 throws com.liferay.portal.kernel.exception.SystemException { 1326 return getPersistence() 1327 .fetchByL_L_P_First(layoutSetBranchId, layoutBranchId, plid, 1328 orderByComparator); 1329 } 1330 1331 /** 1332 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1333 * 1334 * @param layoutSetBranchId the layout set branch ID 1335 * @param layoutBranchId the layout branch ID 1336 * @param plid the plid 1337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1338 * @return the last matching layout revision 1339 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1340 * @throws SystemException if a system exception occurred 1341 */ 1342 public static com.liferay.portal.model.LayoutRevision findByL_L_P_Last( 1343 long layoutSetBranchId, long layoutBranchId, long plid, 1344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1345 throws com.liferay.portal.NoSuchLayoutRevisionException, 1346 com.liferay.portal.kernel.exception.SystemException { 1347 return getPersistence() 1348 .findByL_L_P_Last(layoutSetBranchId, layoutBranchId, plid, 1349 orderByComparator); 1350 } 1351 1352 /** 1353 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1354 * 1355 * @param layoutSetBranchId the layout set branch ID 1356 * @param layoutBranchId the layout branch ID 1357 * @param plid the plid 1358 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1359 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1360 * @throws SystemException if a system exception occurred 1361 */ 1362 public static com.liferay.portal.model.LayoutRevision fetchByL_L_P_Last( 1363 long layoutSetBranchId, long layoutBranchId, long plid, 1364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1365 throws com.liferay.portal.kernel.exception.SystemException { 1366 return getPersistence() 1367 .fetchByL_L_P_Last(layoutSetBranchId, layoutBranchId, plid, 1368 orderByComparator); 1369 } 1370 1371 /** 1372 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1373 * 1374 * @param layoutRevisionId the primary key of the current layout revision 1375 * @param layoutSetBranchId the layout set branch ID 1376 * @param layoutBranchId the layout branch ID 1377 * @param plid the plid 1378 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1379 * @return the previous, current, and next layout revision 1380 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1381 * @throws SystemException if a system exception occurred 1382 */ 1383 public static com.liferay.portal.model.LayoutRevision[] findByL_L_P_PrevAndNext( 1384 long layoutRevisionId, long layoutSetBranchId, long layoutBranchId, 1385 long plid, 1386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1387 throws com.liferay.portal.NoSuchLayoutRevisionException, 1388 com.liferay.portal.kernel.exception.SystemException { 1389 return getPersistence() 1390 .findByL_L_P_PrevAndNext(layoutRevisionId, 1391 layoutSetBranchId, layoutBranchId, plid, orderByComparator); 1392 } 1393 1394 /** 1395 * Returns all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1396 * 1397 * @param layoutSetBranchId the layout set branch ID 1398 * @param parentLayoutRevisionId the parent layout revision ID 1399 * @param plid the plid 1400 * @return the matching layout revisions 1401 * @throws SystemException if a system exception occurred 1402 */ 1403 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1404 long layoutSetBranchId, long parentLayoutRevisionId, long plid) 1405 throws com.liferay.portal.kernel.exception.SystemException { 1406 return getPersistence() 1407 .findByL_P_P(layoutSetBranchId, parentLayoutRevisionId, plid); 1408 } 1409 1410 /** 1411 * Returns a range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1412 * 1413 * <p> 1414 * 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. 1415 * </p> 1416 * 1417 * @param layoutSetBranchId the layout set branch ID 1418 * @param parentLayoutRevisionId the parent layout revision ID 1419 * @param plid the plid 1420 * @param start the lower bound of the range of layout revisions 1421 * @param end the upper bound of the range of layout revisions (not inclusive) 1422 * @return the range of matching layout revisions 1423 * @throws SystemException if a system exception occurred 1424 */ 1425 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1426 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1427 int start, int end) 1428 throws com.liferay.portal.kernel.exception.SystemException { 1429 return getPersistence() 1430 .findByL_P_P(layoutSetBranchId, parentLayoutRevisionId, 1431 plid, start, end); 1432 } 1433 1434 /** 1435 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1436 * 1437 * <p> 1438 * 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. 1439 * </p> 1440 * 1441 * @param layoutSetBranchId the layout set branch ID 1442 * @param parentLayoutRevisionId the parent layout revision ID 1443 * @param plid the plid 1444 * @param start the lower bound of the range of layout revisions 1445 * @param end the upper bound of the range of layout revisions (not inclusive) 1446 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1447 * @return the ordered range of matching layout revisions 1448 * @throws SystemException if a system exception occurred 1449 */ 1450 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1451 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1452 int start, int end, 1453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1454 throws com.liferay.portal.kernel.exception.SystemException { 1455 return getPersistence() 1456 .findByL_P_P(layoutSetBranchId, parentLayoutRevisionId, 1457 plid, start, end, orderByComparator); 1458 } 1459 1460 /** 1461 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1462 * 1463 * @param layoutSetBranchId the layout set branch ID 1464 * @param parentLayoutRevisionId the parent layout revision ID 1465 * @param plid the plid 1466 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1467 * @return the first matching layout revision 1468 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1469 * @throws SystemException if a system exception occurred 1470 */ 1471 public static com.liferay.portal.model.LayoutRevision findByL_P_P_First( 1472 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1474 throws com.liferay.portal.NoSuchLayoutRevisionException, 1475 com.liferay.portal.kernel.exception.SystemException { 1476 return getPersistence() 1477 .findByL_P_P_First(layoutSetBranchId, 1478 parentLayoutRevisionId, plid, orderByComparator); 1479 } 1480 1481 /** 1482 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1483 * 1484 * @param layoutSetBranchId the layout set branch ID 1485 * @param parentLayoutRevisionId the parent layout revision ID 1486 * @param plid the plid 1487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1488 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1489 * @throws SystemException if a system exception occurred 1490 */ 1491 public static com.liferay.portal.model.LayoutRevision fetchByL_P_P_First( 1492 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1494 throws com.liferay.portal.kernel.exception.SystemException { 1495 return getPersistence() 1496 .fetchByL_P_P_First(layoutSetBranchId, 1497 parentLayoutRevisionId, plid, orderByComparator); 1498 } 1499 1500 /** 1501 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1502 * 1503 * @param layoutSetBranchId the layout set branch ID 1504 * @param parentLayoutRevisionId the parent layout revision ID 1505 * @param plid the plid 1506 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1507 * @return the last matching layout revision 1508 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1509 * @throws SystemException if a system exception occurred 1510 */ 1511 public static com.liferay.portal.model.LayoutRevision findByL_P_P_Last( 1512 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1513 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1514 throws com.liferay.portal.NoSuchLayoutRevisionException, 1515 com.liferay.portal.kernel.exception.SystemException { 1516 return getPersistence() 1517 .findByL_P_P_Last(layoutSetBranchId, parentLayoutRevisionId, 1518 plid, orderByComparator); 1519 } 1520 1521 /** 1522 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1523 * 1524 * @param layoutSetBranchId the layout set branch ID 1525 * @param parentLayoutRevisionId the parent layout revision ID 1526 * @param plid the plid 1527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1528 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1529 * @throws SystemException if a system exception occurred 1530 */ 1531 public static com.liferay.portal.model.LayoutRevision fetchByL_P_P_Last( 1532 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1534 throws com.liferay.portal.kernel.exception.SystemException { 1535 return getPersistence() 1536 .fetchByL_P_P_Last(layoutSetBranchId, 1537 parentLayoutRevisionId, plid, orderByComparator); 1538 } 1539 1540 /** 1541 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1542 * 1543 * @param layoutRevisionId the primary key of the current layout revision 1544 * @param layoutSetBranchId the layout set branch ID 1545 * @param parentLayoutRevisionId the parent layout revision ID 1546 * @param plid the plid 1547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1548 * @return the previous, current, and next layout revision 1549 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public static com.liferay.portal.model.LayoutRevision[] findByL_P_P_PrevAndNext( 1553 long layoutRevisionId, long layoutSetBranchId, 1554 long parentLayoutRevisionId, long plid, 1555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1556 throws com.liferay.portal.NoSuchLayoutRevisionException, 1557 com.liferay.portal.kernel.exception.SystemException { 1558 return getPersistence() 1559 .findByL_P_P_PrevAndNext(layoutRevisionId, 1560 layoutSetBranchId, parentLayoutRevisionId, plid, orderByComparator); 1561 } 1562 1563 /** 1564 * Returns the layout revision where layoutSetBranchId = ? and head = ? and plid = ? or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 1565 * 1566 * @param layoutSetBranchId the layout set branch ID 1567 * @param head the head 1568 * @param plid the plid 1569 * @return the matching layout revision 1570 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1571 * @throws SystemException if a system exception occurred 1572 */ 1573 public static com.liferay.portal.model.LayoutRevision findByL_H_P( 1574 long layoutSetBranchId, boolean head, long plid) 1575 throws com.liferay.portal.NoSuchLayoutRevisionException, 1576 com.liferay.portal.kernel.exception.SystemException { 1577 return getPersistence().findByL_H_P(layoutSetBranchId, head, plid); 1578 } 1579 1580 /** 1581 * Returns the layout revision where layoutSetBranchId = ? and head = ? and plid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1582 * 1583 * @param layoutSetBranchId the layout set branch ID 1584 * @param head the head 1585 * @param plid the plid 1586 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1587 * @throws SystemException if a system exception occurred 1588 */ 1589 public static com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1590 long layoutSetBranchId, boolean head, long plid) 1591 throws com.liferay.portal.kernel.exception.SystemException { 1592 return getPersistence().fetchByL_H_P(layoutSetBranchId, head, plid); 1593 } 1594 1595 /** 1596 * Returns the layout revision where layoutSetBranchId = ? and head = ? and plid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1597 * 1598 * @param layoutSetBranchId the layout set branch ID 1599 * @param head the head 1600 * @param plid the plid 1601 * @param retrieveFromCache whether to use the finder cache 1602 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1603 * @throws SystemException if a system exception occurred 1604 */ 1605 public static com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1606 long layoutSetBranchId, boolean head, long plid, 1607 boolean retrieveFromCache) 1608 throws com.liferay.portal.kernel.exception.SystemException { 1609 return getPersistence() 1610 .fetchByL_H_P(layoutSetBranchId, head, plid, 1611 retrieveFromCache); 1612 } 1613 1614 /** 1615 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1616 * 1617 * @param layoutSetBranchId the layout set branch ID 1618 * @param plid the plid 1619 * @param status the status 1620 * @return the matching layout revisions 1621 * @throws SystemException if a system exception occurred 1622 */ 1623 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1624 long layoutSetBranchId, long plid, int status) 1625 throws com.liferay.portal.kernel.exception.SystemException { 1626 return getPersistence().findByL_P_S(layoutSetBranchId, plid, status); 1627 } 1628 1629 /** 1630 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1631 * 1632 * <p> 1633 * 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. 1634 * </p> 1635 * 1636 * @param layoutSetBranchId the layout set branch ID 1637 * @param plid the plid 1638 * @param status the status 1639 * @param start the lower bound of the range of layout revisions 1640 * @param end the upper bound of the range of layout revisions (not inclusive) 1641 * @return the range of matching layout revisions 1642 * @throws SystemException if a system exception occurred 1643 */ 1644 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1645 long layoutSetBranchId, long plid, int status, int start, int end) 1646 throws com.liferay.portal.kernel.exception.SystemException { 1647 return getPersistence() 1648 .findByL_P_S(layoutSetBranchId, plid, status, start, end); 1649 } 1650 1651 /** 1652 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1653 * 1654 * <p> 1655 * 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. 1656 * </p> 1657 * 1658 * @param layoutSetBranchId the layout set branch ID 1659 * @param plid the plid 1660 * @param status the status 1661 * @param start the lower bound of the range of layout revisions 1662 * @param end the upper bound of the range of layout revisions (not inclusive) 1663 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1664 * @return the ordered range of matching layout revisions 1665 * @throws SystemException if a system exception occurred 1666 */ 1667 public static java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1668 long layoutSetBranchId, long plid, int status, int start, int end, 1669 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1670 throws com.liferay.portal.kernel.exception.SystemException { 1671 return getPersistence() 1672 .findByL_P_S(layoutSetBranchId, plid, status, start, end, 1673 orderByComparator); 1674 } 1675 1676 /** 1677 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1678 * 1679 * @param layoutSetBranchId the layout set branch ID 1680 * @param plid the plid 1681 * @param status the status 1682 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1683 * @return the first matching layout revision 1684 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1685 * @throws SystemException if a system exception occurred 1686 */ 1687 public static com.liferay.portal.model.LayoutRevision findByL_P_S_First( 1688 long layoutSetBranchId, long plid, int status, 1689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1690 throws com.liferay.portal.NoSuchLayoutRevisionException, 1691 com.liferay.portal.kernel.exception.SystemException { 1692 return getPersistence() 1693 .findByL_P_S_First(layoutSetBranchId, plid, status, 1694 orderByComparator); 1695 } 1696 1697 /** 1698 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1699 * 1700 * @param layoutSetBranchId the layout set branch ID 1701 * @param plid the plid 1702 * @param status the status 1703 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1704 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1705 * @throws SystemException if a system exception occurred 1706 */ 1707 public static com.liferay.portal.model.LayoutRevision fetchByL_P_S_First( 1708 long layoutSetBranchId, long plid, int status, 1709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1710 throws com.liferay.portal.kernel.exception.SystemException { 1711 return getPersistence() 1712 .fetchByL_P_S_First(layoutSetBranchId, plid, status, 1713 orderByComparator); 1714 } 1715 1716 /** 1717 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1718 * 1719 * @param layoutSetBranchId the layout set branch ID 1720 * @param plid the plid 1721 * @param status the status 1722 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1723 * @return the last matching layout revision 1724 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1725 * @throws SystemException if a system exception occurred 1726 */ 1727 public static com.liferay.portal.model.LayoutRevision findByL_P_S_Last( 1728 long layoutSetBranchId, long plid, int status, 1729 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1730 throws com.liferay.portal.NoSuchLayoutRevisionException, 1731 com.liferay.portal.kernel.exception.SystemException { 1732 return getPersistence() 1733 .findByL_P_S_Last(layoutSetBranchId, plid, status, 1734 orderByComparator); 1735 } 1736 1737 /** 1738 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1739 * 1740 * @param layoutSetBranchId the layout set branch ID 1741 * @param plid the plid 1742 * @param status the status 1743 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1744 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1745 * @throws SystemException if a system exception occurred 1746 */ 1747 public static com.liferay.portal.model.LayoutRevision fetchByL_P_S_Last( 1748 long layoutSetBranchId, long plid, int status, 1749 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1750 throws com.liferay.portal.kernel.exception.SystemException { 1751 return getPersistence() 1752 .fetchByL_P_S_Last(layoutSetBranchId, plid, status, 1753 orderByComparator); 1754 } 1755 1756 /** 1757 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1758 * 1759 * @param layoutRevisionId the primary key of the current layout revision 1760 * @param layoutSetBranchId the layout set branch ID 1761 * @param plid the plid 1762 * @param status the status 1763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1764 * @return the previous, current, and next layout revision 1765 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public static com.liferay.portal.model.LayoutRevision[] findByL_P_S_PrevAndNext( 1769 long layoutRevisionId, long layoutSetBranchId, long plid, int status, 1770 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1771 throws com.liferay.portal.NoSuchLayoutRevisionException, 1772 com.liferay.portal.kernel.exception.SystemException { 1773 return getPersistence() 1774 .findByL_P_S_PrevAndNext(layoutRevisionId, 1775 layoutSetBranchId, plid, status, orderByComparator); 1776 } 1777 1778 /** 1779 * Returns all the layout revisions. 1780 * 1781 * @return the layout revisions 1782 * @throws SystemException if a system exception occurred 1783 */ 1784 public static java.util.List<com.liferay.portal.model.LayoutRevision> findAll() 1785 throws com.liferay.portal.kernel.exception.SystemException { 1786 return getPersistence().findAll(); 1787 } 1788 1789 /** 1790 * Returns a range of all the layout revisions. 1791 * 1792 * <p> 1793 * 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. 1794 * </p> 1795 * 1796 * @param start the lower bound of the range of layout revisions 1797 * @param end the upper bound of the range of layout revisions (not inclusive) 1798 * @return the range of layout revisions 1799 * @throws SystemException if a system exception occurred 1800 */ 1801 public static java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1802 int start, int end) 1803 throws com.liferay.portal.kernel.exception.SystemException { 1804 return getPersistence().findAll(start, end); 1805 } 1806 1807 /** 1808 * Returns an ordered range of all the layout revisions. 1809 * 1810 * <p> 1811 * 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. 1812 * </p> 1813 * 1814 * @param start the lower bound of the range of layout revisions 1815 * @param end the upper bound of the range of layout revisions (not inclusive) 1816 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1817 * @return the ordered range of layout revisions 1818 * @throws SystemException if a system exception occurred 1819 */ 1820 public static java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1821 int start, int end, 1822 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1823 throws com.liferay.portal.kernel.exception.SystemException { 1824 return getPersistence().findAll(start, end, orderByComparator); 1825 } 1826 1827 /** 1828 * Removes all the layout revisions where layoutSetBranchId = ? from the database. 1829 * 1830 * @param layoutSetBranchId the layout set branch ID 1831 * @throws SystemException if a system exception occurred 1832 */ 1833 public static void removeByLayoutSetBranchId(long layoutSetBranchId) 1834 throws com.liferay.portal.kernel.exception.SystemException { 1835 getPersistence().removeByLayoutSetBranchId(layoutSetBranchId); 1836 } 1837 1838 /** 1839 * Removes all the layout revisions where plid = ? from the database. 1840 * 1841 * @param plid the plid 1842 * @throws SystemException if a system exception occurred 1843 */ 1844 public static void removeByPlid(long plid) 1845 throws com.liferay.portal.kernel.exception.SystemException { 1846 getPersistence().removeByPlid(plid); 1847 } 1848 1849 /** 1850 * Removes all the layout revisions where layoutSetBranchId = ? and head = ? from the database. 1851 * 1852 * @param layoutSetBranchId the layout set branch ID 1853 * @param head the head 1854 * @throws SystemException if a system exception occurred 1855 */ 1856 public static void removeByL_H(long layoutSetBranchId, boolean head) 1857 throws com.liferay.portal.kernel.exception.SystemException { 1858 getPersistence().removeByL_H(layoutSetBranchId, head); 1859 } 1860 1861 /** 1862 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? from the database. 1863 * 1864 * @param layoutSetBranchId the layout set branch ID 1865 * @param plid the plid 1866 * @throws SystemException if a system exception occurred 1867 */ 1868 public static void removeByL_P(long layoutSetBranchId, long plid) 1869 throws com.liferay.portal.kernel.exception.SystemException { 1870 getPersistence().removeByL_P(layoutSetBranchId, plid); 1871 } 1872 1873 /** 1874 * Removes all the layout revisions where layoutSetBranchId = ? and status = ? from the database. 1875 * 1876 * @param layoutSetBranchId the layout set branch ID 1877 * @param status the status 1878 * @throws SystemException if a system exception occurred 1879 */ 1880 public static void removeByL_S(long layoutSetBranchId, int status) 1881 throws com.liferay.portal.kernel.exception.SystemException { 1882 getPersistence().removeByL_S(layoutSetBranchId, status); 1883 } 1884 1885 /** 1886 * Removes all the layout revisions where head = ? and plid = ? from the database. 1887 * 1888 * @param head the head 1889 * @param plid the plid 1890 * @throws SystemException if a system exception occurred 1891 */ 1892 public static void removeByH_P(boolean head, long plid) 1893 throws com.liferay.portal.kernel.exception.SystemException { 1894 getPersistence().removeByH_P(head, plid); 1895 } 1896 1897 /** 1898 * Removes all the layout revisions where plid = ? and status ≠ ? from the database. 1899 * 1900 * @param plid the plid 1901 * @param status the status 1902 * @throws SystemException if a system exception occurred 1903 */ 1904 public static void removeByP_NotS(long plid, int status) 1905 throws com.liferay.portal.kernel.exception.SystemException { 1906 getPersistence().removeByP_NotS(plid, status); 1907 } 1908 1909 /** 1910 * Removes all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ? from the database. 1911 * 1912 * @param layoutSetBranchId the layout set branch ID 1913 * @param layoutBranchId the layout branch ID 1914 * @param plid the plid 1915 * @throws SystemException if a system exception occurred 1916 */ 1917 public static void removeByL_L_P(long layoutSetBranchId, 1918 long layoutBranchId, long plid) 1919 throws com.liferay.portal.kernel.exception.SystemException { 1920 getPersistence().removeByL_L_P(layoutSetBranchId, layoutBranchId, plid); 1921 } 1922 1923 /** 1924 * Removes all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ? from the database. 1925 * 1926 * @param layoutSetBranchId the layout set branch ID 1927 * @param parentLayoutRevisionId the parent layout revision ID 1928 * @param plid the plid 1929 * @throws SystemException if a system exception occurred 1930 */ 1931 public static void removeByL_P_P(long layoutSetBranchId, 1932 long parentLayoutRevisionId, long plid) 1933 throws com.liferay.portal.kernel.exception.SystemException { 1934 getPersistence() 1935 .removeByL_P_P(layoutSetBranchId, parentLayoutRevisionId, plid); 1936 } 1937 1938 /** 1939 * Removes the layout revision where layoutSetBranchId = ? and head = ? and plid = ? from the database. 1940 * 1941 * @param layoutSetBranchId the layout set branch ID 1942 * @param head the head 1943 * @param plid the plid 1944 * @return the layout revision that was removed 1945 * @throws SystemException if a system exception occurred 1946 */ 1947 public static com.liferay.portal.model.LayoutRevision removeByL_H_P( 1948 long layoutSetBranchId, boolean head, long plid) 1949 throws com.liferay.portal.NoSuchLayoutRevisionException, 1950 com.liferay.portal.kernel.exception.SystemException { 1951 return getPersistence().removeByL_H_P(layoutSetBranchId, head, plid); 1952 } 1953 1954 /** 1955 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ? from the database. 1956 * 1957 * @param layoutSetBranchId the layout set branch ID 1958 * @param plid the plid 1959 * @param status the status 1960 * @throws SystemException if a system exception occurred 1961 */ 1962 public static void removeByL_P_S(long layoutSetBranchId, long plid, 1963 int status) throws com.liferay.portal.kernel.exception.SystemException { 1964 getPersistence().removeByL_P_S(layoutSetBranchId, plid, status); 1965 } 1966 1967 /** 1968 * Removes all the layout revisions from the database. 1969 * 1970 * @throws SystemException if a system exception occurred 1971 */ 1972 public static void removeAll() 1973 throws com.liferay.portal.kernel.exception.SystemException { 1974 getPersistence().removeAll(); 1975 } 1976 1977 /** 1978 * Returns the number of layout revisions where layoutSetBranchId = ?. 1979 * 1980 * @param layoutSetBranchId the layout set branch ID 1981 * @return the number of matching layout revisions 1982 * @throws SystemException if a system exception occurred 1983 */ 1984 public static int countByLayoutSetBranchId(long layoutSetBranchId) 1985 throws com.liferay.portal.kernel.exception.SystemException { 1986 return getPersistence().countByLayoutSetBranchId(layoutSetBranchId); 1987 } 1988 1989 /** 1990 * Returns the number of layout revisions where plid = ?. 1991 * 1992 * @param plid the plid 1993 * @return the number of matching layout revisions 1994 * @throws SystemException if a system exception occurred 1995 */ 1996 public static int countByPlid(long plid) 1997 throws com.liferay.portal.kernel.exception.SystemException { 1998 return getPersistence().countByPlid(plid); 1999 } 2000 2001 /** 2002 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ?. 2003 * 2004 * @param layoutSetBranchId the layout set branch ID 2005 * @param head the head 2006 * @return the number of matching layout revisions 2007 * @throws SystemException if a system exception occurred 2008 */ 2009 public static int countByL_H(long layoutSetBranchId, boolean head) 2010 throws com.liferay.portal.kernel.exception.SystemException { 2011 return getPersistence().countByL_H(layoutSetBranchId, head); 2012 } 2013 2014 /** 2015 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ?. 2016 * 2017 * @param layoutSetBranchId the layout set branch ID 2018 * @param plid the plid 2019 * @return the number of matching layout revisions 2020 * @throws SystemException if a system exception occurred 2021 */ 2022 public static int countByL_P(long layoutSetBranchId, long plid) 2023 throws com.liferay.portal.kernel.exception.SystemException { 2024 return getPersistence().countByL_P(layoutSetBranchId, plid); 2025 } 2026 2027 /** 2028 * Returns the number of layout revisions where layoutSetBranchId = ? and status = ?. 2029 * 2030 * @param layoutSetBranchId the layout set branch ID 2031 * @param status the status 2032 * @return the number of matching layout revisions 2033 * @throws SystemException if a system exception occurred 2034 */ 2035 public static int countByL_S(long layoutSetBranchId, int status) 2036 throws com.liferay.portal.kernel.exception.SystemException { 2037 return getPersistence().countByL_S(layoutSetBranchId, status); 2038 } 2039 2040 /** 2041 * Returns the number of layout revisions where head = ? and plid = ?. 2042 * 2043 * @param head the head 2044 * @param plid the plid 2045 * @return the number of matching layout revisions 2046 * @throws SystemException if a system exception occurred 2047 */ 2048 public static int countByH_P(boolean head, long plid) 2049 throws com.liferay.portal.kernel.exception.SystemException { 2050 return getPersistence().countByH_P(head, plid); 2051 } 2052 2053 /** 2054 * Returns the number of layout revisions where plid = ? and status ≠ ?. 2055 * 2056 * @param plid the plid 2057 * @param status the status 2058 * @return the number of matching layout revisions 2059 * @throws SystemException if a system exception occurred 2060 */ 2061 public static int countByP_NotS(long plid, int status) 2062 throws com.liferay.portal.kernel.exception.SystemException { 2063 return getPersistence().countByP_NotS(plid, status); 2064 } 2065 2066 /** 2067 * Returns the number of layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 2068 * 2069 * @param layoutSetBranchId the layout set branch ID 2070 * @param layoutBranchId the layout branch ID 2071 * @param plid the plid 2072 * @return the number of matching layout revisions 2073 * @throws SystemException if a system exception occurred 2074 */ 2075 public static int countByL_L_P(long layoutSetBranchId, long layoutBranchId, 2076 long plid) throws com.liferay.portal.kernel.exception.SystemException { 2077 return getPersistence() 2078 .countByL_L_P(layoutSetBranchId, layoutBranchId, plid); 2079 } 2080 2081 /** 2082 * Returns the number of layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 2083 * 2084 * @param layoutSetBranchId the layout set branch ID 2085 * @param parentLayoutRevisionId the parent layout revision ID 2086 * @param plid the plid 2087 * @return the number of matching layout revisions 2088 * @throws SystemException if a system exception occurred 2089 */ 2090 public static int countByL_P_P(long layoutSetBranchId, 2091 long parentLayoutRevisionId, long plid) 2092 throws com.liferay.portal.kernel.exception.SystemException { 2093 return getPersistence() 2094 .countByL_P_P(layoutSetBranchId, parentLayoutRevisionId, plid); 2095 } 2096 2097 /** 2098 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ? and plid = ?. 2099 * 2100 * @param layoutSetBranchId the layout set branch ID 2101 * @param head the head 2102 * @param plid the plid 2103 * @return the number of matching layout revisions 2104 * @throws SystemException if a system exception occurred 2105 */ 2106 public static int countByL_H_P(long layoutSetBranchId, boolean head, 2107 long plid) throws com.liferay.portal.kernel.exception.SystemException { 2108 return getPersistence().countByL_H_P(layoutSetBranchId, head, plid); 2109 } 2110 2111 /** 2112 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 2113 * 2114 * @param layoutSetBranchId the layout set branch ID 2115 * @param plid the plid 2116 * @param status the status 2117 * @return the number of matching layout revisions 2118 * @throws SystemException if a system exception occurred 2119 */ 2120 public static int countByL_P_S(long layoutSetBranchId, long plid, int status) 2121 throws com.liferay.portal.kernel.exception.SystemException { 2122 return getPersistence().countByL_P_S(layoutSetBranchId, plid, status); 2123 } 2124 2125 /** 2126 * Returns the number of layout revisions. 2127 * 2128 * @return the number of layout revisions 2129 * @throws SystemException if a system exception occurred 2130 */ 2131 public static int countAll() 2132 throws com.liferay.portal.kernel.exception.SystemException { 2133 return getPersistence().countAll(); 2134 } 2135 2136 public static LayoutRevisionPersistence getPersistence() { 2137 if (_persistence == null) { 2138 _persistence = (LayoutRevisionPersistence)PortalBeanLocatorUtil.locate(LayoutRevisionPersistence.class.getName()); 2139 2140 ReferenceRegistry.registerReference(LayoutRevisionUtil.class, 2141 "_persistence"); 2142 } 2143 2144 return _persistence; 2145 } 2146 2147 /** 2148 * @deprecated 2149 */ 2150 public void setPersistence(LayoutRevisionPersistence persistence) { 2151 } 2152 2153 private static LayoutRevisionPersistence _persistence; 2154 }