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