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