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