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