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