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.LayoutSetBranch; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the layout set branch service. This utility wraps {@link LayoutSetBranchPersistenceImpl} 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 LayoutSetBranchPersistence 036 * @see LayoutSetBranchPersistenceImpl 037 * @generated 038 */ 039 public class LayoutSetBranchUtil { 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(LayoutSetBranch layoutSetBranch) { 057 getPersistence().clearCache(layoutSetBranch); 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<LayoutSetBranch> 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<LayoutSetBranch> 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<LayoutSetBranch> 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 LayoutSetBranch update(LayoutSetBranch layoutSetBranch, 100 boolean merge) throws SystemException { 101 return getPersistence().update(layoutSetBranch, merge); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 106 */ 107 public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch, 108 boolean merge, ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(layoutSetBranch, merge, serviceContext); 110 } 111 112 /** 113 * Caches the layout set branch in the entity cache if it is enabled. 114 * 115 * @param layoutSetBranch the layout set branch 116 */ 117 public static void cacheResult( 118 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) { 119 getPersistence().cacheResult(layoutSetBranch); 120 } 121 122 /** 123 * Caches the layout set branchs in the entity cache if it is enabled. 124 * 125 * @param layoutSetBranchs the layout set branchs 126 */ 127 public static void cacheResult( 128 java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs) { 129 getPersistence().cacheResult(layoutSetBranchs); 130 } 131 132 /** 133 * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database. 134 * 135 * @param layoutSetBranchId the primary key for the new layout set branch 136 * @return the new layout set branch 137 */ 138 public static com.liferay.portal.model.LayoutSetBranch create( 139 long layoutSetBranchId) { 140 return getPersistence().create(layoutSetBranchId); 141 } 142 143 /** 144 * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners. 145 * 146 * @param layoutSetBranchId the primary key of the layout set branch 147 * @return the layout set branch that was removed 148 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set 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.LayoutSetBranch remove( 152 long layoutSetBranchId) 153 throws com.liferay.portal.NoSuchLayoutSetBranchException, 154 com.liferay.portal.kernel.exception.SystemException { 155 return getPersistence().remove(layoutSetBranchId); 156 } 157 158 public static com.liferay.portal.model.LayoutSetBranch updateImpl( 159 com.liferay.portal.model.LayoutSetBranch layoutSetBranch, boolean merge) 160 throws com.liferay.portal.kernel.exception.SystemException { 161 return getPersistence().updateImpl(layoutSetBranch, merge); 162 } 163 164 /** 165 * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found. 166 * 167 * @param layoutSetBranchId the primary key of the layout set branch 168 * @return the layout set branch 169 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set 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.LayoutSetBranch findByPrimaryKey( 173 long layoutSetBranchId) 174 throws com.liferay.portal.NoSuchLayoutSetBranchException, 175 com.liferay.portal.kernel.exception.SystemException { 176 return getPersistence().findByPrimaryKey(layoutSetBranchId); 177 } 178 179 /** 180 * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found. 181 * 182 * @param layoutSetBranchId the primary key of the layout set branch 183 * @return the layout set branch, or <code>null</code> if a layout set 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.LayoutSetBranch fetchByPrimaryKey( 187 long layoutSetBranchId) 188 throws com.liferay.portal.kernel.exception.SystemException { 189 return getPersistence().fetchByPrimaryKey(layoutSetBranchId); 190 } 191 192 /** 193 * Returns all the layout set branchs where groupId = ?. 194 * 195 * @param groupId the group ID 196 * @return the matching layout set branchs 197 * @throws SystemException if a system exception occurred 198 */ 199 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 200 long groupId) 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return getPersistence().findByGroupId(groupId); 203 } 204 205 /** 206 * Returns a range of all the layout set branchs where groupId = ?. 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 groupId the group ID 213 * @param start the lower bound of the range of layout set branchs 214 * @param end the upper bound of the range of layout set branchs (not inclusive) 215 * @return the range of matching layout set branchs 216 * @throws SystemException if a system exception occurred 217 */ 218 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 219 long groupId, int start, int end) 220 throws com.liferay.portal.kernel.exception.SystemException { 221 return getPersistence().findByGroupId(groupId, start, end); 222 } 223 224 /** 225 * Returns an ordered range of all the layout set branchs where groupId = ?. 226 * 227 * <p> 228 * 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. 229 * </p> 230 * 231 * @param groupId the group ID 232 * @param start the lower bound of the range of layout set branchs 233 * @param end the upper bound of the range of layout set branchs (not inclusive) 234 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 235 * @return the ordered range of matching layout set branchs 236 * @throws SystemException if a system exception occurred 237 */ 238 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 239 long groupId, int start, int end, 240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 241 throws com.liferay.portal.kernel.exception.SystemException { 242 return getPersistence() 243 .findByGroupId(groupId, start, end, orderByComparator); 244 } 245 246 /** 247 * Returns the first layout set branch in the ordered set where groupId = ?. 248 * 249 * @param groupId the group ID 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching layout set branch 252 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 253 * @throws SystemException if a system exception occurred 254 */ 255 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_First( 256 long groupId, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.NoSuchLayoutSetBranchException, 259 com.liferay.portal.kernel.exception.SystemException { 260 return getPersistence().findByGroupId_First(groupId, orderByComparator); 261 } 262 263 /** 264 * Returns the first layout set branch in the ordered set where groupId = ?. 265 * 266 * @param groupId the group ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First( 272 long groupId, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 276 } 277 278 /** 279 * Returns the last layout set branch in the ordered set where groupId = ?. 280 * 281 * @param groupId the group ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching layout set branch 284 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_Last( 288 long groupId, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.NoSuchLayoutSetBranchException, 291 com.liferay.portal.kernel.exception.SystemException { 292 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 293 } 294 295 /** 296 * Returns the last layout set branch in the ordered set where groupId = ?. 297 * 298 * @param groupId the group ID 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last( 304 long groupId, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 308 } 309 310 /** 311 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ?. 312 * 313 * @param layoutSetBranchId the primary key of the current layout set branch 314 * @param groupId the group ID 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the previous, current, and next layout set branch 317 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext( 321 long layoutSetBranchId, long groupId, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.NoSuchLayoutSetBranchException, 324 com.liferay.portal.kernel.exception.SystemException { 325 return getPersistence() 326 .findByGroupId_PrevAndNext(layoutSetBranchId, groupId, 327 orderByComparator); 328 } 329 330 /** 331 * Returns all the layout set branchs that the user has permission to view where groupId = ?. 332 * 333 * @param groupId the group ID 334 * @return the matching layout set branchs that the user has permission to view 335 * @throws SystemException if a system exception occurred 336 */ 337 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 338 long groupId) 339 throws com.liferay.portal.kernel.exception.SystemException { 340 return getPersistence().filterFindByGroupId(groupId); 341 } 342 343 /** 344 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ?. 345 * 346 * <p> 347 * 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. 348 * </p> 349 * 350 * @param groupId the group ID 351 * @param start the lower bound of the range of layout set branchs 352 * @param end the upper bound of the range of layout set branchs (not inclusive) 353 * @return the range of matching layout set branchs that the user has permission to view 354 * @throws SystemException if a system exception occurred 355 */ 356 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 357 long groupId, int start, int end) 358 throws com.liferay.portal.kernel.exception.SystemException { 359 return getPersistence().filterFindByGroupId(groupId, start, end); 360 } 361 362 /** 363 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param groupId the group ID 370 * @param start the lower bound of the range of layout set branchs 371 * @param end the upper bound of the range of layout set branchs (not inclusive) 372 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 373 * @return the ordered range of matching layout set branchs that the user has permission to view 374 * @throws SystemException if a system exception occurred 375 */ 376 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 377 long groupId, int start, int end, 378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 379 throws com.liferay.portal.kernel.exception.SystemException { 380 return getPersistence() 381 .filterFindByGroupId(groupId, start, end, orderByComparator); 382 } 383 384 /** 385 * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = ?. 386 * 387 * @param layoutSetBranchId the primary key of the current layout set branch 388 * @param groupId the group ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the previous, current, and next layout set branch 391 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext( 395 long layoutSetBranchId, long groupId, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.NoSuchLayoutSetBranchException, 398 com.liferay.portal.kernel.exception.SystemException { 399 return getPersistence() 400 .filterFindByGroupId_PrevAndNext(layoutSetBranchId, groupId, 401 orderByComparator); 402 } 403 404 /** 405 * Returns all the layout set branchs where groupId = ? and privateLayout = ?. 406 * 407 * @param groupId the group ID 408 * @param privateLayout the private layout 409 * @return the matching layout set branchs 410 * @throws SystemException if a system exception occurred 411 */ 412 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 413 long groupId, boolean privateLayout) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getPersistence().findByG_P(groupId, privateLayout); 416 } 417 418 /** 419 * Returns a range of all the layout set branchs where groupId = ? and privateLayout = ?. 420 * 421 * <p> 422 * 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. 423 * </p> 424 * 425 * @param groupId the group ID 426 * @param privateLayout the private layout 427 * @param start the lower bound of the range of layout set branchs 428 * @param end the upper bound of the range of layout set branchs (not inclusive) 429 * @return the range of matching layout set branchs 430 * @throws SystemException if a system exception occurred 431 */ 432 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 433 long groupId, boolean privateLayout, int start, int end) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence().findByG_P(groupId, privateLayout, start, end); 436 } 437 438 /** 439 * Returns an ordered range of all the layout set branchs where groupId = ? and privateLayout = ?. 440 * 441 * <p> 442 * 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. 443 * </p> 444 * 445 * @param groupId the group ID 446 * @param privateLayout the private layout 447 * @param start the lower bound of the range of layout set branchs 448 * @param end the upper bound of the range of layout set branchs (not inclusive) 449 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 450 * @return the ordered range of matching layout set branchs 451 * @throws SystemException if a system exception occurred 452 */ 453 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 454 long groupId, boolean privateLayout, int start, int end, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return getPersistence() 458 .findByG_P(groupId, privateLayout, start, end, 459 orderByComparator); 460 } 461 462 /** 463 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 464 * 465 * @param groupId the group ID 466 * @param privateLayout the private layout 467 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 468 * @return the first matching layout set branch 469 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 470 * @throws SystemException if a system exception occurred 471 */ 472 public static com.liferay.portal.model.LayoutSetBranch findByG_P_First( 473 long groupId, boolean privateLayout, 474 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 475 throws com.liferay.portal.NoSuchLayoutSetBranchException, 476 com.liferay.portal.kernel.exception.SystemException { 477 return getPersistence() 478 .findByG_P_First(groupId, privateLayout, orderByComparator); 479 } 480 481 /** 482 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 483 * 484 * @param groupId the group ID 485 * @param privateLayout the private layout 486 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 487 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 488 * @throws SystemException if a system exception occurred 489 */ 490 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_First( 491 long groupId, boolean privateLayout, 492 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 493 throws com.liferay.portal.kernel.exception.SystemException { 494 return getPersistence() 495 .fetchByG_P_First(groupId, privateLayout, orderByComparator); 496 } 497 498 /** 499 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 500 * 501 * @param groupId the group ID 502 * @param privateLayout the private layout 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the last matching layout set branch 505 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 506 * @throws SystemException if a system exception occurred 507 */ 508 public static com.liferay.portal.model.LayoutSetBranch findByG_P_Last( 509 long groupId, boolean privateLayout, 510 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 511 throws com.liferay.portal.NoSuchLayoutSetBranchException, 512 com.liferay.portal.kernel.exception.SystemException { 513 return getPersistence() 514 .findByG_P_Last(groupId, privateLayout, orderByComparator); 515 } 516 517 /** 518 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 519 * 520 * @param groupId the group ID 521 * @param privateLayout the private layout 522 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 523 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 524 * @throws SystemException if a system exception occurred 525 */ 526 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last( 527 long groupId, boolean privateLayout, 528 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 529 throws com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence() 531 .fetchByG_P_Last(groupId, privateLayout, orderByComparator); 532 } 533 534 /** 535 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ? and privateLayout = ?. 536 * 537 * @param layoutSetBranchId the primary key of the current layout set branch 538 * @param groupId the group ID 539 * @param privateLayout the private layout 540 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 541 * @return the previous, current, and next layout set branch 542 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext( 546 long layoutSetBranchId, long groupId, boolean privateLayout, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.NoSuchLayoutSetBranchException, 549 com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence() 551 .findByG_P_PrevAndNext(layoutSetBranchId, groupId, 552 privateLayout, orderByComparator); 553 } 554 555 /** 556 * Returns all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 557 * 558 * @param groupId the group ID 559 * @param privateLayout the private layout 560 * @return the matching layout set branchs that the user has permission to view 561 * @throws SystemException if a system exception occurred 562 */ 563 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 564 long groupId, boolean privateLayout) 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence().filterFindByG_P(groupId, privateLayout); 567 } 568 569 /** 570 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 571 * 572 * <p> 573 * 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. 574 * </p> 575 * 576 * @param groupId the group ID 577 * @param privateLayout the private layout 578 * @param start the lower bound of the range of layout set branchs 579 * @param end the upper bound of the range of layout set branchs (not inclusive) 580 * @return the range of matching layout set branchs that the user has permission to view 581 * @throws SystemException if a system exception occurred 582 */ 583 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 584 long groupId, boolean privateLayout, int start, int end) 585 throws com.liferay.portal.kernel.exception.SystemException { 586 return getPersistence() 587 .filterFindByG_P(groupId, privateLayout, start, end); 588 } 589 590 /** 591 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ? and privateLayout = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param groupId the group ID 598 * @param privateLayout the private layout 599 * @param start the lower bound of the range of layout set branchs 600 * @param end the upper bound of the range of layout set branchs (not inclusive) 601 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 602 * @return the ordered range of matching layout set branchs that the user has permission to view 603 * @throws SystemException if a system exception occurred 604 */ 605 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 606 long groupId, boolean privateLayout, int start, int end, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence() 610 .filterFindByG_P(groupId, privateLayout, start, end, 611 orderByComparator); 612 } 613 614 /** 615 * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 616 * 617 * @param layoutSetBranchId the primary key of the current layout set branch 618 * @param groupId the group ID 619 * @param privateLayout the private layout 620 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 621 * @return the previous, current, and next layout set branch 622 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 623 * @throws SystemException if a system exception occurred 624 */ 625 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext( 626 long layoutSetBranchId, long groupId, boolean privateLayout, 627 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 628 throws com.liferay.portal.NoSuchLayoutSetBranchException, 629 com.liferay.portal.kernel.exception.SystemException { 630 return getPersistence() 631 .filterFindByG_P_PrevAndNext(layoutSetBranchId, groupId, 632 privateLayout, orderByComparator); 633 } 634 635 /** 636 * Returns the layout set branch where groupId = ? and privateLayout = ? and name = ? or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found. 637 * 638 * @param groupId the group ID 639 * @param privateLayout the private layout 640 * @param name the name 641 * @return the matching layout set branch 642 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 643 * @throws SystemException if a system exception occurred 644 */ 645 public static com.liferay.portal.model.LayoutSetBranch findByG_P_N( 646 long groupId, boolean privateLayout, java.lang.String name) 647 throws com.liferay.portal.NoSuchLayoutSetBranchException, 648 com.liferay.portal.kernel.exception.SystemException { 649 return getPersistence().findByG_P_N(groupId, privateLayout, name); 650 } 651 652 /** 653 * Returns the layout set branch where groupId = ? and privateLayout = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 654 * 655 * @param groupId the group ID 656 * @param privateLayout the private layout 657 * @param name the name 658 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 659 * @throws SystemException if a system exception occurred 660 */ 661 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N( 662 long groupId, boolean privateLayout, java.lang.String name) 663 throws com.liferay.portal.kernel.exception.SystemException { 664 return getPersistence().fetchByG_P_N(groupId, privateLayout, name); 665 } 666 667 /** 668 * Returns the layout set branch where groupId = ? and privateLayout = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 669 * 670 * @param groupId the group ID 671 * @param privateLayout the private layout 672 * @param name the name 673 * @param retrieveFromCache whether to use the finder cache 674 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 675 * @throws SystemException if a system exception occurred 676 */ 677 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N( 678 long groupId, boolean privateLayout, java.lang.String name, 679 boolean retrieveFromCache) 680 throws com.liferay.portal.kernel.exception.SystemException { 681 return getPersistence() 682 .fetchByG_P_N(groupId, privateLayout, name, retrieveFromCache); 683 } 684 685 /** 686 * Returns all the layout set branchs where groupId = ? and privateLayout = ? and master = ?. 687 * 688 * @param groupId the group ID 689 * @param privateLayout the private layout 690 * @param master the master 691 * @return the matching layout set branchs 692 * @throws SystemException if a system exception occurred 693 */ 694 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M( 695 long groupId, boolean privateLayout, boolean master) 696 throws com.liferay.portal.kernel.exception.SystemException { 697 return getPersistence().findByG_P_M(groupId, privateLayout, master); 698 } 699 700 /** 701 * Returns a range of all the layout set branchs where groupId = ? and privateLayout = ? and master = ?. 702 * 703 * <p> 704 * 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. 705 * </p> 706 * 707 * @param groupId the group ID 708 * @param privateLayout the private layout 709 * @param master the master 710 * @param start the lower bound of the range of layout set branchs 711 * @param end the upper bound of the range of layout set branchs (not inclusive) 712 * @return the range of matching layout set branchs 713 * @throws SystemException if a system exception occurred 714 */ 715 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M( 716 long groupId, boolean privateLayout, boolean master, int start, int end) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 return getPersistence() 719 .findByG_P_M(groupId, privateLayout, master, start, end); 720 } 721 722 /** 723 * Returns an ordered range of all the layout set branchs where groupId = ? and privateLayout = ? and master = ?. 724 * 725 * <p> 726 * 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. 727 * </p> 728 * 729 * @param groupId the group ID 730 * @param privateLayout the private layout 731 * @param master the master 732 * @param start the lower bound of the range of layout set branchs 733 * @param end the upper bound of the range of layout set branchs (not inclusive) 734 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 735 * @return the ordered range of matching layout set branchs 736 * @throws SystemException if a system exception occurred 737 */ 738 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M( 739 long groupId, boolean privateLayout, boolean master, int start, 740 int end, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.kernel.exception.SystemException { 743 return getPersistence() 744 .findByG_P_M(groupId, privateLayout, master, start, end, 745 orderByComparator); 746 } 747 748 /** 749 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ? and master = ?. 750 * 751 * @param groupId the group ID 752 * @param privateLayout the private layout 753 * @param master the master 754 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 755 * @return the first matching layout set branch 756 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 757 * @throws SystemException if a system exception occurred 758 */ 759 public static com.liferay.portal.model.LayoutSetBranch findByG_P_M_First( 760 long groupId, boolean privateLayout, boolean master, 761 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 762 throws com.liferay.portal.NoSuchLayoutSetBranchException, 763 com.liferay.portal.kernel.exception.SystemException { 764 return getPersistence() 765 .findByG_P_M_First(groupId, privateLayout, master, 766 orderByComparator); 767 } 768 769 /** 770 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ? and master = ?. 771 * 772 * @param groupId the group ID 773 * @param privateLayout the private layout 774 * @param master the master 775 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 776 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 777 * @throws SystemException if a system exception occurred 778 */ 779 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_First( 780 long groupId, boolean privateLayout, boolean master, 781 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence() 784 .fetchByG_P_M_First(groupId, privateLayout, master, 785 orderByComparator); 786 } 787 788 /** 789 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ? and master = ?. 790 * 791 * @param groupId the group ID 792 * @param privateLayout the private layout 793 * @param master the master 794 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 795 * @return the last matching layout set branch 796 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 797 * @throws SystemException if a system exception occurred 798 */ 799 public static com.liferay.portal.model.LayoutSetBranch findByG_P_M_Last( 800 long groupId, boolean privateLayout, boolean master, 801 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 802 throws com.liferay.portal.NoSuchLayoutSetBranchException, 803 com.liferay.portal.kernel.exception.SystemException { 804 return getPersistence() 805 .findByG_P_M_Last(groupId, privateLayout, master, 806 orderByComparator); 807 } 808 809 /** 810 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ? and master = ?. 811 * 812 * @param groupId the group ID 813 * @param privateLayout the private layout 814 * @param master the master 815 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 816 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 817 * @throws SystemException if a system exception occurred 818 */ 819 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_Last( 820 long groupId, boolean privateLayout, boolean master, 821 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 822 throws com.liferay.portal.kernel.exception.SystemException { 823 return getPersistence() 824 .fetchByG_P_M_Last(groupId, privateLayout, master, 825 orderByComparator); 826 } 827 828 /** 829 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ? and privateLayout = ? and master = ?. 830 * 831 * @param layoutSetBranchId the primary key of the current layout set branch 832 * @param groupId the group ID 833 * @param privateLayout the private layout 834 * @param master the master 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the previous, current, and next layout set branch 837 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_M_PrevAndNext( 841 long layoutSetBranchId, long groupId, boolean privateLayout, 842 boolean master, 843 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 844 throws com.liferay.portal.NoSuchLayoutSetBranchException, 845 com.liferay.portal.kernel.exception.SystemException { 846 return getPersistence() 847 .findByG_P_M_PrevAndNext(layoutSetBranchId, groupId, 848 privateLayout, master, orderByComparator); 849 } 850 851 /** 852 * Returns all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ? and master = ?. 853 * 854 * @param groupId the group ID 855 * @param privateLayout the private layout 856 * @param master the master 857 * @return the matching layout set branchs that the user has permission to view 858 * @throws SystemException if a system exception occurred 859 */ 860 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M( 861 long groupId, boolean privateLayout, boolean master) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 return getPersistence().filterFindByG_P_M(groupId, privateLayout, master); 864 } 865 866 /** 867 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ? and master = ?. 868 * 869 * <p> 870 * 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. 871 * </p> 872 * 873 * @param groupId the group ID 874 * @param privateLayout the private layout 875 * @param master the master 876 * @param start the lower bound of the range of layout set branchs 877 * @param end the upper bound of the range of layout set branchs (not inclusive) 878 * @return the range of matching layout set branchs that the user has permission to view 879 * @throws SystemException if a system exception occurred 880 */ 881 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M( 882 long groupId, boolean privateLayout, boolean master, int start, int end) 883 throws com.liferay.portal.kernel.exception.SystemException { 884 return getPersistence() 885 .filterFindByG_P_M(groupId, privateLayout, master, start, end); 886 } 887 888 /** 889 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ? and privateLayout = ? and master = ?. 890 * 891 * <p> 892 * 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. 893 * </p> 894 * 895 * @param groupId the group ID 896 * @param privateLayout the private layout 897 * @param master the master 898 * @param start the lower bound of the range of layout set branchs 899 * @param end the upper bound of the range of layout set branchs (not inclusive) 900 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 901 * @return the ordered range of matching layout set branchs that the user has permission to view 902 * @throws SystemException if a system exception occurred 903 */ 904 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M( 905 long groupId, boolean privateLayout, boolean master, int start, 906 int end, 907 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 908 throws com.liferay.portal.kernel.exception.SystemException { 909 return getPersistence() 910 .filterFindByG_P_M(groupId, privateLayout, master, start, 911 end, orderByComparator); 912 } 913 914 /** 915 * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ? and master = ?. 916 * 917 * @param layoutSetBranchId the primary key of the current layout set branch 918 * @param groupId the group ID 919 * @param privateLayout the private layout 920 * @param master the master 921 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 922 * @return the previous, current, and next layout set branch 923 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 924 * @throws SystemException if a system exception occurred 925 */ 926 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_M_PrevAndNext( 927 long layoutSetBranchId, long groupId, boolean privateLayout, 928 boolean master, 929 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 930 throws com.liferay.portal.NoSuchLayoutSetBranchException, 931 com.liferay.portal.kernel.exception.SystemException { 932 return getPersistence() 933 .filterFindByG_P_M_PrevAndNext(layoutSetBranchId, groupId, 934 privateLayout, master, orderByComparator); 935 } 936 937 /** 938 * Returns all the layout set branchs. 939 * 940 * @return the layout set branchs 941 * @throws SystemException if a system exception occurred 942 */ 943 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll() 944 throws com.liferay.portal.kernel.exception.SystemException { 945 return getPersistence().findAll(); 946 } 947 948 /** 949 * Returns a range of all the layout set branchs. 950 * 951 * <p> 952 * 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. 953 * </p> 954 * 955 * @param start the lower bound of the range of layout set branchs 956 * @param end the upper bound of the range of layout set branchs (not inclusive) 957 * @return the range of layout set branchs 958 * @throws SystemException if a system exception occurred 959 */ 960 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 961 int start, int end) 962 throws com.liferay.portal.kernel.exception.SystemException { 963 return getPersistence().findAll(start, end); 964 } 965 966 /** 967 * Returns an ordered range of all the layout set branchs. 968 * 969 * <p> 970 * 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. 971 * </p> 972 * 973 * @param start the lower bound of the range of layout set branchs 974 * @param end the upper bound of the range of layout set branchs (not inclusive) 975 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 976 * @return the ordered range of layout set branchs 977 * @throws SystemException if a system exception occurred 978 */ 979 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 980 int start, int end, 981 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 982 throws com.liferay.portal.kernel.exception.SystemException { 983 return getPersistence().findAll(start, end, orderByComparator); 984 } 985 986 /** 987 * Removes all the layout set branchs where groupId = ? from the database. 988 * 989 * @param groupId the group ID 990 * @throws SystemException if a system exception occurred 991 */ 992 public static void removeByGroupId(long groupId) 993 throws com.liferay.portal.kernel.exception.SystemException { 994 getPersistence().removeByGroupId(groupId); 995 } 996 997 /** 998 * Removes all the layout set branchs where groupId = ? and privateLayout = ? from the database. 999 * 1000 * @param groupId the group ID 1001 * @param privateLayout the private layout 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public static void removeByG_P(long groupId, boolean privateLayout) 1005 throws com.liferay.portal.kernel.exception.SystemException { 1006 getPersistence().removeByG_P(groupId, privateLayout); 1007 } 1008 1009 /** 1010 * Removes the layout set branch where groupId = ? and privateLayout = ? and name = ? from the database. 1011 * 1012 * @param groupId the group ID 1013 * @param privateLayout the private layout 1014 * @param name the name 1015 * @return the layout set branch that was removed 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public static com.liferay.portal.model.LayoutSetBranch removeByG_P_N( 1019 long groupId, boolean privateLayout, java.lang.String name) 1020 throws com.liferay.portal.NoSuchLayoutSetBranchException, 1021 com.liferay.portal.kernel.exception.SystemException { 1022 return getPersistence().removeByG_P_N(groupId, privateLayout, name); 1023 } 1024 1025 /** 1026 * Removes all the layout set branchs where groupId = ? and privateLayout = ? and master = ? from the database. 1027 * 1028 * @param groupId the group ID 1029 * @param privateLayout the private layout 1030 * @param master the master 1031 * @throws SystemException if a system exception occurred 1032 */ 1033 public static void removeByG_P_M(long groupId, boolean privateLayout, 1034 boolean master) 1035 throws com.liferay.portal.kernel.exception.SystemException { 1036 getPersistence().removeByG_P_M(groupId, privateLayout, master); 1037 } 1038 1039 /** 1040 * Removes all the layout set branchs from the database. 1041 * 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public static void removeAll() 1045 throws com.liferay.portal.kernel.exception.SystemException { 1046 getPersistence().removeAll(); 1047 } 1048 1049 /** 1050 * Returns the number of layout set branchs where groupId = ?. 1051 * 1052 * @param groupId the group ID 1053 * @return the number of matching layout set branchs 1054 * @throws SystemException if a system exception occurred 1055 */ 1056 public static int countByGroupId(long groupId) 1057 throws com.liferay.portal.kernel.exception.SystemException { 1058 return getPersistence().countByGroupId(groupId); 1059 } 1060 1061 /** 1062 * Returns the number of layout set branchs that the user has permission to view where groupId = ?. 1063 * 1064 * @param groupId the group ID 1065 * @return the number of matching layout set branchs that the user has permission to view 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public static int filterCountByGroupId(long groupId) 1069 throws com.liferay.portal.kernel.exception.SystemException { 1070 return getPersistence().filterCountByGroupId(groupId); 1071 } 1072 1073 /** 1074 * Returns the number of layout set branchs where groupId = ? and privateLayout = ?. 1075 * 1076 * @param groupId the group ID 1077 * @param privateLayout the private layout 1078 * @return the number of matching layout set branchs 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public static int countByG_P(long groupId, boolean privateLayout) 1082 throws com.liferay.portal.kernel.exception.SystemException { 1083 return getPersistence().countByG_P(groupId, privateLayout); 1084 } 1085 1086 /** 1087 * Returns the number of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 1088 * 1089 * @param groupId the group ID 1090 * @param privateLayout the private layout 1091 * @return the number of matching layout set branchs that the user has permission to view 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public static int filterCountByG_P(long groupId, boolean privateLayout) 1095 throws com.liferay.portal.kernel.exception.SystemException { 1096 return getPersistence().filterCountByG_P(groupId, privateLayout); 1097 } 1098 1099 /** 1100 * Returns the number of layout set branchs where groupId = ? and privateLayout = ? and name = ?. 1101 * 1102 * @param groupId the group ID 1103 * @param privateLayout the private layout 1104 * @param name the name 1105 * @return the number of matching layout set branchs 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public static int countByG_P_N(long groupId, boolean privateLayout, 1109 java.lang.String name) 1110 throws com.liferay.portal.kernel.exception.SystemException { 1111 return getPersistence().countByG_P_N(groupId, privateLayout, name); 1112 } 1113 1114 /** 1115 * Returns the number of layout set branchs where groupId = ? and privateLayout = ? and master = ?. 1116 * 1117 * @param groupId the group ID 1118 * @param privateLayout the private layout 1119 * @param master the master 1120 * @return the number of matching layout set branchs 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public static int countByG_P_M(long groupId, boolean privateLayout, 1124 boolean master) 1125 throws com.liferay.portal.kernel.exception.SystemException { 1126 return getPersistence().countByG_P_M(groupId, privateLayout, master); 1127 } 1128 1129 /** 1130 * Returns the number of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ? and master = ?. 1131 * 1132 * @param groupId the group ID 1133 * @param privateLayout the private layout 1134 * @param master the master 1135 * @return the number of matching layout set branchs that the user has permission to view 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public static int filterCountByG_P_M(long groupId, boolean privateLayout, 1139 boolean master) 1140 throws com.liferay.portal.kernel.exception.SystemException { 1141 return getPersistence() 1142 .filterCountByG_P_M(groupId, privateLayout, master); 1143 } 1144 1145 /** 1146 * Returns the number of layout set branchs. 1147 * 1148 * @return the number of layout set branchs 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public static int countAll() 1152 throws com.liferay.portal.kernel.exception.SystemException { 1153 return getPersistence().countAll(); 1154 } 1155 1156 public static LayoutSetBranchPersistence getPersistence() { 1157 if (_persistence == null) { 1158 _persistence = (LayoutSetBranchPersistence)PortalBeanLocatorUtil.locate(LayoutSetBranchPersistence.class.getName()); 1159 1160 ReferenceRegistry.registerReference(LayoutSetBranchUtil.class, 1161 "_persistence"); 1162 } 1163 1164 return _persistence; 1165 } 1166 1167 /** 1168 * @deprecated 1169 */ 1170 public void setPersistence(LayoutSetBranchPersistence persistence) { 1171 } 1172 1173 private static LayoutSetBranchPersistence _persistence; 1174 }