001 /** 002 * Copyright (c) 2000-present 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 */ 047 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 048 long layoutSetBranchId); 049 050 /** 051 * Returns a range of all the layout revisions where layoutSetBranchId = ?. 052 * 053 * <p> 054 * 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. 055 * </p> 056 * 057 * @param layoutSetBranchId the layout set branch ID 058 * @param start the lower bound of the range of layout revisions 059 * @param end the upper bound of the range of layout revisions (not inclusive) 060 * @return the range of matching layout revisions 061 */ 062 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 063 long layoutSetBranchId, int start, int end); 064 065 /** 066 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ?. 067 * 068 * <p> 069 * 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. 070 * </p> 071 * 072 * @param layoutSetBranchId the layout set branch ID 073 * @param start the lower bound of the range of layout revisions 074 * @param end the upper bound of the range of layout revisions (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching layout revisions 077 */ 078 public java.util.List<com.liferay.portal.model.LayoutRevision> findByLayoutSetBranchId( 079 long layoutSetBranchId, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 081 082 /** 083 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 084 * 085 * @param layoutSetBranchId the layout set branch ID 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching layout revision 088 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 089 */ 090 public com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_First( 091 long layoutSetBranchId, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 093 throws com.liferay.portal.NoSuchLayoutRevisionException; 094 095 /** 096 * Returns the first layout revision in the ordered set where layoutSetBranchId = ?. 097 * 098 * @param layoutSetBranchId the layout set branch ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 101 */ 102 public com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_First( 103 long layoutSetBranchId, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 105 106 /** 107 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 108 * 109 * @param layoutSetBranchId the layout set branch ID 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching layout revision 112 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 113 */ 114 public com.liferay.portal.model.LayoutRevision findByLayoutSetBranchId_Last( 115 long layoutSetBranchId, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 117 throws com.liferay.portal.NoSuchLayoutRevisionException; 118 119 /** 120 * Returns the last layout revision in the ordered set where layoutSetBranchId = ?. 121 * 122 * @param layoutSetBranchId the layout set branch ID 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 125 */ 126 public com.liferay.portal.model.LayoutRevision fetchByLayoutSetBranchId_Last( 127 long layoutSetBranchId, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 129 130 /** 131 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ?. 132 * 133 * @param layoutRevisionId the primary key of the current layout revision 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 previous, current, and next layout revision 137 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 138 */ 139 public com.liferay.portal.model.LayoutRevision[] findByLayoutSetBranchId_PrevAndNext( 140 long layoutRevisionId, long layoutSetBranchId, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 142 throws com.liferay.portal.NoSuchLayoutRevisionException; 143 144 /** 145 * Removes all the layout revisions where layoutSetBranchId = ? from the database. 146 * 147 * @param layoutSetBranchId the layout set branch ID 148 */ 149 public void removeByLayoutSetBranchId(long layoutSetBranchId); 150 151 /** 152 * Returns the number of layout revisions where layoutSetBranchId = ?. 153 * 154 * @param layoutSetBranchId the layout set branch ID 155 * @return the number of matching layout revisions 156 */ 157 public int countByLayoutSetBranchId(long layoutSetBranchId); 158 159 /** 160 * Returns all the layout revisions where plid = ?. 161 * 162 * @param plid the plid 163 * @return the matching layout revisions 164 */ 165 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 166 long plid); 167 168 /** 169 * Returns a range of all the layout revisions where plid = ?. 170 * 171 * <p> 172 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 173 * </p> 174 * 175 * @param plid the plid 176 * @param start the lower bound of the range of layout revisions 177 * @param end the upper bound of the range of layout revisions (not inclusive) 178 * @return the range of matching layout revisions 179 */ 180 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 181 long plid, int start, int end); 182 183 /** 184 * Returns an ordered range of all the layout revisions where plid = ?. 185 * 186 * <p> 187 * 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. 188 * </p> 189 * 190 * @param plid the plid 191 * @param start the lower bound of the range of layout revisions 192 * @param end the upper bound of the range of layout revisions (not inclusive) 193 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 194 * @return the ordered range of matching layout revisions 195 */ 196 public java.util.List<com.liferay.portal.model.LayoutRevision> findByPlid( 197 long plid, int start, int end, 198 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 199 200 /** 201 * Returns the first layout revision in the ordered set where plid = ?. 202 * 203 * @param plid the plid 204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 205 * @return the first matching layout revision 206 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 207 */ 208 public com.liferay.portal.model.LayoutRevision findByPlid_First(long plid, 209 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 210 throws com.liferay.portal.NoSuchLayoutRevisionException; 211 212 /** 213 * Returns the first layout revision in the ordered set where plid = ?. 214 * 215 * @param plid the plid 216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 217 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 218 */ 219 public com.liferay.portal.model.LayoutRevision fetchByPlid_First( 220 long plid, 221 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 222 223 /** 224 * Returns the last layout revision in the ordered set where plid = ?. 225 * 226 * @param plid the plid 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the last matching layout revision 229 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 230 */ 231 public com.liferay.portal.model.LayoutRevision findByPlid_Last(long plid, 232 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 233 throws com.liferay.portal.NoSuchLayoutRevisionException; 234 235 /** 236 * Returns the last layout revision in the ordered set where plid = ?. 237 * 238 * @param plid the plid 239 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 240 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 241 */ 242 public com.liferay.portal.model.LayoutRevision fetchByPlid_Last(long plid, 243 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 244 245 /** 246 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ?. 247 * 248 * @param layoutRevisionId the primary key of the current layout revision 249 * @param plid the plid 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the previous, current, and next layout revision 252 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 253 */ 254 public com.liferay.portal.model.LayoutRevision[] findByPlid_PrevAndNext( 255 long layoutRevisionId, long plid, 256 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 257 throws com.liferay.portal.NoSuchLayoutRevisionException; 258 259 /** 260 * Removes all the layout revisions where plid = ? from the database. 261 * 262 * @param plid the plid 263 */ 264 public void removeByPlid(long plid); 265 266 /** 267 * Returns the number of layout revisions where plid = ?. 268 * 269 * @param plid the plid 270 * @return the number of matching layout revisions 271 */ 272 public int countByPlid(long plid); 273 274 /** 275 * Returns all the layout revisions where layoutSetBranchId = ? and head = ?. 276 * 277 * @param layoutSetBranchId the layout set branch ID 278 * @param head the head 279 * @return the matching layout revisions 280 */ 281 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 282 long layoutSetBranchId, boolean head); 283 284 /** 285 * Returns a range of all the layout revisions where layoutSetBranchId = ? and head = ?. 286 * 287 * <p> 288 * 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. 289 * </p> 290 * 291 * @param layoutSetBranchId the layout set branch ID 292 * @param head the head 293 * @param start the lower bound of the range of layout revisions 294 * @param end the upper bound of the range of layout revisions (not inclusive) 295 * @return the range of matching layout revisions 296 */ 297 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 298 long layoutSetBranchId, boolean head, int start, int end); 299 300 /** 301 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and head = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param layoutSetBranchId the layout set branch ID 308 * @param head the head 309 * @param start the lower bound of the range of layout revisions 310 * @param end the upper bound of the range of layout revisions (not inclusive) 311 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 312 * @return the ordered range of matching layout revisions 313 */ 314 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_H( 315 long layoutSetBranchId, boolean head, int start, int end, 316 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 317 318 /** 319 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 320 * 321 * @param layoutSetBranchId the layout set branch ID 322 * @param head the head 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the first matching layout revision 325 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 326 */ 327 public com.liferay.portal.model.LayoutRevision findByL_H_First( 328 long layoutSetBranchId, boolean head, 329 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 330 throws com.liferay.portal.NoSuchLayoutRevisionException; 331 332 /** 333 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 334 * 335 * @param layoutSetBranchId the layout set branch ID 336 * @param head the head 337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 338 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 339 */ 340 public com.liferay.portal.model.LayoutRevision fetchByL_H_First( 341 long layoutSetBranchId, boolean head, 342 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 343 344 /** 345 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 346 * 347 * @param layoutSetBranchId the layout set branch ID 348 * @param head the head 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching layout revision 351 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 352 */ 353 public com.liferay.portal.model.LayoutRevision findByL_H_Last( 354 long layoutSetBranchId, boolean head, 355 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 356 throws com.liferay.portal.NoSuchLayoutRevisionException; 357 358 /** 359 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 360 * 361 * @param layoutSetBranchId the layout set branch ID 362 * @param head the head 363 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 364 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 365 */ 366 public com.liferay.portal.model.LayoutRevision fetchByL_H_Last( 367 long layoutSetBranchId, boolean head, 368 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 369 370 /** 371 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and head = ?. 372 * 373 * @param layoutRevisionId the primary key of the current layout revision 374 * @param layoutSetBranchId the layout set branch ID 375 * @param head the head 376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 377 * @return the previous, current, and next layout revision 378 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 379 */ 380 public com.liferay.portal.model.LayoutRevision[] findByL_H_PrevAndNext( 381 long layoutRevisionId, long layoutSetBranchId, boolean head, 382 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 383 throws com.liferay.portal.NoSuchLayoutRevisionException; 384 385 /** 386 * Removes all the layout revisions where layoutSetBranchId = ? and head = ? from the database. 387 * 388 * @param layoutSetBranchId the layout set branch ID 389 * @param head the head 390 */ 391 public void removeByL_H(long layoutSetBranchId, boolean head); 392 393 /** 394 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ?. 395 * 396 * @param layoutSetBranchId the layout set branch ID 397 * @param head the head 398 * @return the number of matching layout revisions 399 */ 400 public int countByL_H(long layoutSetBranchId, boolean head); 401 402 /** 403 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ?. 404 * 405 * @param layoutSetBranchId the layout set branch ID 406 * @param plid the plid 407 * @return the matching layout revisions 408 */ 409 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 410 long layoutSetBranchId, long plid); 411 412 /** 413 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param layoutSetBranchId the layout set branch ID 420 * @param plid the plid 421 * @param start the lower bound of the range of layout revisions 422 * @param end the upper bound of the range of layout revisions (not inclusive) 423 * @return the range of matching layout revisions 424 */ 425 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 426 long layoutSetBranchId, long plid, int start, int end); 427 428 /** 429 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and plid = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param layoutSetBranchId the layout set branch ID 436 * @param plid the plid 437 * @param start the lower bound of the range of layout revisions 438 * @param end the upper bound of the range of layout revisions (not inclusive) 439 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 440 * @return the ordered range of matching layout revisions 441 */ 442 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P( 443 long layoutSetBranchId, long plid, int start, int end, 444 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 445 446 /** 447 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 448 * 449 * @param layoutSetBranchId the layout set branch ID 450 * @param plid the plid 451 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 452 * @return the first matching layout revision 453 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 454 */ 455 public com.liferay.portal.model.LayoutRevision findByL_P_First( 456 long layoutSetBranchId, long plid, 457 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 458 throws com.liferay.portal.NoSuchLayoutRevisionException; 459 460 /** 461 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 462 * 463 * @param layoutSetBranchId the layout set branch ID 464 * @param plid the plid 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 467 */ 468 public com.liferay.portal.model.LayoutRevision fetchByL_P_First( 469 long layoutSetBranchId, long plid, 470 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 471 472 /** 473 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 474 * 475 * @param layoutSetBranchId the layout set branch ID 476 * @param plid the plid 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the last matching layout revision 479 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 480 */ 481 public com.liferay.portal.model.LayoutRevision findByL_P_Last( 482 long layoutSetBranchId, long plid, 483 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 484 throws com.liferay.portal.NoSuchLayoutRevisionException; 485 486 /** 487 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 488 * 489 * @param layoutSetBranchId the layout set branch ID 490 * @param plid the plid 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 493 */ 494 public com.liferay.portal.model.LayoutRevision fetchByL_P_Last( 495 long layoutSetBranchId, long plid, 496 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 497 498 /** 499 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ?. 500 * 501 * @param layoutRevisionId the primary key of the current layout revision 502 * @param layoutSetBranchId the layout set branch ID 503 * @param plid the plid 504 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 505 * @return the previous, current, and next layout revision 506 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 507 */ 508 public com.liferay.portal.model.LayoutRevision[] findByL_P_PrevAndNext( 509 long layoutRevisionId, long layoutSetBranchId, long plid, 510 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 511 throws com.liferay.portal.NoSuchLayoutRevisionException; 512 513 /** 514 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? from the database. 515 * 516 * @param layoutSetBranchId the layout set branch ID 517 * @param plid the plid 518 */ 519 public void removeByL_P(long layoutSetBranchId, long plid); 520 521 /** 522 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ?. 523 * 524 * @param layoutSetBranchId the layout set branch ID 525 * @param plid the plid 526 * @return the number of matching layout revisions 527 */ 528 public int countByL_P(long layoutSetBranchId, long plid); 529 530 /** 531 * Returns all the layout revisions where layoutSetBranchId = ? and status = ?. 532 * 533 * @param layoutSetBranchId the layout set branch ID 534 * @param status the status 535 * @return the matching layout revisions 536 */ 537 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 538 long layoutSetBranchId, int status); 539 540 /** 541 * Returns a range of all the layout revisions where layoutSetBranchId = ? and status = ?. 542 * 543 * <p> 544 * 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. 545 * </p> 546 * 547 * @param layoutSetBranchId the layout set branch ID 548 * @param status the status 549 * @param start the lower bound of the range of layout revisions 550 * @param end the upper bound of the range of layout revisions (not inclusive) 551 * @return the range of matching layout revisions 552 */ 553 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 554 long layoutSetBranchId, int status, int start, int end); 555 556 /** 557 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and status = ?. 558 * 559 * <p> 560 * 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. 561 * </p> 562 * 563 * @param layoutSetBranchId the layout set branch ID 564 * @param status the status 565 * @param start the lower bound of the range of layout revisions 566 * @param end the upper bound of the range of layout revisions (not inclusive) 567 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 568 * @return the ordered range of matching layout revisions 569 */ 570 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_S( 571 long layoutSetBranchId, int status, int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 573 574 /** 575 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 576 * 577 * @param layoutSetBranchId the layout set branch ID 578 * @param status the status 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching layout revision 581 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 582 */ 583 public com.liferay.portal.model.LayoutRevision findByL_S_First( 584 long layoutSetBranchId, int status, 585 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 586 throws com.liferay.portal.NoSuchLayoutRevisionException; 587 588 /** 589 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 590 * 591 * @param layoutSetBranchId the layout set branch ID 592 * @param status the status 593 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 594 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 595 */ 596 public com.liferay.portal.model.LayoutRevision fetchByL_S_First( 597 long layoutSetBranchId, int status, 598 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 599 600 /** 601 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 602 * 603 * @param layoutSetBranchId the layout set branch ID 604 * @param status the status 605 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 606 * @return the last matching layout revision 607 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 608 */ 609 public com.liferay.portal.model.LayoutRevision findByL_S_Last( 610 long layoutSetBranchId, int status, 611 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 612 throws com.liferay.portal.NoSuchLayoutRevisionException; 613 614 /** 615 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 616 * 617 * @param layoutSetBranchId the layout set branch ID 618 * @param status the status 619 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 620 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 621 */ 622 public com.liferay.portal.model.LayoutRevision fetchByL_S_Last( 623 long layoutSetBranchId, int status, 624 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 625 626 /** 627 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and status = ?. 628 * 629 * @param layoutRevisionId the primary key of the current layout revision 630 * @param layoutSetBranchId the layout set branch ID 631 * @param status the status 632 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 633 * @return the previous, current, and next layout revision 634 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 635 */ 636 public com.liferay.portal.model.LayoutRevision[] findByL_S_PrevAndNext( 637 long layoutRevisionId, long layoutSetBranchId, int status, 638 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 639 throws com.liferay.portal.NoSuchLayoutRevisionException; 640 641 /** 642 * Removes all the layout revisions where layoutSetBranchId = ? and status = ? from the database. 643 * 644 * @param layoutSetBranchId the layout set branch ID 645 * @param status the status 646 */ 647 public void removeByL_S(long layoutSetBranchId, int status); 648 649 /** 650 * Returns the number of layout revisions where layoutSetBranchId = ? and status = ?. 651 * 652 * @param layoutSetBranchId the layout set branch ID 653 * @param status the status 654 * @return the number of matching layout revisions 655 */ 656 public int countByL_S(long layoutSetBranchId, int status); 657 658 /** 659 * Returns all the layout revisions where head = ? and plid = ?. 660 * 661 * @param head the head 662 * @param plid the plid 663 * @return the matching layout revisions 664 */ 665 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 666 boolean head, long plid); 667 668 /** 669 * Returns a range of all the layout revisions where head = ? and plid = ?. 670 * 671 * <p> 672 * 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. 673 * </p> 674 * 675 * @param head the head 676 * @param plid the plid 677 * @param start the lower bound of the range of layout revisions 678 * @param end the upper bound of the range of layout revisions (not inclusive) 679 * @return the range of matching layout revisions 680 */ 681 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 682 boolean head, long plid, int start, int end); 683 684 /** 685 * Returns an ordered range of all the layout revisions where head = ? and plid = ?. 686 * 687 * <p> 688 * 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. 689 * </p> 690 * 691 * @param head the head 692 * @param plid the plid 693 * @param start the lower bound of the range of layout revisions 694 * @param end the upper bound of the range of layout revisions (not inclusive) 695 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 696 * @return the ordered range of matching layout revisions 697 */ 698 public java.util.List<com.liferay.portal.model.LayoutRevision> findByH_P( 699 boolean head, long plid, int start, int end, 700 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 701 702 /** 703 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 704 * 705 * @param head the head 706 * @param plid the plid 707 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 708 * @return the first matching layout revision 709 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 710 */ 711 public com.liferay.portal.model.LayoutRevision findByH_P_First( 712 boolean head, long plid, 713 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 714 throws com.liferay.portal.NoSuchLayoutRevisionException; 715 716 /** 717 * Returns the first layout revision in the ordered set where head = ? and plid = ?. 718 * 719 * @param head the head 720 * @param plid the plid 721 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 722 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 723 */ 724 public com.liferay.portal.model.LayoutRevision fetchByH_P_First( 725 boolean head, long plid, 726 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 727 728 /** 729 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 730 * 731 * @param head the head 732 * @param plid the plid 733 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 734 * @return the last matching layout revision 735 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 736 */ 737 public com.liferay.portal.model.LayoutRevision findByH_P_Last( 738 boolean head, long plid, 739 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 740 throws com.liferay.portal.NoSuchLayoutRevisionException; 741 742 /** 743 * Returns the last layout revision in the ordered set where head = ? and plid = ?. 744 * 745 * @param head the head 746 * @param plid the plid 747 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 748 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 749 */ 750 public com.liferay.portal.model.LayoutRevision fetchByH_P_Last( 751 boolean head, long plid, 752 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 753 754 /** 755 * Returns the layout revisions before and after the current layout revision in the ordered set where head = ? and plid = ?. 756 * 757 * @param layoutRevisionId the primary key of the current layout revision 758 * @param head the head 759 * @param plid the plid 760 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 761 * @return the previous, current, and next layout revision 762 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 763 */ 764 public com.liferay.portal.model.LayoutRevision[] findByH_P_PrevAndNext( 765 long layoutRevisionId, boolean head, long plid, 766 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 767 throws com.liferay.portal.NoSuchLayoutRevisionException; 768 769 /** 770 * Removes all the layout revisions where head = ? and plid = ? from the database. 771 * 772 * @param head the head 773 * @param plid the plid 774 */ 775 public void removeByH_P(boolean head, long plid); 776 777 /** 778 * Returns the number of layout revisions where head = ? and plid = ?. 779 * 780 * @param head the head 781 * @param plid the plid 782 * @return the number of matching layout revisions 783 */ 784 public int countByH_P(boolean head, long plid); 785 786 /** 787 * Returns all the layout revisions where plid = ? and status ≠ ?. 788 * 789 * @param plid the plid 790 * @param status the status 791 * @return the matching layout revisions 792 */ 793 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 794 long plid, int status); 795 796 /** 797 * Returns a range of all the layout revisions where plid = ? and status ≠ ?. 798 * 799 * <p> 800 * 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. 801 * </p> 802 * 803 * @param plid the plid 804 * @param status the status 805 * @param start the lower bound of the range of layout revisions 806 * @param end the upper bound of the range of layout revisions (not inclusive) 807 * @return the range of matching layout revisions 808 */ 809 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 810 long plid, int status, int start, int end); 811 812 /** 813 * Returns an ordered range of all the layout revisions where plid = ? and status ≠ ?. 814 * 815 * <p> 816 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 817 * </p> 818 * 819 * @param plid the plid 820 * @param status the status 821 * @param start the lower bound of the range of layout revisions 822 * @param end the upper bound of the range of layout revisions (not inclusive) 823 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 824 * @return the ordered range of matching layout revisions 825 */ 826 public java.util.List<com.liferay.portal.model.LayoutRevision> findByP_NotS( 827 long plid, int status, int start, int end, 828 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 829 830 /** 831 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 832 * 833 * @param plid the plid 834 * @param status the status 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the first matching layout revision 837 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 838 */ 839 public com.liferay.portal.model.LayoutRevision findByP_NotS_First( 840 long plid, int status, 841 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 842 throws com.liferay.portal.NoSuchLayoutRevisionException; 843 844 /** 845 * Returns the first layout revision in the ordered set where plid = ? and status ≠ ?. 846 * 847 * @param plid the plid 848 * @param status the status 849 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 850 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 851 */ 852 public com.liferay.portal.model.LayoutRevision fetchByP_NotS_First( 853 long plid, int status, 854 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 855 856 /** 857 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 858 * 859 * @param plid the plid 860 * @param status the status 861 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 862 * @return the last matching layout revision 863 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 864 */ 865 public com.liferay.portal.model.LayoutRevision findByP_NotS_Last( 866 long plid, int status, 867 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 868 throws com.liferay.portal.NoSuchLayoutRevisionException; 869 870 /** 871 * Returns the last layout revision in the ordered set where plid = ? and status ≠ ?. 872 * 873 * @param plid the plid 874 * @param status the status 875 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 876 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 877 */ 878 public com.liferay.portal.model.LayoutRevision fetchByP_NotS_Last( 879 long plid, int status, 880 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 881 882 /** 883 * Returns the layout revisions before and after the current layout revision in the ordered set where plid = ? and status ≠ ?. 884 * 885 * @param layoutRevisionId the primary key of the current layout revision 886 * @param plid the plid 887 * @param status the status 888 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 889 * @return the previous, current, and next layout revision 890 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 891 */ 892 public com.liferay.portal.model.LayoutRevision[] findByP_NotS_PrevAndNext( 893 long layoutRevisionId, long plid, int status, 894 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 895 throws com.liferay.portal.NoSuchLayoutRevisionException; 896 897 /** 898 * Removes all the layout revisions where plid = ? and status ≠ ? from the database. 899 * 900 * @param plid the plid 901 * @param status the status 902 */ 903 public void removeByP_NotS(long plid, int status); 904 905 /** 906 * Returns the number of layout revisions where plid = ? and status ≠ ?. 907 * 908 * @param plid the plid 909 * @param status the status 910 * @return the number of matching layout revisions 911 */ 912 public int countByP_NotS(long plid, int status); 913 914 /** 915 * Returns all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 916 * 917 * @param layoutSetBranchId the layout set branch ID 918 * @param layoutBranchId the layout branch ID 919 * @param plid the plid 920 * @return the matching layout revisions 921 */ 922 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 923 long layoutSetBranchId, long layoutBranchId, long plid); 924 925 /** 926 * Returns a range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 927 * 928 * <p> 929 * 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. 930 * </p> 931 * 932 * @param layoutSetBranchId the layout set branch ID 933 * @param layoutBranchId the layout branch ID 934 * @param plid the plid 935 * @param start the lower bound of the range of layout revisions 936 * @param end the upper bound of the range of layout revisions (not inclusive) 937 * @return the range of matching layout revisions 938 */ 939 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 940 long layoutSetBranchId, long layoutBranchId, long plid, int start, 941 int end); 942 943 /** 944 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 945 * 946 * <p> 947 * 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. 948 * </p> 949 * 950 * @param layoutSetBranchId the layout set branch ID 951 * @param layoutBranchId the layout branch ID 952 * @param plid the plid 953 * @param start the lower bound of the range of layout revisions 954 * @param end the upper bound of the range of layout revisions (not inclusive) 955 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 956 * @return the ordered range of matching layout revisions 957 */ 958 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_L_P( 959 long layoutSetBranchId, long layoutBranchId, long plid, int start, 960 int end, 961 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 962 963 /** 964 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 965 * 966 * @param layoutSetBranchId the layout set branch ID 967 * @param layoutBranchId the layout branch ID 968 * @param plid the plid 969 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 970 * @return the first matching layout revision 971 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 972 */ 973 public com.liferay.portal.model.LayoutRevision findByL_L_P_First( 974 long layoutSetBranchId, long layoutBranchId, long plid, 975 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 976 throws com.liferay.portal.NoSuchLayoutRevisionException; 977 978 /** 979 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 980 * 981 * @param layoutSetBranchId the layout set branch ID 982 * @param layoutBranchId the layout branch ID 983 * @param plid the plid 984 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 985 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 986 */ 987 public com.liferay.portal.model.LayoutRevision fetchByL_L_P_First( 988 long layoutSetBranchId, long layoutBranchId, long plid, 989 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 990 991 /** 992 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 993 * 994 * @param layoutSetBranchId the layout set branch ID 995 * @param layoutBranchId the layout branch ID 996 * @param plid the plid 997 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 998 * @return the last matching layout revision 999 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1000 */ 1001 public com.liferay.portal.model.LayoutRevision findByL_L_P_Last( 1002 long layoutSetBranchId, long layoutBranchId, long plid, 1003 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1004 throws com.liferay.portal.NoSuchLayoutRevisionException; 1005 1006 /** 1007 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1008 * 1009 * @param layoutSetBranchId the layout set branch ID 1010 * @param layoutBranchId the layout branch ID 1011 * @param plid the plid 1012 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1013 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1014 */ 1015 public com.liferay.portal.model.LayoutRevision fetchByL_L_P_Last( 1016 long layoutSetBranchId, long layoutBranchId, long plid, 1017 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1018 1019 /** 1020 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1021 * 1022 * @param layoutRevisionId the primary key of the current layout revision 1023 * @param layoutSetBranchId the layout set branch ID 1024 * @param layoutBranchId the layout branch ID 1025 * @param plid the plid 1026 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1027 * @return the previous, current, and next layout revision 1028 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1029 */ 1030 public com.liferay.portal.model.LayoutRevision[] findByL_L_P_PrevAndNext( 1031 long layoutRevisionId, long layoutSetBranchId, long layoutBranchId, 1032 long plid, 1033 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1034 throws com.liferay.portal.NoSuchLayoutRevisionException; 1035 1036 /** 1037 * Removes all the layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ? from the database. 1038 * 1039 * @param layoutSetBranchId the layout set branch ID 1040 * @param layoutBranchId the layout branch ID 1041 * @param plid the plid 1042 */ 1043 public void removeByL_L_P(long layoutSetBranchId, long layoutBranchId, 1044 long plid); 1045 1046 /** 1047 * Returns the number of layout revisions where layoutSetBranchId = ? and layoutBranchId = ? and plid = ?. 1048 * 1049 * @param layoutSetBranchId the layout set branch ID 1050 * @param layoutBranchId the layout branch ID 1051 * @param plid the plid 1052 * @return the number of matching layout revisions 1053 */ 1054 public int countByL_L_P(long layoutSetBranchId, long layoutBranchId, 1055 long plid); 1056 1057 /** 1058 * Returns all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1059 * 1060 * @param layoutSetBranchId the layout set branch ID 1061 * @param parentLayoutRevisionId the parent layout revision ID 1062 * @param plid the plid 1063 * @return the matching layout revisions 1064 */ 1065 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1066 long layoutSetBranchId, long parentLayoutRevisionId, long plid); 1067 1068 /** 1069 * Returns a range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1070 * 1071 * <p> 1072 * 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. 1073 * </p> 1074 * 1075 * @param layoutSetBranchId the layout set branch ID 1076 * @param parentLayoutRevisionId the parent layout revision ID 1077 * @param plid the plid 1078 * @param start the lower bound of the range of layout revisions 1079 * @param end the upper bound of the range of layout revisions (not inclusive) 1080 * @return the range of matching layout revisions 1081 */ 1082 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1083 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1084 int start, int end); 1085 1086 /** 1087 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param layoutSetBranchId the layout set branch ID 1094 * @param parentLayoutRevisionId the parent layout revision ID 1095 * @param plid the plid 1096 * @param start the lower bound of the range of layout revisions 1097 * @param end the upper bound of the range of layout revisions (not inclusive) 1098 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1099 * @return the ordered range of matching layout revisions 1100 */ 1101 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_P( 1102 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1103 int start, int end, 1104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1105 1106 /** 1107 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1108 * 1109 * @param layoutSetBranchId the layout set branch ID 1110 * @param parentLayoutRevisionId the parent layout revision ID 1111 * @param plid the plid 1112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1113 * @return the first matching layout revision 1114 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1115 */ 1116 public com.liferay.portal.model.LayoutRevision findByL_P_P_First( 1117 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1119 throws com.liferay.portal.NoSuchLayoutRevisionException; 1120 1121 /** 1122 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1123 * 1124 * @param layoutSetBranchId the layout set branch ID 1125 * @param parentLayoutRevisionId the parent layout revision ID 1126 * @param plid the plid 1127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1128 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1129 */ 1130 public com.liferay.portal.model.LayoutRevision fetchByL_P_P_First( 1131 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1132 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1133 1134 /** 1135 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1136 * 1137 * @param layoutSetBranchId the layout set branch ID 1138 * @param parentLayoutRevisionId the parent layout revision ID 1139 * @param plid the plid 1140 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1141 * @return the last matching layout revision 1142 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1143 */ 1144 public com.liferay.portal.model.LayoutRevision findByL_P_P_Last( 1145 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1146 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1147 throws com.liferay.portal.NoSuchLayoutRevisionException; 1148 1149 /** 1150 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1151 * 1152 * @param layoutSetBranchId the layout set branch ID 1153 * @param parentLayoutRevisionId the parent layout revision ID 1154 * @param plid the plid 1155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1156 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1157 */ 1158 public com.liferay.portal.model.LayoutRevision fetchByL_P_P_Last( 1159 long layoutSetBranchId, long parentLayoutRevisionId, long plid, 1160 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1161 1162 /** 1163 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1164 * 1165 * @param layoutRevisionId the primary key of the current layout revision 1166 * @param layoutSetBranchId the layout set branch ID 1167 * @param parentLayoutRevisionId the parent layout revision ID 1168 * @param plid the plid 1169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1170 * @return the previous, current, and next layout revision 1171 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1172 */ 1173 public com.liferay.portal.model.LayoutRevision[] findByL_P_P_PrevAndNext( 1174 long layoutRevisionId, long layoutSetBranchId, 1175 long parentLayoutRevisionId, long plid, 1176 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1177 throws com.liferay.portal.NoSuchLayoutRevisionException; 1178 1179 /** 1180 * Removes all the layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ? from the database. 1181 * 1182 * @param layoutSetBranchId the layout set branch ID 1183 * @param parentLayoutRevisionId the parent layout revision ID 1184 * @param plid the plid 1185 */ 1186 public void removeByL_P_P(long layoutSetBranchId, 1187 long parentLayoutRevisionId, long plid); 1188 1189 /** 1190 * Returns the number of layout revisions where layoutSetBranchId = ? and parentLayoutRevisionId = ? and plid = ?. 1191 * 1192 * @param layoutSetBranchId the layout set branch ID 1193 * @param parentLayoutRevisionId the parent layout revision ID 1194 * @param plid the plid 1195 * @return the number of matching layout revisions 1196 */ 1197 public int countByL_P_P(long layoutSetBranchId, 1198 long parentLayoutRevisionId, long plid); 1199 1200 /** 1201 * Returns the layout revision where layoutSetBranchId = ? and head = ? and plid = ? or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 1202 * 1203 * @param layoutSetBranchId the layout set branch ID 1204 * @param head the head 1205 * @param plid the plid 1206 * @return the matching layout revision 1207 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1208 */ 1209 public com.liferay.portal.model.LayoutRevision findByL_H_P( 1210 long layoutSetBranchId, boolean head, long plid) 1211 throws com.liferay.portal.NoSuchLayoutRevisionException; 1212 1213 /** 1214 * 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. 1215 * 1216 * @param layoutSetBranchId the layout set branch ID 1217 * @param head the head 1218 * @param plid the plid 1219 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1220 */ 1221 public com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1222 long layoutSetBranchId, boolean head, long plid); 1223 1224 /** 1225 * 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. 1226 * 1227 * @param layoutSetBranchId the layout set branch ID 1228 * @param head the head 1229 * @param plid the plid 1230 * @param retrieveFromCache whether to use the finder cache 1231 * @return the matching layout revision, or <code>null</code> if a matching layout revision could not be found 1232 */ 1233 public com.liferay.portal.model.LayoutRevision fetchByL_H_P( 1234 long layoutSetBranchId, boolean head, long plid, 1235 boolean retrieveFromCache); 1236 1237 /** 1238 * Removes the layout revision where layoutSetBranchId = ? and head = ? and plid = ? from the database. 1239 * 1240 * @param layoutSetBranchId the layout set branch ID 1241 * @param head the head 1242 * @param plid the plid 1243 * @return the layout revision that was removed 1244 */ 1245 public com.liferay.portal.model.LayoutRevision removeByL_H_P( 1246 long layoutSetBranchId, boolean head, long plid) 1247 throws com.liferay.portal.NoSuchLayoutRevisionException; 1248 1249 /** 1250 * Returns the number of layout revisions where layoutSetBranchId = ? and head = ? and plid = ?. 1251 * 1252 * @param layoutSetBranchId the layout set branch ID 1253 * @param head the head 1254 * @param plid the plid 1255 * @return the number of matching layout revisions 1256 */ 1257 public int countByL_H_P(long layoutSetBranchId, boolean head, long plid); 1258 1259 /** 1260 * Returns all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1261 * 1262 * @param layoutSetBranchId the layout set branch ID 1263 * @param plid the plid 1264 * @param status the status 1265 * @return the matching layout revisions 1266 */ 1267 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1268 long layoutSetBranchId, long plid, int status); 1269 1270 /** 1271 * Returns a range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1272 * 1273 * <p> 1274 * 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. 1275 * </p> 1276 * 1277 * @param layoutSetBranchId the layout set branch ID 1278 * @param plid the plid 1279 * @param status the status 1280 * @param start the lower bound of the range of layout revisions 1281 * @param end the upper bound of the range of layout revisions (not inclusive) 1282 * @return the range of matching layout revisions 1283 */ 1284 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1285 long layoutSetBranchId, long plid, int status, int start, int end); 1286 1287 /** 1288 * Returns an ordered range of all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1289 * 1290 * <p> 1291 * 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. 1292 * </p> 1293 * 1294 * @param layoutSetBranchId the layout set branch ID 1295 * @param plid the plid 1296 * @param status the status 1297 * @param start the lower bound of the range of layout revisions 1298 * @param end the upper bound of the range of layout revisions (not inclusive) 1299 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1300 * @return the ordered range of matching layout revisions 1301 */ 1302 public java.util.List<com.liferay.portal.model.LayoutRevision> findByL_P_S( 1303 long layoutSetBranchId, long plid, int status, int start, int end, 1304 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1305 1306 /** 1307 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1308 * 1309 * @param layoutSetBranchId the layout set branch ID 1310 * @param plid the plid 1311 * @param status the status 1312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1313 * @return the first matching layout revision 1314 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1315 */ 1316 public com.liferay.portal.model.LayoutRevision findByL_P_S_First( 1317 long layoutSetBranchId, long plid, int status, 1318 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1319 throws com.liferay.portal.NoSuchLayoutRevisionException; 1320 1321 /** 1322 * Returns the first layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1323 * 1324 * @param layoutSetBranchId the layout set branch ID 1325 * @param plid the plid 1326 * @param status the status 1327 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1328 * @return the first matching layout revision, or <code>null</code> if a matching layout revision could not be found 1329 */ 1330 public com.liferay.portal.model.LayoutRevision fetchByL_P_S_First( 1331 long layoutSetBranchId, long plid, int status, 1332 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1333 1334 /** 1335 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1336 * 1337 * @param layoutSetBranchId the layout set branch ID 1338 * @param plid the plid 1339 * @param status the status 1340 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1341 * @return the last matching layout revision 1342 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a matching layout revision could not be found 1343 */ 1344 public com.liferay.portal.model.LayoutRevision findByL_P_S_Last( 1345 long layoutSetBranchId, long plid, int status, 1346 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1347 throws com.liferay.portal.NoSuchLayoutRevisionException; 1348 1349 /** 1350 * Returns the last layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1351 * 1352 * @param layoutSetBranchId the layout set branch ID 1353 * @param plid the plid 1354 * @param status the status 1355 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1356 * @return the last matching layout revision, or <code>null</code> if a matching layout revision could not be found 1357 */ 1358 public com.liferay.portal.model.LayoutRevision fetchByL_P_S_Last( 1359 long layoutSetBranchId, long plid, int status, 1360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1361 1362 /** 1363 * Returns the layout revisions before and after the current layout revision in the ordered set where layoutSetBranchId = ? and plid = ? and status = ?. 1364 * 1365 * @param layoutRevisionId the primary key of the current layout revision 1366 * @param layoutSetBranchId the layout set branch ID 1367 * @param plid the plid 1368 * @param status the status 1369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1370 * @return the previous, current, and next layout revision 1371 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1372 */ 1373 public com.liferay.portal.model.LayoutRevision[] findByL_P_S_PrevAndNext( 1374 long layoutRevisionId, long layoutSetBranchId, long plid, int status, 1375 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) 1376 throws com.liferay.portal.NoSuchLayoutRevisionException; 1377 1378 /** 1379 * Removes all the layout revisions where layoutSetBranchId = ? and plid = ? and status = ? from the database. 1380 * 1381 * @param layoutSetBranchId the layout set branch ID 1382 * @param plid the plid 1383 * @param status the status 1384 */ 1385 public void removeByL_P_S(long layoutSetBranchId, long plid, int status); 1386 1387 /** 1388 * Returns the number of layout revisions where layoutSetBranchId = ? and plid = ? and status = ?. 1389 * 1390 * @param layoutSetBranchId the layout set branch ID 1391 * @param plid the plid 1392 * @param status the status 1393 * @return the number of matching layout revisions 1394 */ 1395 public int countByL_P_S(long layoutSetBranchId, long plid, int status); 1396 1397 /** 1398 * Caches the layout revision in the entity cache if it is enabled. 1399 * 1400 * @param layoutRevision the layout revision 1401 */ 1402 public void cacheResult( 1403 com.liferay.portal.model.LayoutRevision layoutRevision); 1404 1405 /** 1406 * Caches the layout revisions in the entity cache if it is enabled. 1407 * 1408 * @param layoutRevisions the layout revisions 1409 */ 1410 public void cacheResult( 1411 java.util.List<com.liferay.portal.model.LayoutRevision> layoutRevisions); 1412 1413 /** 1414 * Creates a new layout revision with the primary key. Does not add the layout revision to the database. 1415 * 1416 * @param layoutRevisionId the primary key for the new layout revision 1417 * @return the new layout revision 1418 */ 1419 public com.liferay.portal.model.LayoutRevision create(long layoutRevisionId); 1420 1421 /** 1422 * Removes the layout revision with the primary key from the database. Also notifies the appropriate model listeners. 1423 * 1424 * @param layoutRevisionId the primary key of the layout revision 1425 * @return the layout revision that was removed 1426 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1427 */ 1428 public com.liferay.portal.model.LayoutRevision remove(long layoutRevisionId) 1429 throws com.liferay.portal.NoSuchLayoutRevisionException; 1430 1431 public com.liferay.portal.model.LayoutRevision updateImpl( 1432 com.liferay.portal.model.LayoutRevision layoutRevision); 1433 1434 /** 1435 * Returns the layout revision with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutRevisionException} if it could not be found. 1436 * 1437 * @param layoutRevisionId the primary key of the layout revision 1438 * @return the layout revision 1439 * @throws com.liferay.portal.NoSuchLayoutRevisionException if a layout revision with the primary key could not be found 1440 */ 1441 public com.liferay.portal.model.LayoutRevision findByPrimaryKey( 1442 long layoutRevisionId) 1443 throws com.liferay.portal.NoSuchLayoutRevisionException; 1444 1445 /** 1446 * Returns the layout revision with the primary key or returns <code>null</code> if it could not be found. 1447 * 1448 * @param layoutRevisionId the primary key of the layout revision 1449 * @return the layout revision, or <code>null</code> if a layout revision with the primary key could not be found 1450 */ 1451 public com.liferay.portal.model.LayoutRevision fetchByPrimaryKey( 1452 long layoutRevisionId); 1453 1454 @Override 1455 public java.util.Map<java.io.Serializable, com.liferay.portal.model.LayoutRevision> fetchByPrimaryKeys( 1456 java.util.Set<java.io.Serializable> primaryKeys); 1457 1458 /** 1459 * Returns all the layout revisions. 1460 * 1461 * @return the layout revisions 1462 */ 1463 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll(); 1464 1465 /** 1466 * Returns a range of all the layout revisions. 1467 * 1468 * <p> 1469 * 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. 1470 * </p> 1471 * 1472 * @param start the lower bound of the range of layout revisions 1473 * @param end the upper bound of the range of layout revisions (not inclusive) 1474 * @return the range of layout revisions 1475 */ 1476 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1477 int start, int end); 1478 1479 /** 1480 * Returns an ordered range of all the layout revisions. 1481 * 1482 * <p> 1483 * 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. 1484 * </p> 1485 * 1486 * @param start the lower bound of the range of layout revisions 1487 * @param end the upper bound of the range of layout revisions (not inclusive) 1488 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1489 * @return the ordered range of layout revisions 1490 */ 1491 public java.util.List<com.liferay.portal.model.LayoutRevision> findAll( 1492 int start, int end, 1493 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator); 1494 1495 /** 1496 * Removes all the layout revisions from the database. 1497 */ 1498 public void removeAll(); 1499 1500 /** 1501 * Returns the number of layout revisions. 1502 * 1503 * @return the number of layout revisions 1504 */ 1505 public int countAll(); 1506 }