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