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