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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.LayoutBranch; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the layout branch service. This utility wraps {@link LayoutBranchPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see LayoutBranchPersistence 036 * @see LayoutBranchPersistenceImpl 037 * @generated 038 */ 039 public class LayoutBranchUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(LayoutBranch layoutBranch) { 057 getPersistence().clearCache(layoutBranch); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<LayoutBranch> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<LayoutBranch> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<LayoutBranch> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 098 */ 099 public static LayoutBranch update(LayoutBranch layoutBranch, boolean merge) 100 throws SystemException { 101 return getPersistence().update(layoutBranch, merge); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 106 */ 107 public static LayoutBranch update(LayoutBranch layoutBranch, boolean merge, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(layoutBranch, merge, serviceContext); 110 } 111 112 /** 113 * Caches the layout branch in the entity cache if it is enabled. 114 * 115 * @param layoutBranch the layout branch 116 */ 117 public static void cacheResult( 118 com.liferay.portal.model.LayoutBranch layoutBranch) { 119 getPersistence().cacheResult(layoutBranch); 120 } 121 122 /** 123 * Caches the layout branchs in the entity cache if it is enabled. 124 * 125 * @param layoutBranchs the layout branchs 126 */ 127 public static void cacheResult( 128 java.util.List<com.liferay.portal.model.LayoutBranch> layoutBranchs) { 129 getPersistence().cacheResult(layoutBranchs); 130 } 131 132 /** 133 * Creates a new layout branch with the primary key. Does not add the layout branch to the database. 134 * 135 * @param LayoutBranchId the primary key for the new layout branch 136 * @return the new layout branch 137 */ 138 public static com.liferay.portal.model.LayoutBranch create( 139 long LayoutBranchId) { 140 return getPersistence().create(LayoutBranchId); 141 } 142 143 /** 144 * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners. 145 * 146 * @param LayoutBranchId the primary key of the layout branch 147 * @return the layout branch that was removed 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 static com.liferay.portal.model.LayoutBranch remove( 152 long LayoutBranchId) 153 throws com.liferay.portal.NoSuchLayoutBranchException, 154 com.liferay.portal.kernel.exception.SystemException { 155 return getPersistence().remove(LayoutBranchId); 156 } 157 158 public static com.liferay.portal.model.LayoutBranch updateImpl( 159 com.liferay.portal.model.LayoutBranch layoutBranch, boolean merge) 160 throws com.liferay.portal.kernel.exception.SystemException { 161 return getPersistence().updateImpl(layoutBranch, merge); 162 } 163 164 /** 165 * Returns the layout branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 166 * 167 * @param LayoutBranchId the primary key of the layout branch 168 * @return the layout branch 169 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 170 * @throws SystemException if a system exception occurred 171 */ 172 public static com.liferay.portal.model.LayoutBranch findByPrimaryKey( 173 long LayoutBranchId) 174 throws com.liferay.portal.NoSuchLayoutBranchException, 175 com.liferay.portal.kernel.exception.SystemException { 176 return getPersistence().findByPrimaryKey(LayoutBranchId); 177 } 178 179 /** 180 * Returns the layout branch with the primary key or returns <code>null</code> if it could not be found. 181 * 182 * @param LayoutBranchId the primary key of the layout branch 183 * @return the layout branch, or <code>null</code> if a layout branch with the primary key could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public static com.liferay.portal.model.LayoutBranch fetchByPrimaryKey( 187 long LayoutBranchId) 188 throws com.liferay.portal.kernel.exception.SystemException { 189 return getPersistence().fetchByPrimaryKey(LayoutBranchId); 190 } 191 192 /** 193 * Returns all the layout branchs where layoutSetBranchId = ?. 194 * 195 * @param layoutSetBranchId the layout set branch ID 196 * @return the matching layout branchs 197 * @throws SystemException if a system exception occurred 198 */ 199 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 200 long layoutSetBranchId) 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return getPersistence().findByLayoutSetBranchId(layoutSetBranchId); 203 } 204 205 /** 206 * Returns a range of all the layout branchs where layoutSetBranchId = ?. 207 * 208 * <p> 209 * 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. 210 * </p> 211 * 212 * @param layoutSetBranchId the layout set branch ID 213 * @param start the lower bound of the range of layout branchs 214 * @param end the upper bound of the range of layout branchs (not inclusive) 215 * @return the range of matching layout branchs 216 * @throws SystemException if a system exception occurred 217 */ 218 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 219 long layoutSetBranchId, int start, int end) 220 throws com.liferay.portal.kernel.exception.SystemException { 221 return getPersistence() 222 .findByLayoutSetBranchId(layoutSetBranchId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the layout branchs where layoutSetBranchId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param layoutSetBranchId the layout set branch ID 233 * @param start the lower bound of the range of layout branchs 234 * @param end the upper bound of the range of layout branchs (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching layout branchs 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 240 long layoutSetBranchId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByLayoutSetBranchId(layoutSetBranchId, start, end, 245 orderByComparator); 246 } 247 248 /** 249 * Returns the first layout branch in the ordered set where layoutSetBranchId = ?. 250 * 251 * @param layoutSetBranchId the layout set branch ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching layout branch 254 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_First( 258 long layoutSetBranchId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.NoSuchLayoutBranchException, 261 com.liferay.portal.kernel.exception.SystemException { 262 return getPersistence() 263 .findByLayoutSetBranchId_First(layoutSetBranchId, 264 orderByComparator); 265 } 266 267 /** 268 * Returns the first layout branch in the ordered set where layoutSetBranchId = ?. 269 * 270 * @param layoutSetBranchId the layout set branch ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public static com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_First( 276 long layoutSetBranchId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence() 280 .fetchByLayoutSetBranchId_First(layoutSetBranchId, 281 orderByComparator); 282 } 283 284 /** 285 * Returns the last layout branch in the ordered set where layoutSetBranchId = ?. 286 * 287 * @param layoutSetBranchId the layout set branch ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the last matching layout branch 290 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public static com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_Last( 294 long layoutSetBranchId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.NoSuchLayoutBranchException, 297 com.liferay.portal.kernel.exception.SystemException { 298 return getPersistence() 299 .findByLayoutSetBranchId_Last(layoutSetBranchId, 300 orderByComparator); 301 } 302 303 /** 304 * Returns the last layout branch in the ordered set where layoutSetBranchId = ?. 305 * 306 * @param layoutSetBranchId the layout set branch ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public static com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_Last( 312 long layoutSetBranchId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence() 316 .fetchByLayoutSetBranchId_Last(layoutSetBranchId, 317 orderByComparator); 318 } 319 320 /** 321 * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ?. 322 * 323 * @param LayoutBranchId the primary key of the current layout branch 324 * @param layoutSetBranchId the layout set branch ID 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the previous, current, and next layout branch 327 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public static com.liferay.portal.model.LayoutBranch[] findByLayoutSetBranchId_PrevAndNext( 331 long LayoutBranchId, long layoutSetBranchId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.NoSuchLayoutBranchException, 334 com.liferay.portal.kernel.exception.SystemException { 335 return getPersistence() 336 .findByLayoutSetBranchId_PrevAndNext(LayoutBranchId, 337 layoutSetBranchId, orderByComparator); 338 } 339 340 /** 341 * Returns all the layout branchs where layoutSetBranchId = ? and plid = ?. 342 * 343 * @param layoutSetBranchId the layout set branch ID 344 * @param plid the plid 345 * @return the matching layout branchs 346 * @throws SystemException if a system exception occurred 347 */ 348 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 349 long layoutSetBranchId, long plid) 350 throws com.liferay.portal.kernel.exception.SystemException { 351 return getPersistence().findByL_P(layoutSetBranchId, plid); 352 } 353 354 /** 355 * Returns a range of all the layout branchs where layoutSetBranchId = ? and plid = ?. 356 * 357 * <p> 358 * 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. 359 * </p> 360 * 361 * @param layoutSetBranchId the layout set branch ID 362 * @param plid the plid 363 * @param start the lower bound of the range of layout branchs 364 * @param end the upper bound of the range of layout branchs (not inclusive) 365 * @return the range of matching layout branchs 366 * @throws SystemException if a system exception occurred 367 */ 368 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 369 long layoutSetBranchId, long plid, int start, int end) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().findByL_P(layoutSetBranchId, plid, start, end); 372 } 373 374 /** 375 * Returns an ordered range of all the layout branchs where layoutSetBranchId = ? and plid = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param layoutSetBranchId the layout set branch ID 382 * @param plid the plid 383 * @param start the lower bound of the range of layout branchs 384 * @param end the upper bound of the range of layout branchs (not inclusive) 385 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 386 * @return the ordered range of matching layout branchs 387 * @throws SystemException if a system exception occurred 388 */ 389 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 390 long layoutSetBranchId, long plid, int start, int end, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException { 393 return getPersistence() 394 .findByL_P(layoutSetBranchId, plid, start, end, 395 orderByComparator); 396 } 397 398 /** 399 * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 400 * 401 * @param layoutSetBranchId the layout set branch ID 402 * @param plid the plid 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the first matching layout branch 405 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 public static com.liferay.portal.model.LayoutBranch findByL_P_First( 409 long layoutSetBranchId, long plid, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.NoSuchLayoutBranchException, 412 com.liferay.portal.kernel.exception.SystemException { 413 return getPersistence() 414 .findByL_P_First(layoutSetBranchId, plid, orderByComparator); 415 } 416 417 /** 418 * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 419 * 420 * @param layoutSetBranchId the layout set branch ID 421 * @param plid the plid 422 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 423 * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public static com.liferay.portal.model.LayoutBranch fetchByL_P_First( 427 long layoutSetBranchId, long plid, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return getPersistence() 431 .fetchByL_P_First(layoutSetBranchId, plid, orderByComparator); 432 } 433 434 /** 435 * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 436 * 437 * @param layoutSetBranchId the layout set branch ID 438 * @param plid the plid 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the last matching layout branch 441 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public static com.liferay.portal.model.LayoutBranch findByL_P_Last( 445 long layoutSetBranchId, long plid, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.NoSuchLayoutBranchException, 448 com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence() 450 .findByL_P_Last(layoutSetBranchId, plid, orderByComparator); 451 } 452 453 /** 454 * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 455 * 456 * @param layoutSetBranchId the layout set branch ID 457 * @param plid the plid 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public static com.liferay.portal.model.LayoutBranch fetchByL_P_Last( 463 long layoutSetBranchId, long plid, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException { 466 return getPersistence() 467 .fetchByL_P_Last(layoutSetBranchId, plid, orderByComparator); 468 } 469 470 /** 471 * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 472 * 473 * @param LayoutBranchId the primary key of the current layout branch 474 * @param layoutSetBranchId the layout set branch ID 475 * @param plid the plid 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the previous, current, and next layout branch 478 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public static com.liferay.portal.model.LayoutBranch[] findByL_P_PrevAndNext( 482 long LayoutBranchId, long layoutSetBranchId, long plid, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.NoSuchLayoutBranchException, 485 com.liferay.portal.kernel.exception.SystemException { 486 return getPersistence() 487 .findByL_P_PrevAndNext(LayoutBranchId, layoutSetBranchId, 488 plid, orderByComparator); 489 } 490 491 /** 492 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 493 * 494 * @param layoutSetBranchId the layout set branch ID 495 * @param plid the plid 496 * @param name the name 497 * @return the matching layout branch 498 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public static com.liferay.portal.model.LayoutBranch findByL_P_N( 502 long layoutSetBranchId, long plid, java.lang.String name) 503 throws com.liferay.portal.NoSuchLayoutBranchException, 504 com.liferay.portal.kernel.exception.SystemException { 505 return getPersistence().findByL_P_N(layoutSetBranchId, plid, name); 506 } 507 508 /** 509 * 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. 510 * 511 * @param layoutSetBranchId the layout set branch ID 512 * @param plid the plid 513 * @param name the name 514 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public static com.liferay.portal.model.LayoutBranch fetchByL_P_N( 518 long layoutSetBranchId, long plid, java.lang.String name) 519 throws com.liferay.portal.kernel.exception.SystemException { 520 return getPersistence().fetchByL_P_N(layoutSetBranchId, plid, name); 521 } 522 523 /** 524 * 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. 525 * 526 * @param layoutSetBranchId the layout set branch ID 527 * @param plid the plid 528 * @param name the name 529 * @param retrieveFromCache whether to use the finder cache 530 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public static com.liferay.portal.model.LayoutBranch fetchByL_P_N( 534 long layoutSetBranchId, long plid, java.lang.String name, 535 boolean retrieveFromCache) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence() 538 .fetchByL_P_N(layoutSetBranchId, plid, name, 539 retrieveFromCache); 540 } 541 542 /** 543 * Returns all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 544 * 545 * @param layoutSetBranchId the layout set branch ID 546 * @param plid the plid 547 * @param master the master 548 * @return the matching layout branchs 549 * @throws SystemException if a system exception occurred 550 */ 551 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M( 552 long layoutSetBranchId, long plid, boolean master) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence().findByL_P_M(layoutSetBranchId, plid, master); 555 } 556 557 /** 558 * Returns a range of all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 559 * 560 * <p> 561 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 562 * </p> 563 * 564 * @param layoutSetBranchId the layout set branch ID 565 * @param plid the plid 566 * @param master the master 567 * @param start the lower bound of the range of layout branchs 568 * @param end the upper bound of the range of layout branchs (not inclusive) 569 * @return the range of matching layout branchs 570 * @throws SystemException if a system exception occurred 571 */ 572 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M( 573 long layoutSetBranchId, long plid, boolean master, int start, int end) 574 throws com.liferay.portal.kernel.exception.SystemException { 575 return getPersistence() 576 .findByL_P_M(layoutSetBranchId, plid, master, start, end); 577 } 578 579 /** 580 * Returns an ordered range of all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 581 * 582 * <p> 583 * 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. 584 * </p> 585 * 586 * @param layoutSetBranchId the layout set branch ID 587 * @param plid the plid 588 * @param master the master 589 * @param start the lower bound of the range of layout branchs 590 * @param end the upper bound of the range of layout branchs (not inclusive) 591 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 592 * @return the ordered range of matching layout branchs 593 * @throws SystemException if a system exception occurred 594 */ 595 public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M( 596 long layoutSetBranchId, long plid, boolean master, int start, int end, 597 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 return getPersistence() 600 .findByL_P_M(layoutSetBranchId, plid, master, start, end, 601 orderByComparator); 602 } 603 604 /** 605 * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. 606 * 607 * @param layoutSetBranchId the layout set branch ID 608 * @param plid the plid 609 * @param master the master 610 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 611 * @return the first matching layout branch 612 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 613 * @throws SystemException if a system exception occurred 614 */ 615 public static com.liferay.portal.model.LayoutBranch findByL_P_M_First( 616 long layoutSetBranchId, long plid, boolean master, 617 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 618 throws com.liferay.portal.NoSuchLayoutBranchException, 619 com.liferay.portal.kernel.exception.SystemException { 620 return getPersistence() 621 .findByL_P_M_First(layoutSetBranchId, plid, master, 622 orderByComparator); 623 } 624 625 /** 626 * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. 627 * 628 * @param layoutSetBranchId the layout set branch ID 629 * @param plid the plid 630 * @param master the master 631 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 632 * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public static com.liferay.portal.model.LayoutBranch fetchByL_P_M_First( 636 long layoutSetBranchId, long plid, boolean master, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence() 640 .fetchByL_P_M_First(layoutSetBranchId, plid, master, 641 orderByComparator); 642 } 643 644 /** 645 * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. 646 * 647 * @param layoutSetBranchId the layout set branch ID 648 * @param plid the plid 649 * @param master the master 650 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 651 * @return the last matching layout branch 652 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 653 * @throws SystemException if a system exception occurred 654 */ 655 public static com.liferay.portal.model.LayoutBranch findByL_P_M_Last( 656 long layoutSetBranchId, long plid, boolean master, 657 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 658 throws com.liferay.portal.NoSuchLayoutBranchException, 659 com.liferay.portal.kernel.exception.SystemException { 660 return getPersistence() 661 .findByL_P_M_Last(layoutSetBranchId, plid, master, 662 orderByComparator); 663 } 664 665 /** 666 * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. 667 * 668 * @param layoutSetBranchId the layout set branch ID 669 * @param plid the plid 670 * @param master the master 671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 672 * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found 673 * @throws SystemException if a system exception occurred 674 */ 675 public static com.liferay.portal.model.LayoutBranch fetchByL_P_M_Last( 676 long layoutSetBranchId, long plid, boolean master, 677 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence() 680 .fetchByL_P_M_Last(layoutSetBranchId, plid, master, 681 orderByComparator); 682 } 683 684 /** 685 * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. 686 * 687 * @param LayoutBranchId the primary key of the current layout branch 688 * @param layoutSetBranchId the layout set branch ID 689 * @param plid the plid 690 * @param master the master 691 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 692 * @return the previous, current, and next layout branch 693 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public static com.liferay.portal.model.LayoutBranch[] findByL_P_M_PrevAndNext( 697 long LayoutBranchId, long layoutSetBranchId, long plid, boolean master, 698 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 699 throws com.liferay.portal.NoSuchLayoutBranchException, 700 com.liferay.portal.kernel.exception.SystemException { 701 return getPersistence() 702 .findByL_P_M_PrevAndNext(LayoutBranchId, layoutSetBranchId, 703 plid, master, orderByComparator); 704 } 705 706 /** 707 * Returns all the layout branchs. 708 * 709 * @return the layout branchs 710 * @throws SystemException if a system exception occurred 711 */ 712 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll() 713 throws com.liferay.portal.kernel.exception.SystemException { 714 return getPersistence().findAll(); 715 } 716 717 /** 718 * Returns a range of all the layout branchs. 719 * 720 * <p> 721 * 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. 722 * </p> 723 * 724 * @param start the lower bound of the range of layout branchs 725 * @param end the upper bound of the range of layout branchs (not inclusive) 726 * @return the range of layout branchs 727 * @throws SystemException if a system exception occurred 728 */ 729 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 730 int start, int end) 731 throws com.liferay.portal.kernel.exception.SystemException { 732 return getPersistence().findAll(start, end); 733 } 734 735 /** 736 * Returns an ordered range of all the layout branchs. 737 * 738 * <p> 739 * 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. 740 * </p> 741 * 742 * @param start the lower bound of the range of layout branchs 743 * @param end the upper bound of the range of layout branchs (not inclusive) 744 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 745 * @return the ordered range of layout branchs 746 * @throws SystemException if a system exception occurred 747 */ 748 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 749 int start, int end, 750 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 751 throws com.liferay.portal.kernel.exception.SystemException { 752 return getPersistence().findAll(start, end, orderByComparator); 753 } 754 755 /** 756 * Removes all the layout branchs where layoutSetBranchId = ? from the database. 757 * 758 * @param layoutSetBranchId the layout set branch ID 759 * @throws SystemException if a system exception occurred 760 */ 761 public static void removeByLayoutSetBranchId(long layoutSetBranchId) 762 throws com.liferay.portal.kernel.exception.SystemException { 763 getPersistence().removeByLayoutSetBranchId(layoutSetBranchId); 764 } 765 766 /** 767 * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? from the database. 768 * 769 * @param layoutSetBranchId the layout set branch ID 770 * @param plid the plid 771 * @throws SystemException if a system exception occurred 772 */ 773 public static void removeByL_P(long layoutSetBranchId, long plid) 774 throws com.liferay.portal.kernel.exception.SystemException { 775 getPersistence().removeByL_P(layoutSetBranchId, plid); 776 } 777 778 /** 779 * Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database. 780 * 781 * @param layoutSetBranchId the layout set branch ID 782 * @param plid the plid 783 * @param name the name 784 * @return the layout branch that was removed 785 * @throws SystemException if a system exception occurred 786 */ 787 public static com.liferay.portal.model.LayoutBranch removeByL_P_N( 788 long layoutSetBranchId, long plid, java.lang.String name) 789 throws com.liferay.portal.NoSuchLayoutBranchException, 790 com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence().removeByL_P_N(layoutSetBranchId, plid, name); 792 } 793 794 /** 795 * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ? from the database. 796 * 797 * @param layoutSetBranchId the layout set branch ID 798 * @param plid the plid 799 * @param master the master 800 * @throws SystemException if a system exception occurred 801 */ 802 public static void removeByL_P_M(long layoutSetBranchId, long plid, 803 boolean master) 804 throws com.liferay.portal.kernel.exception.SystemException { 805 getPersistence().removeByL_P_M(layoutSetBranchId, plid, master); 806 } 807 808 /** 809 * Removes all the layout branchs from the database. 810 * 811 * @throws SystemException if a system exception occurred 812 */ 813 public static void removeAll() 814 throws com.liferay.portal.kernel.exception.SystemException { 815 getPersistence().removeAll(); 816 } 817 818 /** 819 * Returns the number of layout branchs where layoutSetBranchId = ?. 820 * 821 * @param layoutSetBranchId the layout set branch ID 822 * @return the number of matching layout branchs 823 * @throws SystemException if a system exception occurred 824 */ 825 public static int countByLayoutSetBranchId(long layoutSetBranchId) 826 throws com.liferay.portal.kernel.exception.SystemException { 827 return getPersistence().countByLayoutSetBranchId(layoutSetBranchId); 828 } 829 830 /** 831 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ?. 832 * 833 * @param layoutSetBranchId the layout set branch ID 834 * @param plid the plid 835 * @return the number of matching layout branchs 836 * @throws SystemException if a system exception occurred 837 */ 838 public static int countByL_P(long layoutSetBranchId, long plid) 839 throws com.liferay.portal.kernel.exception.SystemException { 840 return getPersistence().countByL_P(layoutSetBranchId, plid); 841 } 842 843 /** 844 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and name = ?. 845 * 846 * @param layoutSetBranchId the layout set branch ID 847 * @param plid the plid 848 * @param name the name 849 * @return the number of matching layout branchs 850 * @throws SystemException if a system exception occurred 851 */ 852 public static int countByL_P_N(long layoutSetBranchId, long plid, 853 java.lang.String name) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 return getPersistence().countByL_P_N(layoutSetBranchId, plid, name); 856 } 857 858 /** 859 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 860 * 861 * @param layoutSetBranchId the layout set branch ID 862 * @param plid the plid 863 * @param master the master 864 * @return the number of matching layout branchs 865 * @throws SystemException if a system exception occurred 866 */ 867 public static int countByL_P_M(long layoutSetBranchId, long plid, 868 boolean master) 869 throws com.liferay.portal.kernel.exception.SystemException { 870 return getPersistence().countByL_P_M(layoutSetBranchId, plid, master); 871 } 872 873 /** 874 * Returns the number of layout branchs. 875 * 876 * @return the number of layout branchs 877 * @throws SystemException if a system exception occurred 878 */ 879 public static int countAll() 880 throws com.liferay.portal.kernel.exception.SystemException { 881 return getPersistence().countAll(); 882 } 883 884 public static LayoutBranchPersistence getPersistence() { 885 if (_persistence == null) { 886 _persistence = (LayoutBranchPersistence)PortalBeanLocatorUtil.locate(LayoutBranchPersistence.class.getName()); 887 888 ReferenceRegistry.registerReference(LayoutBranchUtil.class, 889 "_persistence"); 890 } 891 892 return _persistence; 893 } 894 895 /** 896 * @deprecated 897 */ 898 public void setPersistence(LayoutBranchPersistence persistence) { 899 } 900 901 private static LayoutBranchPersistence _persistence; 902 }