001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.LayoutRevision; 020 021 /** 022 * The persistence interface for the layout revision service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see LayoutRevisionPersistenceImpl 030 * @see LayoutRevisionUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface LayoutRevisionPersistence extends BasePersistence<LayoutRevision> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Returns all the layout revisions where layoutSetBranchId = ?. 043 * 044 * @param layoutSetBranchId the layout set branch ID 045 * @return the matching layout revisions 046 * @throws SystemException if a system exception occurred 047 */ 048 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 049 long layoutSetBranchId) 050 throws com.liferay.portal.kernel.exception.SystemException; 051 052 /** 053 * Returns a range of all the layout revisions where layoutSetBranchId = ?. 054 * 055 * <p> 056 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 057 * </p> 058 * 059 * @param layoutSetBranchId the layout set branch ID 060 * @param start the lower bound of the range of layout revisions 061 * @param end the upper bound of the range of layout revisions (not inclusive) 062 * @return the range of matching layout revisions 063 * @throws SystemException if a system exception occurred 064 */ 065 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 066 long layoutSetBranchId, int start, int end) 067 throws com.liferay.portal.kernel.exception.SystemException; 068 069 /** 070 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ?. 071 * 072 * <p> 073 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 074 * </p> 075 * 076 * @param layoutSetBranchId the layout set branch ID 077 * @param start the lower bound of the range of layout revisions 078 * @param end the upper bound of the range of layout revisions (not inclusive) 079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 080 * @return the ordered range of matching layout revisions 081 * @throws SystemException if a system exception occurred 082 */ 083 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 084 long layoutSetBranchId, int start, int end, 085 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 086 throws com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 090 * 091 * @param layoutSetBranchId the layout set branch ID 092 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 093 * @return the first matching layout revision 094 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_First( 098 long layoutSetBranchId, 099 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 100 throws com.liferay.portal.NoSuchLayoutRevisionException, 101 com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 105 * 106 * @param layoutSetBranchId the layout set branch ID 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 109 * @throws SystemException if a system exception occurred 110 */ 111 public com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_First( 112 long layoutSetBranchId, 113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 118 * 119 * @param layoutSetBranchId the layout set branch ID 120 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 121 * @return the last matching layout revision 122 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 123 * @throws SystemException if a system exception occurred 124 */ 125 public com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_Last( 126 long layoutSetBranchId, 127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 128 throws com.liferay.portal.NoSuchLayoutRevisionException, 129 com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 133 * 134 * @param layoutSetBranchId the layout set branch ID 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 137 * @throws SystemException if a system exception occurred 138 */ 139 public com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_Last( 140 long layoutSetBranchId, 141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 142 throws com.liferay.portal.kernel.exception.SystemException; 143 144 /** 145 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ?. 146 * 147 * @param layoutRevisionId the primary key of the current layout revision 148 * @param layoutSetBranchId the layout set branch ID 149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 150 * @return the previous, current, and next layout revision 151 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 152 * @throws SystemException if a system exception occurred 153 */ 154 public com.liferay.portal.model.LayoutRevision[] findByLayoutSetBranchId_PrevAndNext( 155 long layoutRevisionId, long layoutSetBranchId, 156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 157 throws com.liferay.portal.NoSuchLayoutRevisionException, 158 com.liferay.portal.kernel.exception.SystemException; 159 160 /** 161 * Removes all the layout revisions where layoutSetBranchId = ? from the database. 162 * 163 * @param layoutSetBranchId the layout set branch ID 164 * @throws SystemException if a system exception occurred 165 */ 166 public void removeByLayoutSetBranchId(long layoutSetBranchId) 167 throws com.liferay.portal.kernel.exception.SystemException; 168 169 /** 170 * Returns the number of layout revisions where layoutSetBranchId = ?. 171 * 172 * @param layoutSetBranchId the layout set branch ID 173 * @return the number of matching layout revisions 174 * @throws SystemException if a system exception occurred 175 */ 176 public int countByLayoutSetBranchId(long layoutSetBranchId) 177 throws com.liferay.portal.kernel.exception.SystemException; 178 179 /** 180 * Returns all the layout revisions where plid = ?. 181 * 182 * @param plid the plid 183 * @return the matching layout revisions 184 * @throws SystemException if a system exception occurred 185 */ 186 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 187 long plid) throws com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns a range of all the layout revisions where plid = ?. 191 * 192 * <p> 193 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 194 * </p> 195 * 196 * @param plid the plid 197 * @param start the lower bound of the range of layout revisions 198 * @param end the upper bound of the range of layout revisions (not inclusive) 199 * @return the range of matching layout revisions 200 * @throws SystemException if a system exception occurred 201 */ 202 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 203 long plid, int start, int end) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns an ordered range of all the layout revisions where plid = ?. 208 * 209 * <p> 210 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 211 * </p> 212 * 213 * @param plid the plid 214 * @param start the lower bound of the range of layout revisions 215 * @param end the upper bound of the range of layout revisions (not inclusive) 216 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 217 * @return the ordered range of matching layout revisions 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 221 long plid, int start, int end, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Returns the first layout revision in the ordered set where plid = ?. 227 * 228 * @param plid the plid 229 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 230 * @return the first matching layout revision 231 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portal.model.LayoutRevision findByPlid_First(long plid, 235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 236 throws com.liferay.portal.NoSuchLayoutRevisionException, 237 com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns the first layout revision in the ordered set where plid = ?. 241 * 242 * @param plid the plid 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portal.model.LayoutRevision fetchByPlid_First( 248 long plid, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the last layout revision in the ordered set where plid = ?. 254 * 255 * @param plid the plid 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the last matching layout revision 258 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portal.model.LayoutRevision findByPlid_Last(long plid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.NoSuchLayoutRevisionException, 264 com.liferay.portal.kernel.exception.SystemException; 265 266 /** 267 * Returns the last layout revision in the ordered set where plid = ?. 268 * 269 * @param plid the plid 270 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 271 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 272 * @throws SystemException if a system exception occurred 273 */ 274 public com.liferay.portal.model.LayoutRevision fetchByPlid_Last(long plid, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException; 277 278 /** 279 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ?. 280 * 281 * @param layoutRevisionId the primary key of the current layout revision 282 * @param plid the plid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the previous, current, and next layout revision 285 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public com.liferay.portal.model.LayoutRevision[] findByPlid_PrevAndNext( 289 long layoutRevisionId, long plid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.NoSuchLayoutRevisionException, 292 com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Removes all the layout revisions where plid = ? from the database. 296 * 297 * @param plid the plid 298 * @throws SystemException if a system exception occurred 299 */ 300 public void removeByPlid(long plid) 301 throws com.liferay.portal.kernel.exception.SystemException; 302 303 /** 304 * Returns the number of layout revisions where plid = ?. 305 * 306 * @param plid the plid 307 * @return the number of matching layout revisions 308 * @throws SystemException if a system exception occurred 309 */ 310 public int countByPlid(long plid) 311 throws com.liferay.portal.kernel.exception.SystemException; 312 313 /** 314 * Returns all the layout revisions where layoutSetBranchId = ? and head = ?. 315 * 316 * @param layoutSetBranchId the layout set branch ID 317 * @param head the head 318 * @return the matching layout revisions 319 * @throws SystemException if a system exception occurred 320 */ 321 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 322 long layoutSetBranchId, boolean head) 323 throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns a range of all the layout revisions where layoutSetBranchId = ? and head = ?. 327 * 328 * <p> 329 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 330 * </p> 331 * 332 * @param layoutSetBranchId the layout set branch ID 333 * @param head the head 334 * @param start the lower bound of the range of layout revisions 335 * @param end the upper bound of the range of layout revisions (not inclusive) 336 * @return the range of matching layout revisions 337 * @throws SystemException if a system exception occurred 338 */ 339 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 340 long layoutSetBranchId, boolean head, int start, int end) 341 throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and head = ?. 345 * 346 * <p> 347 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 348 * </p> 349 * 350 * @param layoutSetBranchId the layout set branch ID 351 * @param head the head 352 * @param start the lower bound of the range of layout revisions 353 * @param end the upper bound of the range of layout revisions (not inclusive) 354 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 355 * @return the ordered range of matching layout revisions 356 * @throws SystemException if a system exception occurred 357 */ 358 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 359 long layoutSetBranchId, boolean head, int start, int end, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.kernel.exception.SystemException; 362 363 /** 364 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 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 first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 381 * 382 * @param layoutSetBranchId the layout set branch ID 383 * @param head the head 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 386 * @throws SystemException if a system exception occurred 387 */ 388 public com.liferay.portal.model.LayoutRevision fetchByL_H_First( 389 long layoutSetBranchId, boolean head, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 395 * 396 * @param layoutSetBranchId the layout set branch ID 397 * @param head the head 398 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 399 * @return the last matching layout revision 400 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 401 * @throws SystemException if a system exception occurred 402 */ 403 public com.liferay.portal.model.LayoutRevision findByL_H_Last( 404 long layoutSetBranchId, boolean head, 405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 406 throws com.liferay.portal.NoSuchLayoutRevisionException, 407 com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 411 * 412 * @param layoutSetBranchId the layout set branch ID 413 * @param head the head 414 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 415 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 416 * @throws SystemException if a system exception occurred 417 */ 418 public com.liferay.portal.model.LayoutRevision fetchByL_H_Last( 419 long layoutSetBranchId, boolean head, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.kernel.exception.SystemException; 422 423 /** 424 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 425 * 426 * @param layoutRevisionId the primary key of the current layout revision 427 * @param layoutSetBranchId the layout set branch ID 428 * @param head the head 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the previous, current, and next layout revision 431 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public com.liferay.portal.model.LayoutRevision[] findByL_H_PrevAndNext( 435 long layoutRevisionId, long layoutSetBranchId, boolean head, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.NoSuchLayoutRevisionException, 438 com.liferay.portal.kernel.exception.SystemException; 439 440 /** 441 * Removes all the layout revisions where layoutSetBranchId = ? and head = ? from the database. 442 * 443 * @param layoutSetBranchId the layout set branch ID 444 * @param head the head 445 * @throws SystemException if a system exception occurred 446 */ 447 public void removeByL_H(long layoutSetBranchId, boolean head) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ?. 452 * 453 * @param layoutSetBranchId the layout set branch ID 454 * @param head the head 455 * @return the number of matching layout revisions 456 * @throws SystemException if a system exception occurred 457 */ 458 public int countByL_H(long layoutSetBranchId, boolean head) 459 throws com.liferay.portal.kernel.exception.SystemException; 460 461 /** 462 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ?. 463 * 464 * @param layoutSetBranchId the layout set branch ID 465 * @param plid the plid 466 * @return the matching layout revisions 467 * @throws SystemException if a system exception occurred 468 */ 469 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 470 long layoutSetBranchId, long plid) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ?. 475 * 476 * <p> 477 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 478 * </p> 479 * 480 * @param layoutSetBranchId the layout set branch ID 481 * @param plid the plid 482 * @param start the lower bound of the range of layout revisions 483 * @param end the upper bound of the range of layout revisions (not inclusive) 484 * @return the range of matching layout revisions 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 488 long layoutSetBranchId, long plid, int start, int end) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns an ordered range of all the layout revisions 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 496 * </p> 497 * 498 * @param layoutSetBranchId the layout set branch ID 499 * @param plid the plid 500 * @param start the lower bound of the range of layout revisions 501 * @param end the upper bound of the range of layout revisions (not inclusive) 502 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 503 * @return the ordered range of matching layout revisions 504 * @throws SystemException if a system exception occurred 505 */ 506 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 507 long layoutSetBranchId, long plid, int start, int end, 508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 513 * 514 * @param layoutSetBranchId the layout set branch ID 515 * @param plid the plid 516 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 517 * @return the first matching layout revision 518 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public com.liferay.portal.model.LayoutRevision findByL_P_First( 522 long layoutSetBranchId, long plid, 523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 524 throws com.liferay.portal.NoSuchLayoutRevisionException, 525 com.liferay.portal.kernel.exception.SystemException; 526 527 /** 528 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 529 * 530 * @param layoutSetBranchId the layout set branch ID 531 * @param plid the plid 532 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 533 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 534 * @throws SystemException if a system exception occurred 535 */ 536 public com.liferay.portal.model.LayoutRevision fetchByL_P_First( 537 long layoutSetBranchId, long plid, 538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 539 throws com.liferay.portal.kernel.exception.SystemException; 540 541 /** 542 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 543 * 544 * @param layoutSetBranchId the layout set branch ID 545 * @param plid the plid 546 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 547 * @return the last matching layout revision 548 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public com.liferay.portal.model.LayoutRevision findByL_P_Last( 552 long layoutSetBranchId, long plid, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.NoSuchLayoutRevisionException, 555 com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 559 * 560 * @param layoutSetBranchId the layout set branch ID 561 * @param plid the plid 562 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 563 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public com.liferay.portal.model.LayoutRevision fetchByL_P_Last( 567 long layoutSetBranchId, long plid, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 573 * 574 * @param layoutRevisionId the primary key of the current layout revision 575 * @param layoutSetBranchId the layout set branch ID 576 * @param plid the plid 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the previous, current, and next layout revision 579 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portal.model.LayoutRevision[] findByL_P_PrevAndNext( 583 long layoutRevisionId, long layoutSetBranchId, long plid, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.NoSuchLayoutRevisionException, 586 com.liferay.portal.kernel.exception.SystemException; 587 588 /** 589 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? from the database. 590 * 591 * @param layoutSetBranchId the layout set branch ID 592 * @param plid the plid 593 * @throws SystemException if a system exception occurred 594 */ 595 public void removeByL_P(long layoutSetBranchId, long plid) 596 throws com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ?. 600 * 601 * @param layoutSetBranchId the layout set branch ID 602 * @param plid the plid 603 * @return the number of matching layout revisions 604 * @throws SystemException if a system exception occurred 605 */ 606 public int countByL_P(long layoutSetBranchId, long plid) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Returns all the layout revisions where layoutSetBranchId = ? and status = ?. 611 * 612 * @param layoutSetBranchId the layout set branch ID 613 * @param status the status 614 * @return the matching layout revisions 615 * @throws SystemException if a system exception occurred 616 */ 617 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 618 long layoutSetBranchId, int status) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Returns a range of all the layout revisions 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 626 * </p> 627 * 628 * @param layoutSetBranchId the layout set branch ID 629 * @param status the status 630 * @param start the lower bound of the range of layout revisions 631 * @param end the upper bound of the range of layout revisions (not inclusive) 632 * @return the range of matching layout revisions 633 * @throws SystemException if a system exception occurred 634 */ 635 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 636 long layoutSetBranchId, int status, int start, int end) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and status = ?. 641 * 642 * <p> 643 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 644 * </p> 645 * 646 * @param layoutSetBranchId the layout set branch ID 647 * @param status the status 648 * @param start the lower bound of the range of layout revisions 649 * @param end the upper bound of the range of layout revisions (not inclusive) 650 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 651 * @return the ordered range of matching layout revisions 652 * @throws SystemException if a system exception occurred 653 */ 654 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 655 long layoutSetBranchId, int status, int start, int end, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 661 * 662 * @param layoutSetBranchId the layout set branch ID 663 * @param status the status 664 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 665 * @return the first matching layout revision 666 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 667 * @throws SystemException if a system exception occurred 668 */ 669 public com.liferay.portal.model.LayoutRevision findByL_S_First( 670 long layoutSetBranchId, int status, 671 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 672 throws com.liferay.portal.NoSuchLayoutRevisionException, 673 com.liferay.portal.kernel.exception.SystemException; 674 675 /** 676 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 677 * 678 * @param layoutSetBranchId the layout set branch ID 679 * @param status the status 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public com.liferay.portal.model.LayoutRevision fetchByL_S_First( 685 long layoutSetBranchId, int status, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException; 688 689 /** 690 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 691 * 692 * @param layoutSetBranchId the layout set branch ID 693 * @param status the status 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the last matching layout revision 696 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 697 * @throws SystemException if a system exception occurred 698 */ 699 public com.liferay.portal.model.LayoutRevision findByL_S_Last( 700 long layoutSetBranchId, int status, 701 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 702 throws com.liferay.portal.NoSuchLayoutRevisionException, 703 com.liferay.portal.kernel.exception.SystemException; 704 705 /** 706 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 707 * 708 * @param layoutSetBranchId the layout set branch ID 709 * @param status the status 710 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 711 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public com.liferay.portal.model.LayoutRevision fetchByL_S_Last( 715 long layoutSetBranchId, int status, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException; 718 719 /** 720 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 721 * 722 * @param layoutRevisionId the primary key of the current layout revision 723 * @param layoutSetBranchId the layout set branch ID 724 * @param status the status 725 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 726 * @return the previous, current, and next layout revision 727 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 728 * @throws SystemException if a system exception occurred 729 */ 730 public com.liferay.portal.model.LayoutRevision[] findByL_S_PrevAndNext( 731 long layoutRevisionId, long layoutSetBranchId, int status, 732 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 733 throws com.liferay.portal.NoSuchLayoutRevisionException, 734 com.liferay.portal.kernel.exception.SystemException; 735 736 /** 737 * Removes all the layout revisions where layoutSetBranchId = ? and status = ? from the database. 738 * 739 * @param layoutSetBranchId the layout set branch ID 740 * @param status the status 741 * @throws SystemException if a system exception occurred 742 */ 743 public void removeByL_S(long layoutSetBranchId, int status) 744 throws com.liferay.portal.kernel.exception.SystemException; 745 746 /** 747 * Returns the number of layout revisions where layoutSetBranchId = ? and status = ?. 748 * 749 * @param layoutSetBranchId the layout set branch ID 750 * @param status the status 751 * @return the number of matching layout revisions 752 * @throws SystemException if a system exception occurred 753 */ 754 public int countByL_S(long layoutSetBranchId, int status) 755 throws com.liferay.portal.kernel.exception.SystemException; 756 757 /** 758 * Returns all the layout revisions where head = ? and plid = ?. 759 * 760 * @param head the head 761 * @param plid the plid 762 * @return the matching layout revisions 763 * @throws SystemException if a system exception occurred 764 */ 765 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 766 boolean head, long plid) 767 throws com.liferay.portal.kernel.exception.SystemException; 768 769 /** 770 * Returns a range of all the layout revisions where head = ? and plid = ?. 771 * 772 * <p> 773 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 774 * </p> 775 * 776 * @param head the head 777 * @param plid the plid 778 * @param start the lower bound of the range of layout revisions 779 * @param end the upper bound of the range of layout revisions (not inclusive) 780 * @return the range of matching layout revisions 781 * @throws SystemException if a system exception occurred 782 */ 783 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 784 boolean head, long plid, int start, int end) 785 throws com.liferay.portal.kernel.exception.SystemException; 786 787 /** 788 * Returns an ordered range of all the layout revisions where head = ? and plid = ?. 789 * 790 * <p> 791 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 792 * </p> 793 * 794 * @param head the head 795 * @param plid the plid 796 * @param start the lower bound of the range of layout revisions 797 * @param end the upper bound of the range of layout revisions (not inclusive) 798 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 799 * @return the ordered range of matching layout revisions 800 * @throws SystemException if a system exception occurred 801 */ 802 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 803 boolean head, long plid, int start, int end, 804 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 805 throws com.liferay.portal.kernel.exception.SystemException; 806 807 /** 808 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 809 * 810 * @param head the head 811 * @param plid the plid 812 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 813 * @return the first matching layout revision 814 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 815 * @throws SystemException if a system exception occurred 816 */ 817 public com.liferay.portal.model.LayoutRevision findByH_P_First( 818 boolean head, long plid, 819 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 820 throws com.liferay.portal.NoSuchLayoutRevisionException, 821 com.liferay.portal.kernel.exception.SystemException; 822 823 /** 824 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 825 * 826 * @param head the head 827 * @param plid the plid 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the first matching layout revision, or <code>null</code> 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 fetchByH_P_First( 833 boolean head, long plid, 834 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 835 throws com.liferay.portal.kernel.exception.SystemException; 836 837 /** 838 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 839 * 840 * @param head the head 841 * @param plid the plid 842 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 843 * @return the last matching layout revision 844 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 845 * @throws SystemException if a system exception occurred 846 */ 847 public com.liferay.portal.model.LayoutRevision findByH_P_Last( 848 boolean head, long plid, 849 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 850 throws com.liferay.portal.NoSuchLayoutRevisionException, 851 com.liferay.portal.kernel.exception.SystemException; 852 853 /** 854 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 855 * 856 * @param head the head 857 * @param plid the plid 858 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 859 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 860 * @throws SystemException if a system exception occurred 861 */ 862 public com.liferay.portal.model.LayoutRevision fetchByH_P_Last( 863 boolean head, long plid, 864 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 865 throws com.liferay.portal.kernel.exception.SystemException; 866 867 /** 868 * Returns the layout revisions before and after the current layout revision in the ordered set where head = ? and plid = ?. 869 * 870 * @param layoutRevisionId the primary key of the current layout revision 871 * @param head the head 872 * @param plid the plid 873 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 874 * @return the previous, current, and next layout revision 875 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 876 * @throws SystemException if a system exception occurred 877 */ 878 public com.liferay.portal.model.LayoutRevision[] findByH_P_PrevAndNext( 879 long layoutRevisionId, boolean head, long plid, 880 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 881 throws com.liferay.portal.NoSuchLayoutRevisionException, 882 com.liferay.portal.kernel.exception.SystemException; 883 884 /** 885 * Removes all the layout revisions where head = ? and plid = ? from the database. 886 * 887 * @param head the head 888 * @param plid the plid 889 * @throws SystemException if a system exception occurred 890 */ 891 public void removeByH_P(boolean head, long plid) 892 throws com.liferay.portal.kernel.exception.SystemException; 893 894 /** 895 * Returns the number of layout revisions where head = ? and plid = ?. 896 * 897 * @param head the head 898 * @param plid the plid 899 * @return the number of matching layout revisions 900 * @throws SystemException if a system exception occurred 901 */ 902 public int countByH_P(boolean head, long plid) 903 throws com.liferay.portal.kernel.exception.SystemException; 904 905 /** 906 * Returns all the layout revisions where plid = ? and status ≠ ?. 907 * 908 * @param plid the plid 909 * @param status the status 910 * @return the matching layout revisions 911 * @throws SystemException if a system exception occurred 912 */ 913 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 914 long plid, int status) 915 throws com.liferay.portal.kernel.exception.SystemException; 916 917 /** 918 * Returns a range of all the layout revisions where plid = ? and status ≠ ?. 919 * 920 * <p> 921 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 922 * </p> 923 * 924 * @param plid the plid 925 * @param status the status 926 * @param start the lower bound of the range of layout revisions 927 * @param end the upper bound of the range of layout revisions (not inclusive) 928 * @return the range of matching layout revisions 929 * @throws SystemException if a system exception occurred 930 */ 931 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 932 long plid, int status, int start, int end) 933 throws com.liferay.portal.kernel.exception.SystemException; 934 935 /** 936 * Returns an ordered range of all the layout revisions where plid = ? and status ≠ ?. 937 * 938 * <p> 939 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 940 * </p> 941 * 942 * @param plid the plid 943 * @param status the status 944 * @param start the lower bound of the range of layout revisions 945 * @param end the upper bound of the range of layout revisions (not inclusive) 946 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 947 * @return the ordered range of matching layout revisions 948 * @throws SystemException if a system exception occurred 949 */ 950 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 951 long plid, int status, int start, int end, 952 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 953 throws com.liferay.portal.kernel.exception.SystemException; 954 955 /** 956 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 957 * 958 * @param plid the plid 959 * @param status the status 960 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 961 * @return the first matching layout revision 962 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 963 * @throws SystemException if a system exception occurred 964 */ 965 public com.liferay.portal.model.LayoutRevision findByP_NotS_First( 966 long plid, int status, 967 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 968 throws com.liferay.portal.NoSuchLayoutRevisionException, 969 com.liferay.portal.kernel.exception.SystemException; 970 971 /** 972 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 973 * 974 * @param plid the plid 975 * @param status the status 976 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 977 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 978 * @throws SystemException if a system exception occurred 979 */ 980 public com.liferay.portal.model.LayoutRevision fetchByP_NotS_First( 981 long plid, int status, 982 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 983 throws com.liferay.portal.kernel.exception.SystemException; 984 985 /** 986 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 987 * 988 * @param plid the plid 989 * @param status the status 990 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 991 * @return the last matching layout revision 992 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 993 * @throws SystemException if a system exception occurred 994 */ 995 public com.liferay.portal.model.LayoutRevision findByP_NotS_Last( 996 long plid, int status, 997 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 998 throws com.liferay.portal.NoSuchLayoutRevisionException, 999 com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 1003 * 1004 * @param plid the plid 1005 * @param status the status 1006 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1007 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1008 * @throws SystemException if a system exception occurred 1009 */ 1010 public com.liferay.portal.model.LayoutRevision fetchByP_NotS_Last( 1011 long plid, int status, 1012 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1013 throws com.liferay.portal.kernel.exception.SystemException; 1014 1015 /** 1016 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ? and status ≠ ?. 1017 * 1018 * @param layoutRevisionId the primary key of the current layout revision 1019 * @param plid the plid 1020 * @param status the status 1021 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1022 * @return the previous, current, and next layout revision 1023 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1024 * @throws SystemException if a system exception occurred 1025 */ 1026 public com.liferay.portal.model.LayoutRevision[] findByP_NotS_PrevAndNext( 1027 long layoutRevisionId, long plid, int status, 1028 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1029 throws com.liferay.portal.NoSuchLayoutRevisionException, 1030 com.liferay.portal.kernel.exception.SystemException; 1031 1032 /** 1033 * Removes all the layout revisions where plid = ? and status ≠ ? from the database. 1034 * 1035 * @param plid the plid 1036 * @param status the status 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public void removeByP_NotS(long plid, int status) 1040 throws com.liferay.portal.kernel.exception.SystemException; 1041 1042 /** 1043 * Returns the number of layout revisions where plid = ? and status ≠ ?. 1044 * 1045 * @param plid the plid 1046 * @param status the status 1047 * @return the number of matching layout revisions 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public int countByP_NotS(long plid, int status) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Returns all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1055 * 1056 * @param layoutSetBranchId the layout set branch ID 1057 * @param layoutBranchId the layout branch ID 1058 * @param plid the plid 1059 * @return the matching layout revisions 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1063 long layoutSetBranchId, long layoutBranchId, long plid) 1064 throws com.liferay.portal.kernel.exception.SystemException; 1065 1066 /** 1067 * Returns a range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1071 * </p> 1072 * 1073 * @param layoutSetBranchId the layout set branch ID 1074 * @param layoutBranchId the layout branch ID 1075 * @param plid the plid 1076 * @param start the lower bound of the range of layout revisions 1077 * @param end the upper bound of the range of layout revisions (not inclusive) 1078 * @return the range of matching layout revisions 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1082 long layoutSetBranchId, long layoutBranchId, long plid, int start, 1083 int end) throws com.liferay.portal.kernel.exception.SystemException; 1084 1085 /** 1086 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1087 * 1088 * <p> 1089 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1090 * </p> 1091 * 1092 * @param layoutSetBranchId the layout set branch ID 1093 * @param layoutBranchId the layout branch ID 1094 * @param plid the plid 1095 * @param start the lower bound of the range of layout revisions 1096 * @param end the upper bound of the range of layout revisions (not inclusive) 1097 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1098 * @return the ordered range of matching layout revisions 1099 * @throws SystemException if a system exception occurred 1100 */ 1101 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 1102 long layoutSetBranchId, long layoutBranchId, long plid, int start, 1103 int end, 1104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1105 throws com.liferay.portal.kernel.exception.SystemException; 1106 1107 /** 1108 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1109 * 1110 * @param layoutSetBranchId the layout set branch ID 1111 * @param layoutBranchId the layout branch ID 1112 * @param plid the plid 1113 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1114 * @return the first matching layout revision 1115 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1116 * @throws SystemException if a system exception occurred 1117 */ 1118 public com.liferay.portal.model.LayoutRevision findByL_L_P_First( 1119 long layoutSetBranchId, long layoutBranchId, long plid, 1120 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1121 throws com.liferay.portal.NoSuchLayoutRevisionException, 1122 com.liferay.portal.kernel.exception.SystemException; 1123 1124 /** 1125 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1126 * 1127 * @param layoutSetBranchId the layout set branch ID 1128 * @param layoutBranchId the layout branch ID 1129 * @param plid the plid 1130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1131 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1132 * @throws SystemException if a system exception occurred 1133 */ 1134 public com.liferay.portal.model.LayoutRevision fetchByL_L_P_First( 1135 long layoutSetBranchId, long layoutBranchId, long plid, 1136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1137 throws com.liferay.portal.kernel.exception.SystemException; 1138 1139 /** 1140 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1141 * 1142 * @param layoutSetBranchId the layout set branch ID 1143 * @param layoutBranchId the layout branch ID 1144 * @param plid the plid 1145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1146 * @return the last matching layout revision 1147 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public com.liferay.portal.model.LayoutRevision findByL_L_P_Last( 1151 long layoutSetBranchId, long layoutBranchId, long plid, 1152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1153 throws com.liferay.portal.NoSuchLayoutRevisionException, 1154 com.liferay.portal.kernel.exception.SystemException; 1155 1156 /** 1157 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1158 * 1159 * @param layoutSetBranchId the layout set branch ID 1160 * @param layoutBranchId the layout branch ID 1161 * @param plid the plid 1162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1163 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public com.liferay.portal.model.LayoutRevision fetchByL_L_P_Last( 1167 long layoutSetBranchId, long layoutBranchId, long plid, 1168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1169 throws com.liferay.portal.kernel.exception.SystemException; 1170 1171 /** 1172 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1173 * 1174 * @param layoutRevisionId the primary key of the current layout revision 1175 * @param layoutSetBranchId the layout set branch ID 1176 * @param layoutBranchId the layout branch ID 1177 * @param plid the plid 1178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1179 * @return the previous, current, and next layout revision 1180 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1181 * @throws SystemException if a system exception occurred 1182 */ 1183 public com.liferay.portal.model.LayoutRevision[] findByL_L_P_PrevAndNext( 1184 long layoutRevisionId, long layoutSetBranchId, long layoutBranchId, 1185 long plid, 1186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1187 throws com.liferay.portal.NoSuchLayoutRevisionException, 1188 com.liferay.portal.kernel.exception.SystemException; 1189 1190 /** 1191 * Removes all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ? from the database. 1192 * 1193 * @param layoutSetBranchId the layout set branch ID 1194 * @param layoutBranchId the layout branch ID 1195 * @param plid the plid 1196 * @throws SystemException if a system exception occurred 1197 */ 1198 public void removeByL_L_P(long layoutSetBranchId, long layoutBranchId, 1199 long plid) throws com.liferay.portal.kernel.exception.SystemException; 1200 1201 /** 1202 * Returns the number of layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1203 * 1204 * @param layoutSetBranchId the layout set branch ID 1205 * @param layoutBranchId the layout branch ID 1206 * @param plid the plid 1207 * @return the number of matching layout revisions 1208 * @throws SystemException if a system exception occurred 1209 */ 1210 public int countByL_L_P(long layoutSetBranchId, long layoutBranchId, 1211 long plid) throws com.liferay.portal.kernel.exception.SystemException; 1212 1213 /** 1214 * Returns all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1215 * 1216 * @param layoutSetBranchId the layout set branch ID 1217 * @param parentLayoutRevisionId the parent layout revision ID 1218 * @param plid the plid 1219 * @return the matching layout revisions 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1223 long layoutSetBranchId, long parentLayoutRevisionId, long plid) 1224 throws com.liferay.portal.kernel.exception.SystemException; 1225 1226 /** 1227 * Returns a range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1228 * 1229 * <p> 1230 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1231 * </p> 1232 * 1233 * @param layoutSetBranchId the layout set branch ID 1234 * @param parentLayoutRevisionId the parent layout revision ID 1235 * @param plid the plid 1236 * @param start the lower bound of the range of layout revisions 1237 * @param end the upper bound of the range of layout revisions (not inclusive) 1238 * @return the range of matching layout revisions 1239 * @throws SystemException if a system exception occurred 1240 */ 1241 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1242 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1243 int start, int end) 1244 throws com.liferay.portal.kernel.exception.SystemException; 1245 1246 /** 1247 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1248 * 1249 * <p> 1250 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1251 * </p> 1252 * 1253 * @param layoutSetBranchId the layout set branch ID 1254 * @param parentLayoutRevisionId the parent layout revision ID 1255 * @param plid the plid 1256 * @param start the lower bound of the range of layout revisions 1257 * @param end the upper bound of the range of layout revisions (not inclusive) 1258 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1259 * @return the ordered range of matching layout revisions 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1263 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1264 int start, int end, 1265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1266 throws com.liferay.portal.kernel.exception.SystemException; 1267 1268 /** 1269 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1270 * 1271 * @param layoutSetBranchId the layout set branch ID 1272 * @param parentLayoutRevisionId the parent layout revision ID 1273 * @param plid the plid 1274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1275 * @return the first matching layout revision 1276 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1277 * @throws SystemException if a system exception occurred 1278 */ 1279 public com.liferay.portal.model.LayoutRevision findByL_P_P_First( 1280 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1282 throws com.liferay.portal.NoSuchLayoutRevisionException, 1283 com.liferay.portal.kernel.exception.SystemException; 1284 1285 /** 1286 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1287 * 1288 * @param layoutSetBranchId the layout set branch ID 1289 * @param parentLayoutRevisionId the parent layout revision ID 1290 * @param plid the plid 1291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1292 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1293 * @throws SystemException if a system exception occurred 1294 */ 1295 public com.liferay.portal.model.LayoutRevision fetchByL_P_P_First( 1296 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1298 throws com.liferay.portal.kernel.exception.SystemException; 1299 1300 /** 1301 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1302 * 1303 * @param layoutSetBranchId the layout set branch ID 1304 * @param parentLayoutRevisionId the parent layout revision ID 1305 * @param plid the plid 1306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1307 * @return the last matching layout revision 1308 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1309 * @throws SystemException if a system exception occurred 1310 */ 1311 public com.liferay.portal.model.LayoutRevision findByL_P_P_Last( 1312 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1314 throws com.liferay.portal.NoSuchLayoutRevisionException, 1315 com.liferay.portal.kernel.exception.SystemException; 1316 1317 /** 1318 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1319 * 1320 * @param layoutSetBranchId the layout set branch ID 1321 * @param parentLayoutRevisionId the parent layout revision ID 1322 * @param plid the plid 1323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1324 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1325 * @throws SystemException if a system exception occurred 1326 */ 1327 public com.liferay.portal.model.LayoutRevision fetchByL_P_P_Last( 1328 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1330 throws com.liferay.portal.kernel.exception.SystemException; 1331 1332 /** 1333 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1334 * 1335 * @param layoutRevisionId the primary key of the current layout revision 1336 * @param layoutSetBranchId the layout set branch ID 1337 * @param parentLayoutRevisionId the parent layout revision ID 1338 * @param plid the plid 1339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1340 * @return the previous, current, and next layout revision 1341 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1342 * @throws SystemException if a system exception occurred 1343 */ 1344 public com.liferay.portal.model.LayoutRevision[] findByL_P_P_PrevAndNext( 1345 long layoutRevisionId, long layoutSetBranchId, 1346 long parentLayoutRevisionId, long plid, 1347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1348 throws com.liferay.portal.NoSuchLayoutRevisionException, 1349 com.liferay.portal.kernel.exception.SystemException; 1350 1351 /** 1352 * Removes all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ? from the database. 1353 * 1354 * @param layoutSetBranchId the layout set branch ID 1355 * @param parentLayoutRevisionId the parent layout revision ID 1356 * @param plid the plid 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public void removeByL_P_P(long layoutSetBranchId, 1360 long parentLayoutRevisionId, long plid) 1361 throws com.liferay.portal.kernel.exception.SystemException; 1362 1363 /** 1364 * Returns the number of layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1365 * 1366 * @param layoutSetBranchId the layout set branch ID 1367 * @param parentLayoutRevisionId the parent layout revision ID 1368 * @param plid the plid 1369 * @return the number of matching layout revisions 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 public int countByL_P_P(long layoutSetBranchId, 1373 long parentLayoutRevisionId, long plid) 1374 throws com.liferay.portal.kernel.exception.SystemException; 1375 1376 /** 1377 * Returns the layout revision where layoutSetBranchId = ? and head = ? and plid = ? or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 1378 * 1379 * @param layoutSetBranchId the layout set branch ID 1380 * @param head the head 1381 * @param plid the plid 1382 * @return the matching layout revision 1383 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1384 * @throws SystemException if a system exception occurred 1385 */ 1386 public com.liferay.portal.model.LayoutRevision findByL_H_P( 1387 long layoutSetBranchId, boolean head, long plid) 1388 throws com.liferay.portal.NoSuchLayoutRevisionException, 1389 com.liferay.portal.kernel.exception.SystemException; 1390 1391 /** 1392 * 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. 1393 * 1394 * @param layoutSetBranchId the layout set branch ID 1395 * @param head the head 1396 * @param plid the plid 1397 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1398 * @throws SystemException if a system exception occurred 1399 */ 1400 public com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1401 long layoutSetBranchId, boolean head, long plid) 1402 throws com.liferay.portal.kernel.exception.SystemException; 1403 1404 /** 1405 * 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. 1406 * 1407 * @param layoutSetBranchId the layout set branch ID 1408 * @param head the head 1409 * @param plid the plid 1410 * @param retrieveFromCache whether to use the finder cache 1411 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1412 * @throws SystemException if a system exception occurred 1413 */ 1414 public com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1415 long layoutSetBranchId, boolean head, long plid, 1416 boolean retrieveFromCache) 1417 throws com.liferay.portal.kernel.exception.SystemException; 1418 1419 /** 1420 * Removes the layout revision where layoutSetBranchId = ? and head = ? and plid = ? from the database. 1421 * 1422 * @param layoutSetBranchId the layout set branch ID 1423 * @param head the head 1424 * @param plid the plid 1425 * @return the layout revision that was removed 1426 * @throws SystemException if a system exception occurred 1427 */ 1428 public com.liferay.portal.model.LayoutRevision removeByL_H_P( 1429 long layoutSetBranchId, boolean head, long plid) 1430 throws com.liferay.portal.NoSuchLayoutRevisionException, 1431 com.liferay.portal.kernel.exception.SystemException; 1432 1433 /** 1434 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ? and plid = ?. 1435 * 1436 * @param layoutSetBranchId the layout set branch ID 1437 * @param head the head 1438 * @param plid the plid 1439 * @return the number of matching layout revisions 1440 * @throws SystemException if a system exception occurred 1441 */ 1442 public int countByL_H_P(long layoutSetBranchId, boolean head, long plid) 1443 throws com.liferay.portal.kernel.exception.SystemException; 1444 1445 /** 1446 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1447 * 1448 * @param layoutSetBranchId the layout set branch ID 1449 * @param plid the plid 1450 * @param status the status 1451 * @return the matching layout revisions 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1455 long layoutSetBranchId, long plid, int status) 1456 throws com.liferay.portal.kernel.exception.SystemException; 1457 1458 /** 1459 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1460 * 1461 * <p> 1462 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1463 * </p> 1464 * 1465 * @param layoutSetBranchId the layout set branch ID 1466 * @param plid the plid 1467 * @param status the status 1468 * @param start the lower bound of the range of layout revisions 1469 * @param end the upper bound of the range of layout revisions (not inclusive) 1470 * @return the range of matching layout revisions 1471 * @throws SystemException if a system exception occurred 1472 */ 1473 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1474 long layoutSetBranchId, long plid, int status, int start, int end) 1475 throws com.liferay.portal.kernel.exception.SystemException; 1476 1477 /** 1478 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1479 * 1480 * <p> 1481 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1482 * </p> 1483 * 1484 * @param layoutSetBranchId the layout set branch ID 1485 * @param plid the plid 1486 * @param status the status 1487 * @param start the lower bound of the range of layout revisions 1488 * @param end the upper bound of the range of layout revisions (not inclusive) 1489 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1490 * @return the ordered range of matching layout revisions 1491 * @throws SystemException if a system exception occurred 1492 */ 1493 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1494 long layoutSetBranchId, long plid, int status, int start, int end, 1495 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1496 throws com.liferay.portal.kernel.exception.SystemException; 1497 1498 /** 1499 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1500 * 1501 * @param layoutSetBranchId the layout set branch ID 1502 * @param plid the plid 1503 * @param status the status 1504 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1505 * @return the first matching layout revision 1506 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1507 * @throws SystemException if a system exception occurred 1508 */ 1509 public com.liferay.portal.model.LayoutRevision findByL_P_S_First( 1510 long layoutSetBranchId, long plid, int status, 1511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1512 throws com.liferay.portal.NoSuchLayoutRevisionException, 1513 com.liferay.portal.kernel.exception.SystemException; 1514 1515 /** 1516 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1517 * 1518 * @param layoutSetBranchId the layout set branch ID 1519 * @param plid the plid 1520 * @param status the status 1521 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1522 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1523 * @throws SystemException if a system exception occurred 1524 */ 1525 public com.liferay.portal.model.LayoutRevision fetchByL_P_S_First( 1526 long layoutSetBranchId, long plid, int status, 1527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1528 throws com.liferay.portal.kernel.exception.SystemException; 1529 1530 /** 1531 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1532 * 1533 * @param layoutSetBranchId the layout set branch ID 1534 * @param plid the plid 1535 * @param status the status 1536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1537 * @return the last matching layout revision 1538 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1539 * @throws SystemException if a system exception occurred 1540 */ 1541 public com.liferay.portal.model.LayoutRevision findByL_P_S_Last( 1542 long layoutSetBranchId, long plid, int status, 1543 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1544 throws com.liferay.portal.NoSuchLayoutRevisionException, 1545 com.liferay.portal.kernel.exception.SystemException; 1546 1547 /** 1548 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1549 * 1550 * @param layoutSetBranchId the layout set branch ID 1551 * @param plid the plid 1552 * @param status the status 1553 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1554 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1555 * @throws SystemException if a system exception occurred 1556 */ 1557 public com.liferay.portal.model.LayoutRevision fetchByL_P_S_Last( 1558 long layoutSetBranchId, long plid, int status, 1559 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1560 throws com.liferay.portal.kernel.exception.SystemException; 1561 1562 /** 1563 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1564 * 1565 * @param layoutRevisionId the primary key of the current layout revision 1566 * @param layoutSetBranchId the layout set branch ID 1567 * @param plid the plid 1568 * @param status the status 1569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1570 * @return the previous, current, and next layout revision 1571 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1572 * @throws SystemException if a system exception occurred 1573 */ 1574 public com.liferay.portal.model.LayoutRevision[] findByL_P_S_PrevAndNext( 1575 long layoutRevisionId, long layoutSetBranchId, long plid, int status, 1576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1577 throws com.liferay.portal.NoSuchLayoutRevisionException, 1578 com.liferay.portal.kernel.exception.SystemException; 1579 1580 /** 1581 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ? from the database. 1582 * 1583 * @param layoutSetBranchId the layout set branch ID 1584 * @param plid the plid 1585 * @param status the status 1586 * @throws SystemException if a system exception occurred 1587 */ 1588 public void removeByL_P_S(long layoutSetBranchId, long plid, int status) 1589 throws com.liferay.portal.kernel.exception.SystemException; 1590 1591 /** 1592 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1593 * 1594 * @param layoutSetBranchId the layout set branch ID 1595 * @param plid the plid 1596 * @param status the status 1597 * @return the number of matching layout revisions 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public int countByL_P_S(long layoutSetBranchId, long plid, int status) 1601 throws com.liferay.portal.kernel.exception.SystemException; 1602 1603 /** 1604 * Caches the layout revision in the entity cache if it is enabled. 1605 * 1606 * @param layoutRevision the layout revision 1607 */ 1608 public void cacheResult( 1609 com.liferay.portal.model.LayoutRevision layoutRevision); 1610 1611 /** 1612 * Caches the layout revisions in the entity cache if it is enabled. 1613 * 1614 * @param layoutRevisions the layout revisions 1615 */ 1616 public void cacheResult( 1617 java.util.List<com.liferay.portal.model.LayoutRevision> layoutRevisions); 1618 1619 /** 1620 * Creates a new layout revision with the primary key. Does not add the layout revision to the database. 1621 * 1622 * @param layoutRevisionId the primary key for the new layout revision 1623 * @return the new layout revision 1624 */ 1625 public com.liferay.portal.model.LayoutRevision create(long layoutRevisionId); 1626 1627 /** 1628 * Removes the layout revision with the primary key from the database. Also notifies the appropriate model listeners. 1629 * 1630 * @param layoutRevisionId the primary key of the layout revision 1631 * @return the layout revision that was removed 1632 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1633 * @throws SystemException if a system exception occurred 1634 */ 1635 public com.liferay.portal.model.LayoutRevision remove(long layoutRevisionId) 1636 throws com.liferay.portal.NoSuchLayoutRevisionException, 1637 com.liferay.portal.kernel.exception.SystemException; 1638 1639 public com.liferay.portal.model.LayoutRevision updateImpl( 1640 com.liferay.portal.model.LayoutRevision layoutRevision) 1641 throws com.liferay.portal.kernel.exception.SystemException; 1642 1643 /** 1644 * Returns the layout revision with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 1645 * 1646 * @param layoutRevisionId the primary key of the layout revision 1647 * @return the layout revision 1648 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1649 * @throws SystemException if a system exception occurred 1650 */ 1651 public com.liferay.portal.model.LayoutRevision findByPrimaryKey( 1652 long layoutRevisionId) 1653 throws com.liferay.portal.NoSuchLayoutRevisionException, 1654 com.liferay.portal.kernel.exception.SystemException; 1655 1656 /** 1657 * Returns the layout revision with the primary key or returns <code>null</code> if it could not be found. 1658 * 1659 * @param layoutRevisionId the primary key of the layout revision 1660 * @return the layout revision, or <code>null</code> if a layout revision with the primary key could not be found 1661 * @throws SystemException if a system exception occurred 1662 */ 1663 public com.liferay.portal.model.LayoutRevision fetchByPrimaryKey( 1664 long layoutRevisionId) 1665 throws com.liferay.portal.kernel.exception.SystemException; 1666 1667 /** 1668 * Returns all the layout revisions. 1669 * 1670 * @return the layout revisions 1671 * @throws SystemException if a system exception occurred 1672 */ 1673 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll() 1674 throws com.liferay.portal.kernel.exception.SystemException; 1675 1676 /** 1677 * Returns a range of all the layout revisions. 1678 * 1679 * <p> 1680 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1681 * </p> 1682 * 1683 * @param start the lower bound of the range of layout revisions 1684 * @param end the upper bound of the range of layout revisions (not inclusive) 1685 * @return the range of layout revisions 1686 * @throws SystemException if a system exception occurred 1687 */ 1688 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1689 int start, int end) 1690 throws com.liferay.portal.kernel.exception.SystemException; 1691 1692 /** 1693 * Returns an ordered range of all the layout revisions. 1694 * 1695 * <p> 1696 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1697 * </p> 1698 * 1699 * @param start the lower bound of the range of layout revisions 1700 * @param end the upper bound of the range of layout revisions (not inclusive) 1701 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1702 * @return the ordered range of layout revisions 1703 * @throws SystemException if a system exception occurred 1704 */ 1705 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1706 int start, int end, 1707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1708 throws com.liferay.portal.kernel.exception.SystemException; 1709 1710 /** 1711 * Removes all the layout revisions from the database. 1712 * 1713 * @throws SystemException if a system exception occurred 1714 */ 1715 public void removeAll() 1716 throws com.liferay.portal.kernel.exception.SystemException; 1717 1718 /** 1719 * Returns the number of layout revisions. 1720 * 1721 * @return the number of layout revisions 1722 * @throws SystemException if a system exception occurred 1723 */ 1724 public int countAll() 1725 throws com.liferay.portal.kernel.exception.SystemException; 1726 }