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