001 /** 002 * Copyright (c) 2000-2011 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#remove(com.liferay.portal.model.BaseModel) 098 */ 099 public static LayoutSetBranch remove(LayoutSetBranch layoutSetBranch) 100 throws SystemException { 101 return getPersistence().remove(layoutSetBranch); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch, 108 boolean merge) throws SystemException { 109 return getPersistence().update(layoutSetBranch, merge); 110 } 111 112 /** 113 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 114 */ 115 public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch, 116 boolean merge, ServiceContext serviceContext) throws SystemException { 117 return getPersistence().update(layoutSetBranch, merge, serviceContext); 118 } 119 120 /** 121 * Caches the layout set branch in the entity cache if it is enabled. 122 * 123 * @param layoutSetBranch the layout set branch 124 */ 125 public static void cacheResult( 126 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) { 127 getPersistence().cacheResult(layoutSetBranch); 128 } 129 130 /** 131 * Caches the layout set branchs in the entity cache if it is enabled. 132 * 133 * @param layoutSetBranchs the layout set branchs 134 */ 135 public static void cacheResult( 136 java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs) { 137 getPersistence().cacheResult(layoutSetBranchs); 138 } 139 140 /** 141 * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database. 142 * 143 * @param layoutSetBranchId the primary key for the new layout set branch 144 * @return the new layout set branch 145 */ 146 public static com.liferay.portal.model.LayoutSetBranch create( 147 long layoutSetBranchId) { 148 return getPersistence().create(layoutSetBranchId); 149 } 150 151 /** 152 * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners. 153 * 154 * @param layoutSetBranchId the primary key of the layout set branch 155 * @return the layout set branch that was removed 156 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public static com.liferay.portal.model.LayoutSetBranch remove( 160 long layoutSetBranchId) 161 throws com.liferay.portal.NoSuchLayoutSetBranchException, 162 com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().remove(layoutSetBranchId); 164 } 165 166 public static com.liferay.portal.model.LayoutSetBranch updateImpl( 167 com.liferay.portal.model.LayoutSetBranch layoutSetBranch, boolean merge) 168 throws com.liferay.portal.kernel.exception.SystemException { 169 return getPersistence().updateImpl(layoutSetBranch, merge); 170 } 171 172 /** 173 * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found. 174 * 175 * @param layoutSetBranchId the primary key of the layout set branch 176 * @return the layout set branch 177 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public static com.liferay.portal.model.LayoutSetBranch findByPrimaryKey( 181 long layoutSetBranchId) 182 throws com.liferay.portal.NoSuchLayoutSetBranchException, 183 com.liferay.portal.kernel.exception.SystemException { 184 return getPersistence().findByPrimaryKey(layoutSetBranchId); 185 } 186 187 /** 188 * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found. 189 * 190 * @param layoutSetBranchId the primary key of the layout set branch 191 * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey( 195 long layoutSetBranchId) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByPrimaryKey(layoutSetBranchId); 198 } 199 200 /** 201 * Returns all the layout set branchs where groupId = ?. 202 * 203 * @param groupId the group ID 204 * @return the matching layout set branchs 205 * @throws SystemException if a system exception occurred 206 */ 207 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 208 long groupId) 209 throws com.liferay.portal.kernel.exception.SystemException { 210 return getPersistence().findByGroupId(groupId); 211 } 212 213 /** 214 * Returns a range of all the layout set branchs where groupId = ?. 215 * 216 * <p> 217 * 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. 218 * </p> 219 * 220 * @param groupId the group ID 221 * @param start the lower bound of the range of layout set branchs 222 * @param end the upper bound of the range of layout set branchs (not inclusive) 223 * @return the range of matching layout set branchs 224 * @throws SystemException if a system exception occurred 225 */ 226 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 227 long groupId, int start, int end) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().findByGroupId(groupId, start, end); 230 } 231 232 /** 233 * Returns an ordered range of all the layout set branchs where groupId = ?. 234 * 235 * <p> 236 * 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. 237 * </p> 238 * 239 * @param groupId the group ID 240 * @param start the lower bound of the range of layout set branchs 241 * @param end the upper bound of the range of layout set branchs (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching layout set branchs 244 * @throws SystemException if a system exception occurred 245 */ 246 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 247 long groupId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException { 250 return getPersistence() 251 .findByGroupId(groupId, start, end, orderByComparator); 252 } 253 254 /** 255 * Returns the first layout set branch in the ordered set where groupId = ?. 256 * 257 * <p> 258 * 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. 259 * </p> 260 * 261 * @param groupId the group ID 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the first matching layout set branch 264 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_First( 268 long groupId, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.NoSuchLayoutSetBranchException, 271 com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence().findByGroupId_First(groupId, orderByComparator); 273 } 274 275 /** 276 * Returns the last layout set branch in the ordered set where groupId = ?. 277 * 278 * <p> 279 * 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. 280 * </p> 281 * 282 * @param groupId the group ID 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching layout set branch 285 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_Last( 289 long groupId, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.NoSuchLayoutSetBranchException, 292 com.liferay.portal.kernel.exception.SystemException { 293 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 294 } 295 296 /** 297 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ?. 298 * 299 * <p> 300 * 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. 301 * </p> 302 * 303 * @param layoutSetBranchId the primary key of the current layout set branch 304 * @param groupId the group ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the previous, current, and next layout set branch 307 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public static com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext( 311 long layoutSetBranchId, long groupId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.NoSuchLayoutSetBranchException, 314 com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence() 316 .findByGroupId_PrevAndNext(layoutSetBranchId, groupId, 317 orderByComparator); 318 } 319 320 /** 321 * Returns all the layout set branchs that the user has permission to view where groupId = ?. 322 * 323 * @param groupId the group ID 324 * @return the matching layout set branchs that the user has permission to view 325 * @throws SystemException if a system exception occurred 326 */ 327 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 328 long groupId) 329 throws com.liferay.portal.kernel.exception.SystemException { 330 return getPersistence().filterFindByGroupId(groupId); 331 } 332 333 /** 334 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param groupId the group ID 341 * @param start the lower bound of the range of layout set branchs 342 * @param end the upper bound of the range of layout set branchs (not inclusive) 343 * @return the range of matching layout set branchs that the user has permission to view 344 * @throws SystemException if a system exception occurred 345 */ 346 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 347 long groupId, int start, int end) 348 throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().filterFindByGroupId(groupId, start, end); 350 } 351 352 /** 353 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ?. 354 * 355 * <p> 356 * 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. 357 * </p> 358 * 359 * @param groupId the group ID 360 * @param start the lower bound of the range of layout set branchs 361 * @param end the upper bound of the range of layout set branchs (not inclusive) 362 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 363 * @return the ordered range of matching layout set branchs that the user has permission to view 364 * @throws SystemException if a system exception occurred 365 */ 366 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 367 long groupId, int start, int end, 368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 369 throws com.liferay.portal.kernel.exception.SystemException { 370 return getPersistence() 371 .filterFindByGroupId(groupId, start, end, orderByComparator); 372 } 373 374 /** 375 * 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 = ?. 376 * 377 * @param layoutSetBranchId the primary key of the current layout set branch 378 * @param groupId the group ID 379 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 380 * @return the previous, current, and next layout set branch 381 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 382 * @throws SystemException if a system exception occurred 383 */ 384 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext( 385 long layoutSetBranchId, long groupId, 386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 387 throws com.liferay.portal.NoSuchLayoutSetBranchException, 388 com.liferay.portal.kernel.exception.SystemException { 389 return getPersistence() 390 .filterFindByGroupId_PrevAndNext(layoutSetBranchId, groupId, 391 orderByComparator); 392 } 393 394 /** 395 * Returns all the layout set branchs where groupId = ? and privateLayout = ?. 396 * 397 * @param groupId the group ID 398 * @param privateLayout the private layout 399 * @return the matching layout set branchs 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 403 long groupId, boolean privateLayout) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence().findByG_P(groupId, privateLayout); 406 } 407 408 /** 409 * Returns a range of all the layout set branchs where groupId = ? and privateLayout = ?. 410 * 411 * <p> 412 * 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. 413 * </p> 414 * 415 * @param groupId the group ID 416 * @param privateLayout the private layout 417 * @param start the lower bound of the range of layout set branchs 418 * @param end the upper bound of the range of layout set branchs (not inclusive) 419 * @return the range of matching layout set branchs 420 * @throws SystemException if a system exception occurred 421 */ 422 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 423 long groupId, boolean privateLayout, int start, int end) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence().findByG_P(groupId, privateLayout, start, end); 426 } 427 428 /** 429 * Returns an ordered range of all the layout set branchs where groupId = ? and privateLayout = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param groupId the group ID 436 * @param privateLayout the private layout 437 * @param start the lower bound of the range of layout set branchs 438 * @param end the upper bound of the range of layout set branchs (not inclusive) 439 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 440 * @return the ordered range of matching layout set branchs 441 * @throws SystemException if a system exception occurred 442 */ 443 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 444 long groupId, boolean privateLayout, int start, int end, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.kernel.exception.SystemException { 447 return getPersistence() 448 .findByG_P(groupId, privateLayout, start, end, 449 orderByComparator); 450 } 451 452 /** 453 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 454 * 455 * <p> 456 * 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. 457 * </p> 458 * 459 * @param groupId the group ID 460 * @param privateLayout the private layout 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the first matching layout set branch 463 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public static com.liferay.portal.model.LayoutSetBranch findByG_P_First( 467 long groupId, boolean privateLayout, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.NoSuchLayoutSetBranchException, 470 com.liferay.portal.kernel.exception.SystemException { 471 return getPersistence() 472 .findByG_P_First(groupId, privateLayout, orderByComparator); 473 } 474 475 /** 476 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param groupId the group ID 483 * @param privateLayout the private layout 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the last matching layout set branch 486 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public static com.liferay.portal.model.LayoutSetBranch findByG_P_Last( 490 long groupId, boolean privateLayout, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.NoSuchLayoutSetBranchException, 493 com.liferay.portal.kernel.exception.SystemException { 494 return getPersistence() 495 .findByG_P_Last(groupId, privateLayout, orderByComparator); 496 } 497 498 /** 499 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ? and privateLayout = ?. 500 * 501 * <p> 502 * 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. 503 * </p> 504 * 505 * @param layoutSetBranchId the primary key of the current layout set branch 506 * @param groupId the group ID 507 * @param privateLayout the private layout 508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 509 * @return the previous, current, and next layout set branch 510 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext( 514 long layoutSetBranchId, long groupId, boolean privateLayout, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.NoSuchLayoutSetBranchException, 517 com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence() 519 .findByG_P_PrevAndNext(layoutSetBranchId, groupId, 520 privateLayout, orderByComparator); 521 } 522 523 /** 524 * Returns all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 525 * 526 * @param groupId the group ID 527 * @param privateLayout the private layout 528 * @return the matching layout set branchs that the user has permission to view 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 532 long groupId, boolean privateLayout) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence().filterFindByG_P(groupId, privateLayout); 535 } 536 537 /** 538 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param groupId the group ID 545 * @param privateLayout the private layout 546 * @param start the lower bound of the range of layout set branchs 547 * @param end the upper bound of the range of layout set branchs (not inclusive) 548 * @return the range of matching layout set branchs that the user has permission to view 549 * @throws SystemException if a system exception occurred 550 */ 551 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 552 long groupId, boolean privateLayout, int start, int end) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence() 555 .filterFindByG_P(groupId, privateLayout, start, end); 556 } 557 558 /** 559 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ? and privateLayout = ?. 560 * 561 * <p> 562 * 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. 563 * </p> 564 * 565 * @param groupId the group ID 566 * @param privateLayout the private layout 567 * @param start the lower bound of the range of layout set branchs 568 * @param end the upper bound of the range of layout set branchs (not inclusive) 569 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 570 * @return the ordered range of matching layout set branchs that the user has permission to view 571 * @throws SystemException if a system exception occurred 572 */ 573 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 574 long groupId, boolean privateLayout, int start, int end, 575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 576 throws com.liferay.portal.kernel.exception.SystemException { 577 return getPersistence() 578 .filterFindByG_P(groupId, privateLayout, start, end, 579 orderByComparator); 580 } 581 582 /** 583 * 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 = ?. 584 * 585 * @param layoutSetBranchId the primary key of the current layout set branch 586 * @param groupId the group ID 587 * @param privateLayout the private layout 588 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 589 * @return the previous, current, and next layout set branch 590 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 591 * @throws SystemException if a system exception occurred 592 */ 593 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext( 594 long layoutSetBranchId, long groupId, boolean privateLayout, 595 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 596 throws com.liferay.portal.NoSuchLayoutSetBranchException, 597 com.liferay.portal.kernel.exception.SystemException { 598 return getPersistence() 599 .filterFindByG_P_PrevAndNext(layoutSetBranchId, groupId, 600 privateLayout, orderByComparator); 601 } 602 603 /** 604 * 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. 605 * 606 * @param groupId the group ID 607 * @param privateLayout the private layout 608 * @param name the name 609 * @return the matching layout set branch 610 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public static com.liferay.portal.model.LayoutSetBranch findByG_P_N( 614 long groupId, boolean privateLayout, java.lang.String name) 615 throws com.liferay.portal.NoSuchLayoutSetBranchException, 616 com.liferay.portal.kernel.exception.SystemException { 617 return getPersistence().findByG_P_N(groupId, privateLayout, name); 618 } 619 620 /** 621 * 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. 622 * 623 * @param groupId the group ID 624 * @param privateLayout the private layout 625 * @param name the name 626 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N( 630 long groupId, boolean privateLayout, java.lang.String name) 631 throws com.liferay.portal.kernel.exception.SystemException { 632 return getPersistence().fetchByG_P_N(groupId, privateLayout, name); 633 } 634 635 /** 636 * 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. 637 * 638 * @param groupId the group ID 639 * @param privateLayout the private layout 640 * @param name the name 641 * @param retrieveFromCache whether to use the finder cache 642 * @return the matching layout set branch, or <code>null</code> 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 fetchByG_P_N( 646 long groupId, boolean privateLayout, java.lang.String name, 647 boolean retrieveFromCache) 648 throws com.liferay.portal.kernel.exception.SystemException { 649 return getPersistence() 650 .fetchByG_P_N(groupId, privateLayout, name, retrieveFromCache); 651 } 652 653 /** 654 * Returns all the layout set branchs. 655 * 656 * @return the layout set branchs 657 * @throws SystemException if a system exception occurred 658 */ 659 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll() 660 throws com.liferay.portal.kernel.exception.SystemException { 661 return getPersistence().findAll(); 662 } 663 664 /** 665 * Returns a range of all the layout set branchs. 666 * 667 * <p> 668 * 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. 669 * </p> 670 * 671 * @param start the lower bound of the range of layout set branchs 672 * @param end the upper bound of the range of layout set branchs (not inclusive) 673 * @return the range of layout set branchs 674 * @throws SystemException if a system exception occurred 675 */ 676 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 677 int start, int end) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().findAll(start, end); 680 } 681 682 /** 683 * Returns an ordered range of all the layout set branchs. 684 * 685 * <p> 686 * 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. 687 * </p> 688 * 689 * @param start the lower bound of the range of layout set branchs 690 * @param end the upper bound of the range of layout set branchs (not inclusive) 691 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 692 * @return the ordered range of layout set branchs 693 * @throws SystemException if a system exception occurred 694 */ 695 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 696 int start, int end, 697 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 698 throws com.liferay.portal.kernel.exception.SystemException { 699 return getPersistence().findAll(start, end, orderByComparator); 700 } 701 702 /** 703 * Removes all the layout set branchs where groupId = ? from the database. 704 * 705 * @param groupId the group ID 706 * @throws SystemException if a system exception occurred 707 */ 708 public static void removeByGroupId(long groupId) 709 throws com.liferay.portal.kernel.exception.SystemException { 710 getPersistence().removeByGroupId(groupId); 711 } 712 713 /** 714 * Removes all the layout set branchs where groupId = ? and privateLayout = ? from the database. 715 * 716 * @param groupId the group ID 717 * @param privateLayout the private layout 718 * @throws SystemException if a system exception occurred 719 */ 720 public static void removeByG_P(long groupId, boolean privateLayout) 721 throws com.liferay.portal.kernel.exception.SystemException { 722 getPersistence().removeByG_P(groupId, privateLayout); 723 } 724 725 /** 726 * Removes the layout set branch where groupId = ? and privateLayout = ? and name = ? from the database. 727 * 728 * @param groupId the group ID 729 * @param privateLayout the private layout 730 * @param name the name 731 * @throws SystemException if a system exception occurred 732 */ 733 public static void removeByG_P_N(long groupId, boolean privateLayout, 734 java.lang.String name) 735 throws com.liferay.portal.NoSuchLayoutSetBranchException, 736 com.liferay.portal.kernel.exception.SystemException { 737 getPersistence().removeByG_P_N(groupId, privateLayout, name); 738 } 739 740 /** 741 * Removes all the layout set branchs from the database. 742 * 743 * @throws SystemException if a system exception occurred 744 */ 745 public static void removeAll() 746 throws com.liferay.portal.kernel.exception.SystemException { 747 getPersistence().removeAll(); 748 } 749 750 /** 751 * Returns the number of layout set branchs where groupId = ?. 752 * 753 * @param groupId the group ID 754 * @return the number of matching layout set branchs 755 * @throws SystemException if a system exception occurred 756 */ 757 public static int countByGroupId(long groupId) 758 throws com.liferay.portal.kernel.exception.SystemException { 759 return getPersistence().countByGroupId(groupId); 760 } 761 762 /** 763 * Returns the number of layout set branchs that the user has permission to view where groupId = ?. 764 * 765 * @param groupId the group ID 766 * @return the number of matching layout set branchs that the user has permission to view 767 * @throws SystemException if a system exception occurred 768 */ 769 public static int filterCountByGroupId(long groupId) 770 throws com.liferay.portal.kernel.exception.SystemException { 771 return getPersistence().filterCountByGroupId(groupId); 772 } 773 774 /** 775 * Returns the number of layout set branchs where groupId = ? and privateLayout = ?. 776 * 777 * @param groupId the group ID 778 * @param privateLayout the private layout 779 * @return the number of matching layout set branchs 780 * @throws SystemException if a system exception occurred 781 */ 782 public static int countByG_P(long groupId, boolean privateLayout) 783 throws com.liferay.portal.kernel.exception.SystemException { 784 return getPersistence().countByG_P(groupId, privateLayout); 785 } 786 787 /** 788 * Returns the number of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 789 * 790 * @param groupId the group ID 791 * @param privateLayout the private layout 792 * @return the number of matching layout set branchs that the user has permission to view 793 * @throws SystemException if a system exception occurred 794 */ 795 public static int filterCountByG_P(long groupId, boolean privateLayout) 796 throws com.liferay.portal.kernel.exception.SystemException { 797 return getPersistence().filterCountByG_P(groupId, privateLayout); 798 } 799 800 /** 801 * Returns the number of layout set branchs where groupId = ? and privateLayout = ? and name = ?. 802 * 803 * @param groupId the group ID 804 * @param privateLayout the private layout 805 * @param name the name 806 * @return the number of matching layout set branchs 807 * @throws SystemException if a system exception occurred 808 */ 809 public static int countByG_P_N(long groupId, boolean privateLayout, 810 java.lang.String name) 811 throws com.liferay.portal.kernel.exception.SystemException { 812 return getPersistence().countByG_P_N(groupId, privateLayout, name); 813 } 814 815 /** 816 * Returns the number of layout set branchs. 817 * 818 * @return the number of layout set branchs 819 * @throws SystemException if a system exception occurred 820 */ 821 public static int countAll() 822 throws com.liferay.portal.kernel.exception.SystemException { 823 return getPersistence().countAll(); 824 } 825 826 public static LayoutSetBranchPersistence getPersistence() { 827 if (_persistence == null) { 828 _persistence = (LayoutSetBranchPersistence)PortalBeanLocatorUtil.locate(LayoutSetBranchPersistence.class.getName()); 829 830 ReferenceRegistry.registerReference(LayoutSetBranchUtil.class, 831 "_persistence"); 832 } 833 834 return _persistence; 835 } 836 837 public void setPersistence(LayoutSetBranchPersistence persistence) { 838 _persistence = persistence; 839 840 ReferenceRegistry.registerReference(LayoutSetBranchUtil.class, 841 "_persistence"); 842 } 843 844 private static LayoutSetBranchPersistence _persistence; 845 }