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