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.exception.NoSuchRecentLayoutRevisionException; 020 import com.liferay.portal.model.RecentLayoutRevision; 021 022 /** 023 * The persistence interface for the recent layout revision service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see com.liferay.portal.service.persistence.impl.RecentLayoutRevisionPersistenceImpl 031 * @see RecentLayoutRevisionUtil 032 * @generated 033 */ 034 @ProviderType 035 public interface RecentLayoutRevisionPersistence extends BasePersistence<RecentLayoutRevision> { 036 /* 037 * NOTE FOR DEVELOPERS: 038 * 039 * Never modify or reference this interface directly. Always use {@link RecentLayoutRevisionUtil} to access the recent layout revision persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 040 */ 041 042 /** 043 * Returns all the recent layout revisions where groupId = ?. 044 * 045 * @param groupId the group ID 046 * @return the matching recent layout revisions 047 */ 048 public java.util.List<RecentLayoutRevision> findByGroupId(long groupId); 049 050 /** 051 * Returns a range of all the recent layout revisions where groupId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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 groupId the group ID 058 * @param start the lower bound of the range of recent layout revisions 059 * @param end the upper bound of the range of recent layout revisions (not inclusive) 060 * @return the range of matching recent layout revisions 061 */ 062 public java.util.List<RecentLayoutRevision> findByGroupId(long groupId, 063 int start, int end); 064 065 /** 066 * Returns an ordered range of all the recent layout revisions where groupId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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 groupId the group ID 073 * @param start the lower bound of the range of recent layout revisions 074 * @param end the upper bound of the range of recent 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 recent layout revisions 077 */ 078 public java.util.List<RecentLayoutRevision> findByGroupId(long groupId, 079 int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the recent layout revisions where groupId = ?. 084 * 085 * <p> 086 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 087 * </p> 088 * 089 * @param groupId the group ID 090 * @param start the lower bound of the range of recent layout revisions 091 * @param end the upper bound of the range of recent layout revisions (not inclusive) 092 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 093 * @param retrieveFromCache whether to retrieve from the finder cache 094 * @return the ordered range of matching recent layout revisions 095 */ 096 public java.util.List<RecentLayoutRevision> findByGroupId(long groupId, 097 int start, int end, 098 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first recent layout revision in the ordered set where groupId = ?. 103 * 104 * @param groupId the group ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching recent layout revision 107 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 108 */ 109 public RecentLayoutRevision findByGroupId_First(long groupId, 110 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 111 throws NoSuchRecentLayoutRevisionException; 112 113 /** 114 * Returns the first recent layout revision in the ordered set where groupId = ?. 115 * 116 * @param groupId the group ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the first matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 119 */ 120 public RecentLayoutRevision fetchByGroupId_First(long groupId, 121 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 122 123 /** 124 * Returns the last recent layout revision in the ordered set where groupId = ?. 125 * 126 * @param groupId the group ID 127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 128 * @return the last matching recent layout revision 129 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 130 */ 131 public RecentLayoutRevision findByGroupId_Last(long groupId, 132 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 133 throws NoSuchRecentLayoutRevisionException; 134 135 /** 136 * Returns the last recent layout revision in the ordered set where groupId = ?. 137 * 138 * @param groupId the group ID 139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 140 * @return the last matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 141 */ 142 public RecentLayoutRevision fetchByGroupId_Last(long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 144 145 /** 146 * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?. 147 * 148 * @param recentLayoutRevisionId the primary key of the current recent layout revision 149 * @param groupId the group ID 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the previous, current, and next recent layout revision 152 * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found 153 */ 154 public RecentLayoutRevision[] findByGroupId_PrevAndNext( 155 long recentLayoutRevisionId, long groupId, 156 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 157 throws NoSuchRecentLayoutRevisionException; 158 159 /** 160 * Removes all the recent layout revisions where groupId = ? from the database. 161 * 162 * @param groupId the group ID 163 */ 164 public void removeByGroupId(long groupId); 165 166 /** 167 * Returns the number of recent layout revisions where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @return the number of matching recent layout revisions 171 */ 172 public int countByGroupId(long groupId); 173 174 /** 175 * Returns all the recent layout revisions where userId = ?. 176 * 177 * @param userId the user ID 178 * @return the matching recent layout revisions 179 */ 180 public java.util.List<RecentLayoutRevision> findByUserId(long userId); 181 182 /** 183 * Returns a range of all the recent layout revisions where userId = ?. 184 * 185 * <p> 186 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 187 * </p> 188 * 189 * @param userId the user ID 190 * @param start the lower bound of the range of recent layout revisions 191 * @param end the upper bound of the range of recent layout revisions (not inclusive) 192 * @return the range of matching recent layout revisions 193 */ 194 public java.util.List<RecentLayoutRevision> findByUserId(long userId, 195 int start, int end); 196 197 /** 198 * Returns an ordered range of all the recent layout revisions where userId = ?. 199 * 200 * <p> 201 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 202 * </p> 203 * 204 * @param userId the user ID 205 * @param start the lower bound of the range of recent layout revisions 206 * @param end the upper bound of the range of recent layout revisions (not inclusive) 207 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 208 * @return the ordered range of matching recent layout revisions 209 */ 210 public java.util.List<RecentLayoutRevision> findByUserId(long userId, 211 int start, int end, 212 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 213 214 /** 215 * Returns an ordered range of all the recent layout revisions where userId = ?. 216 * 217 * <p> 218 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 219 * </p> 220 * 221 * @param userId the user ID 222 * @param start the lower bound of the range of recent layout revisions 223 * @param end the upper bound of the range of recent layout revisions (not inclusive) 224 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 225 * @param retrieveFromCache whether to retrieve from the finder cache 226 * @return the ordered range of matching recent layout revisions 227 */ 228 public java.util.List<RecentLayoutRevision> findByUserId(long userId, 229 int start, int end, 230 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator, 231 boolean retrieveFromCache); 232 233 /** 234 * Returns the first recent layout revision in the ordered set where userId = ?. 235 * 236 * @param userId the user ID 237 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 238 * @return the first matching recent layout revision 239 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 240 */ 241 public RecentLayoutRevision findByUserId_First(long userId, 242 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 243 throws NoSuchRecentLayoutRevisionException; 244 245 /** 246 * Returns the first recent layout revision in the ordered set where userId = ?. 247 * 248 * @param userId the user ID 249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 250 * @return the first matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 251 */ 252 public RecentLayoutRevision fetchByUserId_First(long userId, 253 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 254 255 /** 256 * Returns the last recent layout revision in the ordered set where userId = ?. 257 * 258 * @param userId the user ID 259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 260 * @return the last matching recent layout revision 261 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 262 */ 263 public RecentLayoutRevision findByUserId_Last(long userId, 264 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 265 throws NoSuchRecentLayoutRevisionException; 266 267 /** 268 * Returns the last recent layout revision in the ordered set where userId = ?. 269 * 270 * @param userId the user ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the last matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 273 */ 274 public RecentLayoutRevision fetchByUserId_Last(long userId, 275 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 276 277 /** 278 * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?. 279 * 280 * @param recentLayoutRevisionId the primary key of the current recent layout revision 281 * @param userId the user ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the previous, current, and next recent layout revision 284 * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found 285 */ 286 public RecentLayoutRevision[] findByUserId_PrevAndNext( 287 long recentLayoutRevisionId, long userId, 288 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 289 throws NoSuchRecentLayoutRevisionException; 290 291 /** 292 * Removes all the recent layout revisions where userId = ? from the database. 293 * 294 * @param userId the user ID 295 */ 296 public void removeByUserId(long userId); 297 298 /** 299 * Returns the number of recent layout revisions where userId = ?. 300 * 301 * @param userId the user ID 302 * @return the number of matching recent layout revisions 303 */ 304 public int countByUserId(long userId); 305 306 /** 307 * Returns all the recent layout revisions where layoutRevisionId = ?. 308 * 309 * @param layoutRevisionId the layout revision ID 310 * @return the matching recent layout revisions 311 */ 312 public java.util.List<RecentLayoutRevision> findByLayoutRevisionId( 313 long layoutRevisionId); 314 315 /** 316 * Returns a range of all the recent layout revisions where layoutRevisionId = ?. 317 * 318 * <p> 319 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 320 * </p> 321 * 322 * @param layoutRevisionId the layout revision ID 323 * @param start the lower bound of the range of recent layout revisions 324 * @param end the upper bound of the range of recent layout revisions (not inclusive) 325 * @return the range of matching recent layout revisions 326 */ 327 public java.util.List<RecentLayoutRevision> findByLayoutRevisionId( 328 long layoutRevisionId, int start, int end); 329 330 /** 331 * Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?. 332 * 333 * <p> 334 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 335 * </p> 336 * 337 * @param layoutRevisionId the layout revision ID 338 * @param start the lower bound of the range of recent layout revisions 339 * @param end the upper bound of the range of recent layout revisions (not inclusive) 340 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 341 * @return the ordered range of matching recent layout revisions 342 */ 343 public java.util.List<RecentLayoutRevision> findByLayoutRevisionId( 344 long layoutRevisionId, int start, int end, 345 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 346 347 /** 348 * Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?. 349 * 350 * <p> 351 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 352 * </p> 353 * 354 * @param layoutRevisionId the layout revision ID 355 * @param start the lower bound of the range of recent layout revisions 356 * @param end the upper bound of the range of recent layout revisions (not inclusive) 357 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 358 * @param retrieveFromCache whether to retrieve from the finder cache 359 * @return the ordered range of matching recent layout revisions 360 */ 361 public java.util.List<RecentLayoutRevision> findByLayoutRevisionId( 362 long layoutRevisionId, int start, int end, 363 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator, 364 boolean retrieveFromCache); 365 366 /** 367 * Returns the first recent layout revision in the ordered set where layoutRevisionId = ?. 368 * 369 * @param layoutRevisionId the layout revision ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching recent layout revision 372 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 373 */ 374 public RecentLayoutRevision findByLayoutRevisionId_First( 375 long layoutRevisionId, 376 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 377 throws NoSuchRecentLayoutRevisionException; 378 379 /** 380 * Returns the first recent layout revision in the ordered set where layoutRevisionId = ?. 381 * 382 * @param layoutRevisionId the layout revision ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the first matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 385 */ 386 public RecentLayoutRevision fetchByLayoutRevisionId_First( 387 long layoutRevisionId, 388 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 389 390 /** 391 * Returns the last recent layout revision in the ordered set where layoutRevisionId = ?. 392 * 393 * @param layoutRevisionId the layout revision ID 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the last matching recent layout revision 396 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 397 */ 398 public RecentLayoutRevision findByLayoutRevisionId_Last( 399 long layoutRevisionId, 400 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 401 throws NoSuchRecentLayoutRevisionException; 402 403 /** 404 * Returns the last recent layout revision in the ordered set where layoutRevisionId = ?. 405 * 406 * @param layoutRevisionId the layout revision ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the last matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 409 */ 410 public RecentLayoutRevision fetchByLayoutRevisionId_Last( 411 long layoutRevisionId, 412 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 413 414 /** 415 * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?. 416 * 417 * @param recentLayoutRevisionId the primary key of the current recent layout revision 418 * @param layoutRevisionId the layout revision ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the previous, current, and next recent layout revision 421 * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found 422 */ 423 public RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext( 424 long recentLayoutRevisionId, long layoutRevisionId, 425 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator) 426 throws NoSuchRecentLayoutRevisionException; 427 428 /** 429 * Removes all the recent layout revisions where layoutRevisionId = ? from the database. 430 * 431 * @param layoutRevisionId the layout revision ID 432 */ 433 public void removeByLayoutRevisionId(long layoutRevisionId); 434 435 /** 436 * Returns the number of recent layout revisions where layoutRevisionId = ?. 437 * 438 * @param layoutRevisionId the layout revision ID 439 * @return the number of matching recent layout revisions 440 */ 441 public int countByLayoutRevisionId(long layoutRevisionId); 442 443 /** 444 * Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a {@link NoSuchRecentLayoutRevisionException} if it could not be found. 445 * 446 * @param userId the user ID 447 * @param layoutSetBranchId the layout set branch ID 448 * @param plid the plid 449 * @return the matching recent layout revision 450 * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found 451 */ 452 public RecentLayoutRevision findByU_L_P(long userId, 453 long layoutSetBranchId, long plid) 454 throws NoSuchRecentLayoutRevisionException; 455 456 /** 457 * Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 458 * 459 * @param userId the user ID 460 * @param layoutSetBranchId the layout set branch ID 461 * @param plid the plid 462 * @return the matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 463 */ 464 public RecentLayoutRevision fetchByU_L_P(long userId, 465 long layoutSetBranchId, long plid); 466 467 /** 468 * Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 469 * 470 * @param userId the user ID 471 * @param layoutSetBranchId the layout set branch ID 472 * @param plid the plid 473 * @param retrieveFromCache whether to retrieve from the finder cache 474 * @return the matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found 475 */ 476 public RecentLayoutRevision fetchByU_L_P(long userId, 477 long layoutSetBranchId, long plid, boolean retrieveFromCache); 478 479 /** 480 * Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database. 481 * 482 * @param userId the user ID 483 * @param layoutSetBranchId the layout set branch ID 484 * @param plid the plid 485 * @return the recent layout revision that was removed 486 */ 487 public RecentLayoutRevision removeByU_L_P(long userId, 488 long layoutSetBranchId, long plid) 489 throws NoSuchRecentLayoutRevisionException; 490 491 /** 492 * Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?. 493 * 494 * @param userId the user ID 495 * @param layoutSetBranchId the layout set branch ID 496 * @param plid the plid 497 * @return the number of matching recent layout revisions 498 */ 499 public int countByU_L_P(long userId, long layoutSetBranchId, long plid); 500 501 /** 502 * Caches the recent layout revision in the entity cache if it is enabled. 503 * 504 * @param recentLayoutRevision the recent layout revision 505 */ 506 public void cacheResult(RecentLayoutRevision recentLayoutRevision); 507 508 /** 509 * Caches the recent layout revisions in the entity cache if it is enabled. 510 * 511 * @param recentLayoutRevisions the recent layout revisions 512 */ 513 public void cacheResult( 514 java.util.List<RecentLayoutRevision> recentLayoutRevisions); 515 516 /** 517 * Creates a new recent layout revision with the primary key. Does not add the recent layout revision to the database. 518 * 519 * @param recentLayoutRevisionId the primary key for the new recent layout revision 520 * @return the new recent layout revision 521 */ 522 public RecentLayoutRevision create(long recentLayoutRevisionId); 523 524 /** 525 * Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners. 526 * 527 * @param recentLayoutRevisionId the primary key of the recent layout revision 528 * @return the recent layout revision that was removed 529 * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found 530 */ 531 public RecentLayoutRevision remove(long recentLayoutRevisionId) 532 throws NoSuchRecentLayoutRevisionException; 533 534 public RecentLayoutRevision updateImpl( 535 RecentLayoutRevision recentLayoutRevision); 536 537 /** 538 * Returns the recent layout revision with the primary key or throws a {@link NoSuchRecentLayoutRevisionException} if it could not be found. 539 * 540 * @param recentLayoutRevisionId the primary key of the recent layout revision 541 * @return the recent layout revision 542 * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found 543 */ 544 public RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId) 545 throws NoSuchRecentLayoutRevisionException; 546 547 /** 548 * Returns the recent layout revision with the primary key or returns <code>null</code> if it could not be found. 549 * 550 * @param recentLayoutRevisionId the primary key of the recent layout revision 551 * @return the recent layout revision, or <code>null</code> if a recent layout revision with the primary key could not be found 552 */ 553 public RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId); 554 555 @Override 556 public java.util.Map<java.io.Serializable, RecentLayoutRevision> fetchByPrimaryKeys( 557 java.util.Set<java.io.Serializable> primaryKeys); 558 559 /** 560 * Returns all the recent layout revisions. 561 * 562 * @return the recent layout revisions 563 */ 564 public java.util.List<RecentLayoutRevision> findAll(); 565 566 /** 567 * Returns a range of all the recent layout revisions. 568 * 569 * <p> 570 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 571 * </p> 572 * 573 * @param start the lower bound of the range of recent layout revisions 574 * @param end the upper bound of the range of recent layout revisions (not inclusive) 575 * @return the range of recent layout revisions 576 */ 577 public java.util.List<RecentLayoutRevision> findAll(int start, int end); 578 579 /** 580 * Returns an ordered range of all the recent layout revisions. 581 * 582 * <p> 583 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 584 * </p> 585 * 586 * @param start the lower bound of the range of recent layout revisions 587 * @param end the upper bound of the range of recent layout revisions (not inclusive) 588 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 589 * @return the ordered range of recent layout revisions 590 */ 591 public java.util.List<RecentLayoutRevision> findAll(int start, int end, 592 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator); 593 594 /** 595 * Returns an ordered range of all the recent layout revisions. 596 * 597 * <p> 598 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RecentLayoutRevisionModelImpl}. 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. 599 * </p> 600 * 601 * @param start the lower bound of the range of recent layout revisions 602 * @param end the upper bound of the range of recent layout revisions (not inclusive) 603 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 604 * @param retrieveFromCache whether to retrieve from the finder cache 605 * @return the ordered range of recent layout revisions 606 */ 607 public java.util.List<RecentLayoutRevision> findAll(int start, int end, 608 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator, 609 boolean retrieveFromCache); 610 611 /** 612 * Removes all the recent layout revisions from the database. 613 */ 614 public void removeAll(); 615 616 /** 617 * Returns the number of recent layout revisions. 618 * 619 * @return the number of recent layout revisions 620 */ 621 public int countAll(); 622 }