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.NoSuchRecentLayoutSetBranchException; 020 import com.liferay.portal.model.RecentLayoutSetBranch; 021 022 /** 023 * The persistence interface for the recent layout set branch 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.RecentLayoutSetBranchPersistenceImpl 031 * @see RecentLayoutSetBranchUtil 032 * @generated 033 */ 034 @ProviderType 035 public interface RecentLayoutSetBranchPersistence extends BasePersistence<RecentLayoutSetBranch> { 036 /* 037 * NOTE FOR DEVELOPERS: 038 * 039 * Never modify or reference this interface directly. Always use {@link RecentLayoutSetBranchUtil} to access the recent layout set branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 040 */ 041 042 /** 043 * Returns all the recent layout set branchs where groupId = ?. 044 * 045 * @param groupId the group ID 046 * @return the matching recent layout set branchs 047 */ 048 public java.util.List<RecentLayoutSetBranch> findByGroupId(long groupId); 049 050 /** 051 * Returns a range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 059 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 060 * @return the range of matching recent layout set branchs 061 */ 062 public java.util.List<RecentLayoutSetBranch> findByGroupId(long groupId, 063 int start, int end); 064 065 /** 066 * Returns an ordered range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 074 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 077 */ 078 public java.util.List<RecentLayoutSetBranch> findByGroupId(long groupId, 079 int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 091 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 095 */ 096 public java.util.List<RecentLayoutSetBranch> findByGroupId(long groupId, 097 int start, int end, 098 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first recent layout set branch 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 set branch 107 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 108 */ 109 public RecentLayoutSetBranch findByGroupId_First(long groupId, 110 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 111 throws NoSuchRecentLayoutSetBranchException; 112 113 /** 114 * Returns the first recent layout set branch 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 set branch, or <code>null</code> if a matching recent layout set branch could not be found 119 */ 120 public RecentLayoutSetBranch fetchByGroupId_First(long groupId, 121 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 122 123 /** 124 * Returns the last recent layout set branch 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 set branch 129 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 130 */ 131 public RecentLayoutSetBranch findByGroupId_Last(long groupId, 132 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 133 throws NoSuchRecentLayoutSetBranchException; 134 135 /** 136 * Returns the last recent layout set branch 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 set branch, or <code>null</code> if a matching recent layout set branch could not be found 141 */ 142 public RecentLayoutSetBranch fetchByGroupId_Last(long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 144 145 /** 146 * Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where groupId = ?. 147 * 148 * @param recentLayoutSetBranchId the primary key of the current recent layout set branch 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 set branch 152 * @throws NoSuchRecentLayoutSetBranchException if a recent layout set branch with the primary key could not be found 153 */ 154 public RecentLayoutSetBranch[] findByGroupId_PrevAndNext( 155 long recentLayoutSetBranchId, long groupId, 156 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 157 throws NoSuchRecentLayoutSetBranchException; 158 159 /** 160 * Removes all the recent layout set branchs 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 set branchs where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @return the number of matching recent layout set branchs 171 */ 172 public int countByGroupId(long groupId); 173 174 /** 175 * Returns all the recent layout set branchs where userId = ?. 176 * 177 * @param userId the user ID 178 * @return the matching recent layout set branchs 179 */ 180 public java.util.List<RecentLayoutSetBranch> findByUserId(long userId); 181 182 /** 183 * Returns a range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 191 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 192 * @return the range of matching recent layout set branchs 193 */ 194 public java.util.List<RecentLayoutSetBranch> findByUserId(long userId, 195 int start, int end); 196 197 /** 198 * Returns an ordered range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 206 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 209 */ 210 public java.util.List<RecentLayoutSetBranch> findByUserId(long userId, 211 int start, int end, 212 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 213 214 /** 215 * Returns an ordered range of all the recent layout set branchs 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 RecentLayoutSetBranchModelImpl}. 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 set branchs 223 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 227 */ 228 public java.util.List<RecentLayoutSetBranch> findByUserId(long userId, 229 int start, int end, 230 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator, 231 boolean retrieveFromCache); 232 233 /** 234 * Returns the first recent layout set branch 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 set branch 239 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 240 */ 241 public RecentLayoutSetBranch findByUserId_First(long userId, 242 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 243 throws NoSuchRecentLayoutSetBranchException; 244 245 /** 246 * Returns the first recent layout set branch 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 set branch, or <code>null</code> if a matching recent layout set branch could not be found 251 */ 252 public RecentLayoutSetBranch fetchByUserId_First(long userId, 253 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 254 255 /** 256 * Returns the last recent layout set branch 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 set branch 261 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 262 */ 263 public RecentLayoutSetBranch findByUserId_Last(long userId, 264 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 265 throws NoSuchRecentLayoutSetBranchException; 266 267 /** 268 * Returns the last recent layout set branch 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 set branch, or <code>null</code> if a matching recent layout set branch could not be found 273 */ 274 public RecentLayoutSetBranch fetchByUserId_Last(long userId, 275 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 276 277 /** 278 * Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where userId = ?. 279 * 280 * @param recentLayoutSetBranchId the primary key of the current recent layout set branch 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 set branch 284 * @throws NoSuchRecentLayoutSetBranchException if a recent layout set branch with the primary key could not be found 285 */ 286 public RecentLayoutSetBranch[] findByUserId_PrevAndNext( 287 long recentLayoutSetBranchId, long userId, 288 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 289 throws NoSuchRecentLayoutSetBranchException; 290 291 /** 292 * Removes all the recent layout set branchs 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 set branchs where userId = ?. 300 * 301 * @param userId the user ID 302 * @return the number of matching recent layout set branchs 303 */ 304 public int countByUserId(long userId); 305 306 /** 307 * Returns all the recent layout set branchs where layoutSetBranchId = ?. 308 * 309 * @param layoutSetBranchId the layout set branch ID 310 * @return the matching recent layout set branchs 311 */ 312 public java.util.List<RecentLayoutSetBranch> findByLayoutSetBranchId( 313 long layoutSetBranchId); 314 315 /** 316 * Returns a range of all the recent layout set branchs where layoutSetBranchId = ?. 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 RecentLayoutSetBranchModelImpl}. 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 layoutSetBranchId the layout set branch ID 323 * @param start the lower bound of the range of recent layout set branchs 324 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 325 * @return the range of matching recent layout set branchs 326 */ 327 public java.util.List<RecentLayoutSetBranch> findByLayoutSetBranchId( 328 long layoutSetBranchId, int start, int end); 329 330 /** 331 * Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?. 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 RecentLayoutSetBranchModelImpl}. 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 layoutSetBranchId the layout set branch ID 338 * @param start the lower bound of the range of recent layout set branchs 339 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 342 */ 343 public java.util.List<RecentLayoutSetBranch> findByLayoutSetBranchId( 344 long layoutSetBranchId, int start, int end, 345 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 346 347 /** 348 * Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?. 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 RecentLayoutSetBranchModelImpl}. 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 layoutSetBranchId the layout set branch ID 355 * @param start the lower bound of the range of recent layout set branchs 356 * @param end the upper bound of the range of recent layout set branchs (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 set branchs 360 */ 361 public java.util.List<RecentLayoutSetBranch> findByLayoutSetBranchId( 362 long layoutSetBranchId, int start, int end, 363 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator, 364 boolean retrieveFromCache); 365 366 /** 367 * Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?. 368 * 369 * @param layoutSetBranchId the layout set branch ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching recent layout set branch 372 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 373 */ 374 public RecentLayoutSetBranch findByLayoutSetBranchId_First( 375 long layoutSetBranchId, 376 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 377 throws NoSuchRecentLayoutSetBranchException; 378 379 /** 380 * Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?. 381 * 382 * @param layoutSetBranchId the layout set branch ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the first matching recent layout set branch, or <code>null</code> if a matching recent layout set branch could not be found 385 */ 386 public RecentLayoutSetBranch fetchByLayoutSetBranchId_First( 387 long layoutSetBranchId, 388 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 389 390 /** 391 * Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?. 392 * 393 * @param layoutSetBranchId the layout set branch ID 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the last matching recent layout set branch 396 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 397 */ 398 public RecentLayoutSetBranch findByLayoutSetBranchId_Last( 399 long layoutSetBranchId, 400 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 401 throws NoSuchRecentLayoutSetBranchException; 402 403 /** 404 * Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?. 405 * 406 * @param layoutSetBranchId the layout set branch ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the last matching recent layout set branch, or <code>null</code> if a matching recent layout set branch could not be found 409 */ 410 public RecentLayoutSetBranch fetchByLayoutSetBranchId_Last( 411 long layoutSetBranchId, 412 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 413 414 /** 415 * Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where layoutSetBranchId = ?. 416 * 417 * @param recentLayoutSetBranchId the primary key of the current recent layout set branch 418 * @param layoutSetBranchId the layout set branch ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the previous, current, and next recent layout set branch 421 * @throws NoSuchRecentLayoutSetBranchException if a recent layout set branch with the primary key could not be found 422 */ 423 public RecentLayoutSetBranch[] findByLayoutSetBranchId_PrevAndNext( 424 long recentLayoutSetBranchId, long layoutSetBranchId, 425 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator) 426 throws NoSuchRecentLayoutSetBranchException; 427 428 /** 429 * Removes all the recent layout set branchs where layoutSetBranchId = ? from the database. 430 * 431 * @param layoutSetBranchId the layout set branch ID 432 */ 433 public void removeByLayoutSetBranchId(long layoutSetBranchId); 434 435 /** 436 * Returns the number of recent layout set branchs where layoutSetBranchId = ?. 437 * 438 * @param layoutSetBranchId the layout set branch ID 439 * @return the number of matching recent layout set branchs 440 */ 441 public int countByLayoutSetBranchId(long layoutSetBranchId); 442 443 /** 444 * Returns the recent layout set branch where userId = ? and layoutSetId = ? or throws a {@link NoSuchRecentLayoutSetBranchException} if it could not be found. 445 * 446 * @param userId the user ID 447 * @param layoutSetId the layout set ID 448 * @return the matching recent layout set branch 449 * @throws NoSuchRecentLayoutSetBranchException if a matching recent layout set branch could not be found 450 */ 451 public RecentLayoutSetBranch findByU_L(long userId, long layoutSetId) 452 throws NoSuchRecentLayoutSetBranchException; 453 454 /** 455 * Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 456 * 457 * @param userId the user ID 458 * @param layoutSetId the layout set ID 459 * @return the matching recent layout set branch, or <code>null</code> if a matching recent layout set branch could not be found 460 */ 461 public RecentLayoutSetBranch fetchByU_L(long userId, long layoutSetId); 462 463 /** 464 * Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 465 * 466 * @param userId the user ID 467 * @param layoutSetId the layout set ID 468 * @param retrieveFromCache whether to retrieve from the finder cache 469 * @return the matching recent layout set branch, or <code>null</code> if a matching recent layout set branch could not be found 470 */ 471 public RecentLayoutSetBranch fetchByU_L(long userId, long layoutSetId, 472 boolean retrieveFromCache); 473 474 /** 475 * Removes the recent layout set branch where userId = ? and layoutSetId = ? from the database. 476 * 477 * @param userId the user ID 478 * @param layoutSetId the layout set ID 479 * @return the recent layout set branch that was removed 480 */ 481 public RecentLayoutSetBranch removeByU_L(long userId, long layoutSetId) 482 throws NoSuchRecentLayoutSetBranchException; 483 484 /** 485 * Returns the number of recent layout set branchs where userId = ? and layoutSetId = ?. 486 * 487 * @param userId the user ID 488 * @param layoutSetId the layout set ID 489 * @return the number of matching recent layout set branchs 490 */ 491 public int countByU_L(long userId, long layoutSetId); 492 493 /** 494 * Caches the recent layout set branch in the entity cache if it is enabled. 495 * 496 * @param recentLayoutSetBranch the recent layout set branch 497 */ 498 public void cacheResult(RecentLayoutSetBranch recentLayoutSetBranch); 499 500 /** 501 * Caches the recent layout set branchs in the entity cache if it is enabled. 502 * 503 * @param recentLayoutSetBranchs the recent layout set branchs 504 */ 505 public void cacheResult( 506 java.util.List<RecentLayoutSetBranch> recentLayoutSetBranchs); 507 508 /** 509 * Creates a new recent layout set branch with the primary key. Does not add the recent layout set branch to the database. 510 * 511 * @param recentLayoutSetBranchId the primary key for the new recent layout set branch 512 * @return the new recent layout set branch 513 */ 514 public RecentLayoutSetBranch create(long recentLayoutSetBranchId); 515 516 /** 517 * Removes the recent layout set branch with the primary key from the database. Also notifies the appropriate model listeners. 518 * 519 * @param recentLayoutSetBranchId the primary key of the recent layout set branch 520 * @return the recent layout set branch that was removed 521 * @throws NoSuchRecentLayoutSetBranchException if a recent layout set branch with the primary key could not be found 522 */ 523 public RecentLayoutSetBranch remove(long recentLayoutSetBranchId) 524 throws NoSuchRecentLayoutSetBranchException; 525 526 public RecentLayoutSetBranch updateImpl( 527 RecentLayoutSetBranch recentLayoutSetBranch); 528 529 /** 530 * Returns the recent layout set branch with the primary key or throws a {@link NoSuchRecentLayoutSetBranchException} if it could not be found. 531 * 532 * @param recentLayoutSetBranchId the primary key of the recent layout set branch 533 * @return the recent layout set branch 534 * @throws NoSuchRecentLayoutSetBranchException if a recent layout set branch with the primary key could not be found 535 */ 536 public RecentLayoutSetBranch findByPrimaryKey(long recentLayoutSetBranchId) 537 throws NoSuchRecentLayoutSetBranchException; 538 539 /** 540 * Returns the recent layout set branch with the primary key or returns <code>null</code> if it could not be found. 541 * 542 * @param recentLayoutSetBranchId the primary key of the recent layout set branch 543 * @return the recent layout set branch, or <code>null</code> if a recent layout set branch with the primary key could not be found 544 */ 545 public RecentLayoutSetBranch fetchByPrimaryKey(long recentLayoutSetBranchId); 546 547 @Override 548 public java.util.Map<java.io.Serializable, RecentLayoutSetBranch> fetchByPrimaryKeys( 549 java.util.Set<java.io.Serializable> primaryKeys); 550 551 /** 552 * Returns all the recent layout set branchs. 553 * 554 * @return the recent layout set branchs 555 */ 556 public java.util.List<RecentLayoutSetBranch> findAll(); 557 558 /** 559 * Returns a range of all the recent layout set branchs. 560 * 561 * <p> 562 * 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 RecentLayoutSetBranchModelImpl}. 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. 563 * </p> 564 * 565 * @param start the lower bound of the range of recent layout set branchs 566 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 567 * @return the range of recent layout set branchs 568 */ 569 public java.util.List<RecentLayoutSetBranch> findAll(int start, int end); 570 571 /** 572 * Returns an ordered range of all the recent layout set branchs. 573 * 574 * <p> 575 * 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 RecentLayoutSetBranchModelImpl}. 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. 576 * </p> 577 * 578 * @param start the lower bound of the range of recent layout set branchs 579 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 580 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 581 * @return the ordered range of recent layout set branchs 582 */ 583 public java.util.List<RecentLayoutSetBranch> findAll(int start, int end, 584 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator); 585 586 /** 587 * Returns an ordered range of all the recent layout set branchs. 588 * 589 * <p> 590 * 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 RecentLayoutSetBranchModelImpl}. 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. 591 * </p> 592 * 593 * @param start the lower bound of the range of recent layout set branchs 594 * @param end the upper bound of the range of recent layout set branchs (not inclusive) 595 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 596 * @param retrieveFromCache whether to retrieve from the finder cache 597 * @return the ordered range of recent layout set branchs 598 */ 599 public java.util.List<RecentLayoutSetBranch> findAll(int start, int end, 600 com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutSetBranch> orderByComparator, 601 boolean retrieveFromCache); 602 603 /** 604 * Removes all the recent layout set branchs from the database. 605 */ 606 public void removeAll(); 607 608 /** 609 * Returns the number of recent layout set branchs. 610 * 611 * @return the number of recent layout set branchs 612 */ 613 public int countAll(); 614 }