001 /** 002 * Copyright (c) 2000-2012 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) 098 */ 099 public static LayoutBranch update(LayoutBranch layoutBranch) 100 throws SystemException { 101 return getPersistence().update(layoutBranch); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static LayoutBranch update(LayoutBranch layoutBranch, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(layoutBranch, 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) 160 throws com.liferay.portal.kernel.exception.SystemException { 161 return getPersistence().updateImpl(layoutBranch); 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 the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 544 * 545 * @param layoutSetBranchId the layout set branch ID 546 * @param plid the plid 547 * @param master the master 548 * @return the matching layout branch 549 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public static com.liferay.portal.model.LayoutBranch findByL_P_M( 553 long layoutSetBranchId, long plid, boolean master) 554 throws com.liferay.portal.NoSuchLayoutBranchException, 555 com.liferay.portal.kernel.exception.SystemException { 556 return getPersistence().findByL_P_M(layoutSetBranchId, plid, master); 557 } 558 559 /** 560 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 561 * 562 * @param layoutSetBranchId the layout set branch ID 563 * @param plid the plid 564 * @param master the master 565 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 566 * @throws SystemException if a system exception occurred 567 */ 568 public static com.liferay.portal.model.LayoutBranch fetchByL_P_M( 569 long layoutSetBranchId, long plid, boolean master) 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence().fetchByL_P_M(layoutSetBranchId, plid, master); 572 } 573 574 /** 575 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 576 * 577 * @param layoutSetBranchId the layout set branch ID 578 * @param plid the plid 579 * @param master the master 580 * @param retrieveFromCache whether to use the finder cache 581 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public static com.liferay.portal.model.LayoutBranch fetchByL_P_M( 585 long layoutSetBranchId, long plid, boolean master, 586 boolean retrieveFromCache) 587 throws com.liferay.portal.kernel.exception.SystemException { 588 return getPersistence() 589 .fetchByL_P_M(layoutSetBranchId, plid, master, 590 retrieveFromCache); 591 } 592 593 /** 594 * Returns all the layout branchs. 595 * 596 * @return the layout branchs 597 * @throws SystemException if a system exception occurred 598 */ 599 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll() 600 throws com.liferay.portal.kernel.exception.SystemException { 601 return getPersistence().findAll(); 602 } 603 604 /** 605 * Returns a range of all the layout branchs. 606 * 607 * <p> 608 * 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. 609 * </p> 610 * 611 * @param start the lower bound of the range of layout branchs 612 * @param end the upper bound of the range of layout branchs (not inclusive) 613 * @return the range of layout branchs 614 * @throws SystemException if a system exception occurred 615 */ 616 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 617 int start, int end) 618 throws com.liferay.portal.kernel.exception.SystemException { 619 return getPersistence().findAll(start, end); 620 } 621 622 /** 623 * Returns an ordered range of all the layout branchs. 624 * 625 * <p> 626 * 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. 627 * </p> 628 * 629 * @param start the lower bound of the range of layout branchs 630 * @param end the upper bound of the range of layout branchs (not inclusive) 631 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 632 * @return the ordered range of layout branchs 633 * @throws SystemException if a system exception occurred 634 */ 635 public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 636 int start, int end, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().findAll(start, end, orderByComparator); 640 } 641 642 /** 643 * Removes all the layout branchs where layoutSetBranchId = ? from the database. 644 * 645 * @param layoutSetBranchId the layout set branch ID 646 * @throws SystemException if a system exception occurred 647 */ 648 public static void removeByLayoutSetBranchId(long layoutSetBranchId) 649 throws com.liferay.portal.kernel.exception.SystemException { 650 getPersistence().removeByLayoutSetBranchId(layoutSetBranchId); 651 } 652 653 /** 654 * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? from the database. 655 * 656 * @param layoutSetBranchId the layout set branch ID 657 * @param plid the plid 658 * @throws SystemException if a system exception occurred 659 */ 660 public static void removeByL_P(long layoutSetBranchId, long plid) 661 throws com.liferay.portal.kernel.exception.SystemException { 662 getPersistence().removeByL_P(layoutSetBranchId, plid); 663 } 664 665 /** 666 * Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database. 667 * 668 * @param layoutSetBranchId the layout set branch ID 669 * @param plid the plid 670 * @param name the name 671 * @return the layout branch that was removed 672 * @throws SystemException if a system exception occurred 673 */ 674 public static com.liferay.portal.model.LayoutBranch removeByL_P_N( 675 long layoutSetBranchId, long plid, java.lang.String name) 676 throws com.liferay.portal.NoSuchLayoutBranchException, 677 com.liferay.portal.kernel.exception.SystemException { 678 return getPersistence().removeByL_P_N(layoutSetBranchId, plid, name); 679 } 680 681 /** 682 * Removes the layout branch where layoutSetBranchId = ? and plid = ? and master = ? from the database. 683 * 684 * @param layoutSetBranchId the layout set branch ID 685 * @param plid the plid 686 * @param master the master 687 * @return the layout branch that was removed 688 * @throws SystemException if a system exception occurred 689 */ 690 public static com.liferay.portal.model.LayoutBranch removeByL_P_M( 691 long layoutSetBranchId, long plid, boolean master) 692 throws com.liferay.portal.NoSuchLayoutBranchException, 693 com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().removeByL_P_M(layoutSetBranchId, plid, master); 695 } 696 697 /** 698 * Removes all the layout branchs from the database. 699 * 700 * @throws SystemException if a system exception occurred 701 */ 702 public static void removeAll() 703 throws com.liferay.portal.kernel.exception.SystemException { 704 getPersistence().removeAll(); 705 } 706 707 /** 708 * Returns the number of layout branchs where layoutSetBranchId = ?. 709 * 710 * @param layoutSetBranchId the layout set branch ID 711 * @return the number of matching layout branchs 712 * @throws SystemException if a system exception occurred 713 */ 714 public static int countByLayoutSetBranchId(long layoutSetBranchId) 715 throws com.liferay.portal.kernel.exception.SystemException { 716 return getPersistence().countByLayoutSetBranchId(layoutSetBranchId); 717 } 718 719 /** 720 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ?. 721 * 722 * @param layoutSetBranchId the layout set branch ID 723 * @param plid the plid 724 * @return the number of matching layout branchs 725 * @throws SystemException if a system exception occurred 726 */ 727 public static int countByL_P(long layoutSetBranchId, long plid) 728 throws com.liferay.portal.kernel.exception.SystemException { 729 return getPersistence().countByL_P(layoutSetBranchId, plid); 730 } 731 732 /** 733 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and name = ?. 734 * 735 * @param layoutSetBranchId the layout set branch ID 736 * @param plid the plid 737 * @param name the name 738 * @return the number of matching layout branchs 739 * @throws SystemException if a system exception occurred 740 */ 741 public static int countByL_P_N(long layoutSetBranchId, long plid, 742 java.lang.String name) 743 throws com.liferay.portal.kernel.exception.SystemException { 744 return getPersistence().countByL_P_N(layoutSetBranchId, plid, name); 745 } 746 747 /** 748 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 749 * 750 * @param layoutSetBranchId the layout set branch ID 751 * @param plid the plid 752 * @param master the master 753 * @return the number of matching layout branchs 754 * @throws SystemException if a system exception occurred 755 */ 756 public static int countByL_P_M(long layoutSetBranchId, long plid, 757 boolean master) 758 throws com.liferay.portal.kernel.exception.SystemException { 759 return getPersistence().countByL_P_M(layoutSetBranchId, plid, master); 760 } 761 762 /** 763 * Returns the number of layout branchs. 764 * 765 * @return the number of layout branchs 766 * @throws SystemException if a system exception occurred 767 */ 768 public static int countAll() 769 throws com.liferay.portal.kernel.exception.SystemException { 770 return getPersistence().countAll(); 771 } 772 773 public static LayoutBranchPersistence getPersistence() { 774 if (_persistence == null) { 775 _persistence = (LayoutBranchPersistence)PortalBeanLocatorUtil.locate(LayoutBranchPersistence.class.getName()); 776 777 ReferenceRegistry.registerReference(LayoutBranchUtil.class, 778 "_persistence"); 779 } 780 781 return _persistence; 782 } 783 784 /** 785 * @deprecated 786 */ 787 public void setPersistence(LayoutBranchPersistence persistence) { 788 } 789 790 private static LayoutBranchPersistence _persistence; 791 }