001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.LayoutSetBranch; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the layout set branch service. This utility wraps {@link LayoutSetBranchPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see LayoutSetBranchPersistence 036 * @see LayoutSetBranchPersistenceImpl 037 * @generated 038 */ 039 public class LayoutSetBranchUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(LayoutSetBranch layoutSetBranch) { 057 getPersistence().clearCache(layoutSetBranch); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<LayoutSetBranch> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<LayoutSetBranch> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<LayoutSetBranch> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch) 100 throws SystemException { 101 return getPersistence().update(layoutSetBranch); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(layoutSetBranch, serviceContext); 110 } 111 112 /** 113 * Returns all the layout set branchs where groupId = ?. 114 * 115 * @param groupId the group ID 116 * @return the matching layout set branchs 117 * @throws SystemException if a system exception occurred 118 */ 119 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 120 long groupId) 121 throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByGroupId(groupId); 123 } 124 125 /** 126 * Returns a range of all the layout set branchs where groupId = ?. 127 * 128 * <p> 129 * 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. 130 * </p> 131 * 132 * @param groupId the group ID 133 * @param start the lower bound of the range of layout set branchs 134 * @param end the upper bound of the range of layout set branchs (not inclusive) 135 * @return the range of matching layout set branchs 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 139 long groupId, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByGroupId(groupId, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the layout set branchs where groupId = ?. 146 * 147 * <p> 148 * 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. 149 * </p> 150 * 151 * @param groupId the group ID 152 * @param start the lower bound of the range of layout set branchs 153 * @param end the upper bound of the range of layout set branchs (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching layout set branchs 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 159 long groupId, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence() 163 .findByGroupId(groupId, start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the first layout set branch in the ordered set where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching layout set branch 172 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_First( 176 long groupId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.NoSuchLayoutSetBranchException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return getPersistence().findByGroupId_First(groupId, orderByComparator); 181 } 182 183 /** 184 * Returns the first layout set branch in the ordered set where groupId = ?. 185 * 186 * @param groupId the group ID 187 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 188 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First( 192 long groupId, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 196 } 197 198 /** 199 * Returns the last layout set branch in the ordered set where groupId = ?. 200 * 201 * @param groupId the group ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the last matching layout set branch 204 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public static com.liferay.portal.model.LayoutSetBranch findByGroupId_Last( 208 long groupId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.NoSuchLayoutSetBranchException, 211 com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 213 } 214 215 /** 216 * Returns the last layout set branch in the ordered set where groupId = ?. 217 * 218 * @param groupId the group ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 221 * @throws SystemException if a system exception occurred 222 */ 223 public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last( 224 long groupId, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 228 } 229 230 /** 231 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ?. 232 * 233 * @param layoutSetBranchId the primary key of the current layout set branch 234 * @param groupId the group ID 235 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 236 * @return the previous, current, and next layout set branch 237 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 238 * @throws SystemException if a system exception occurred 239 */ 240 public static com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext( 241 long layoutSetBranchId, long groupId, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.NoSuchLayoutSetBranchException, 244 com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence() 246 .findByGroupId_PrevAndNext(layoutSetBranchId, groupId, 247 orderByComparator); 248 } 249 250 /** 251 * Returns all the layout set branchs that the user has permission to view where groupId = ?. 252 * 253 * @param groupId the group ID 254 * @return the matching layout set branchs that the user has permission to view 255 * @throws SystemException if a system exception occurred 256 */ 257 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 258 long groupId) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 return getPersistence().filterFindByGroupId(groupId); 261 } 262 263 /** 264 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ?. 265 * 266 * <p> 267 * 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. 268 * </p> 269 * 270 * @param groupId the group ID 271 * @param start the lower bound of the range of layout set branchs 272 * @param end the upper bound of the range of layout set branchs (not inclusive) 273 * @return the range of matching layout set branchs that the user has permission to view 274 * @throws SystemException if a system exception occurred 275 */ 276 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 277 long groupId, int start, int end) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence().filterFindByGroupId(groupId, start, end); 280 } 281 282 /** 283 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ?. 284 * 285 * <p> 286 * 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. 287 * </p> 288 * 289 * @param groupId the group ID 290 * @param start the lower bound of the range of layout set branchs 291 * @param end the upper bound of the range of layout set branchs (not inclusive) 292 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 293 * @return the ordered range of matching layout set branchs that the user has permission to view 294 * @throws SystemException if a system exception occurred 295 */ 296 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 297 long groupId, int start, int end, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.kernel.exception.SystemException { 300 return getPersistence() 301 .filterFindByGroupId(groupId, start, end, orderByComparator); 302 } 303 304 /** 305 * 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 = ?. 306 * 307 * @param layoutSetBranchId the primary key of the current layout set branch 308 * @param groupId the group ID 309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 310 * @return the previous, current, and next layout set branch 311 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext( 315 long layoutSetBranchId, long groupId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.NoSuchLayoutSetBranchException, 318 com.liferay.portal.kernel.exception.SystemException { 319 return getPersistence() 320 .filterFindByGroupId_PrevAndNext(layoutSetBranchId, groupId, 321 orderByComparator); 322 } 323 324 /** 325 * Removes all the layout set branchs where groupId = ? from the database. 326 * 327 * @param groupId the group ID 328 * @throws SystemException if a system exception occurred 329 */ 330 public static void removeByGroupId(long groupId) 331 throws com.liferay.portal.kernel.exception.SystemException { 332 getPersistence().removeByGroupId(groupId); 333 } 334 335 /** 336 * Returns the number of layout set branchs where groupId = ?. 337 * 338 * @param groupId the group ID 339 * @return the number of matching layout set branchs 340 * @throws SystemException if a system exception occurred 341 */ 342 public static int countByGroupId(long groupId) 343 throws com.liferay.portal.kernel.exception.SystemException { 344 return getPersistence().countByGroupId(groupId); 345 } 346 347 /** 348 * Returns the number of layout set branchs that the user has permission to view where groupId = ?. 349 * 350 * @param groupId the group ID 351 * @return the number of matching layout set branchs that the user has permission to view 352 * @throws SystemException if a system exception occurred 353 */ 354 public static int filterCountByGroupId(long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().filterCountByGroupId(groupId); 357 } 358 359 /** 360 * Returns all the layout set branchs where groupId = ? and privateLayout = ?. 361 * 362 * @param groupId the group ID 363 * @param privateLayout the private layout 364 * @return the matching layout set branchs 365 * @throws SystemException if a system exception occurred 366 */ 367 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 368 long groupId, boolean privateLayout) 369 throws com.liferay.portal.kernel.exception.SystemException { 370 return getPersistence().findByG_P(groupId, privateLayout); 371 } 372 373 /** 374 * Returns a range of all the layout set branchs where groupId = ? and privateLayout = ?. 375 * 376 * <p> 377 * 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. 378 * </p> 379 * 380 * @param groupId the group ID 381 * @param privateLayout the private layout 382 * @param start the lower bound of the range of layout set branchs 383 * @param end the upper bound of the range of layout set branchs (not inclusive) 384 * @return the range of matching layout set branchs 385 * @throws SystemException if a system exception occurred 386 */ 387 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 388 long groupId, boolean privateLayout, int start, int end) 389 throws com.liferay.portal.kernel.exception.SystemException { 390 return getPersistence().findByG_P(groupId, privateLayout, start, end); 391 } 392 393 /** 394 * Returns an ordered range of all the layout set branchs where groupId = ? and privateLayout = ?. 395 * 396 * <p> 397 * 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. 398 * </p> 399 * 400 * @param groupId the group ID 401 * @param privateLayout the private layout 402 * @param start the lower bound of the range of layout set branchs 403 * @param end the upper bound of the range of layout set branchs (not inclusive) 404 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 405 * @return the ordered range of matching layout set branchs 406 * @throws SystemException if a system exception occurred 407 */ 408 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 409 long groupId, boolean privateLayout, int start, int end, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.kernel.exception.SystemException { 412 return getPersistence() 413 .findByG_P(groupId, privateLayout, start, end, 414 orderByComparator); 415 } 416 417 /** 418 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 419 * 420 * @param groupId the group ID 421 * @param privateLayout the private layout 422 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 423 * @return the first matching layout set branch 424 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public static com.liferay.portal.model.LayoutSetBranch findByG_P_First( 428 long groupId, boolean privateLayout, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.NoSuchLayoutSetBranchException, 431 com.liferay.portal.kernel.exception.SystemException { 432 return getPersistence() 433 .findByG_P_First(groupId, privateLayout, orderByComparator); 434 } 435 436 /** 437 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 438 * 439 * @param groupId the group ID 440 * @param privateLayout the private layout 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 442 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_First( 446 long groupId, boolean privateLayout, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence() 450 .fetchByG_P_First(groupId, privateLayout, orderByComparator); 451 } 452 453 /** 454 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 455 * 456 * @param groupId the group ID 457 * @param privateLayout the private layout 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the last matching layout set branch 460 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portal.model.LayoutSetBranch findByG_P_Last( 464 long groupId, boolean privateLayout, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.NoSuchLayoutSetBranchException, 467 com.liferay.portal.kernel.exception.SystemException { 468 return getPersistence() 469 .findByG_P_Last(groupId, privateLayout, orderByComparator); 470 } 471 472 /** 473 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 474 * 475 * @param groupId the group ID 476 * @param privateLayout the private layout 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last( 482 long groupId, boolean privateLayout, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence() 486 .fetchByG_P_Last(groupId, privateLayout, orderByComparator); 487 } 488 489 /** 490 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ? and privateLayout = ?. 491 * 492 * @param layoutSetBranchId the primary key of the current layout set branch 493 * @param groupId the group ID 494 * @param privateLayout the private layout 495 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 496 * @return the previous, current, and next layout set branch 497 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 498 * @throws SystemException if a system exception occurred 499 */ 500 public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext( 501 long layoutSetBranchId, long groupId, boolean privateLayout, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.NoSuchLayoutSetBranchException, 504 com.liferay.portal.kernel.exception.SystemException { 505 return getPersistence() 506 .findByG_P_PrevAndNext(layoutSetBranchId, groupId, 507 privateLayout, orderByComparator); 508 } 509 510 /** 511 * Returns all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 512 * 513 * @param groupId the group ID 514 * @param privateLayout the private layout 515 * @return the matching layout set branchs that the user has permission to view 516 * @throws SystemException if a system exception occurred 517 */ 518 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 519 long groupId, boolean privateLayout) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return getPersistence().filterFindByG_P(groupId, privateLayout); 522 } 523 524 /** 525 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 526 * 527 * <p> 528 * 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. 529 * </p> 530 * 531 * @param groupId the group ID 532 * @param privateLayout the private layout 533 * @param start the lower bound of the range of layout set branchs 534 * @param end the upper bound of the range of layout set branchs (not inclusive) 535 * @return the range of matching layout set branchs that the user has permission to view 536 * @throws SystemException if a system exception occurred 537 */ 538 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 539 long groupId, boolean privateLayout, int start, int end) 540 throws com.liferay.portal.kernel.exception.SystemException { 541 return getPersistence() 542 .filterFindByG_P(groupId, privateLayout, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ? and privateLayout = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param privateLayout the private layout 554 * @param start the lower bound of the range of layout set branchs 555 * @param end the upper bound of the range of layout set branchs (not inclusive) 556 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 557 * @return the ordered range of matching layout set branchs that the user has permission to view 558 * @throws SystemException if a system exception occurred 559 */ 560 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 561 long groupId, boolean privateLayout, int start, int end, 562 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 563 throws com.liferay.portal.kernel.exception.SystemException { 564 return getPersistence() 565 .filterFindByG_P(groupId, privateLayout, start, end, 566 orderByComparator); 567 } 568 569 /** 570 * 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 = ?. 571 * 572 * @param layoutSetBranchId the primary key of the current layout set branch 573 * @param groupId the group ID 574 * @param privateLayout the private layout 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the previous, current, and next layout set branch 577 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext( 581 long layoutSetBranchId, long groupId, boolean privateLayout, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.NoSuchLayoutSetBranchException, 584 com.liferay.portal.kernel.exception.SystemException { 585 return getPersistence() 586 .filterFindByG_P_PrevAndNext(layoutSetBranchId, groupId, 587 privateLayout, orderByComparator); 588 } 589 590 /** 591 * Removes all the layout set branchs where groupId = ? and privateLayout = ? from the database. 592 * 593 * @param groupId the group ID 594 * @param privateLayout the private layout 595 * @throws SystemException if a system exception occurred 596 */ 597 public static void removeByG_P(long groupId, boolean privateLayout) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 getPersistence().removeByG_P(groupId, privateLayout); 600 } 601 602 /** 603 * Returns the number of layout set branchs where groupId = ? and privateLayout = ?. 604 * 605 * @param groupId the group ID 606 * @param privateLayout the private layout 607 * @return the number of matching layout set branchs 608 * @throws SystemException if a system exception occurred 609 */ 610 public static int countByG_P(long groupId, boolean privateLayout) 611 throws com.liferay.portal.kernel.exception.SystemException { 612 return getPersistence().countByG_P(groupId, privateLayout); 613 } 614 615 /** 616 * Returns the number of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 617 * 618 * @param groupId the group ID 619 * @param privateLayout the private layout 620 * @return the number of matching layout set branchs that the user has permission to view 621 * @throws SystemException if a system exception occurred 622 */ 623 public static int filterCountByG_P(long groupId, boolean privateLayout) 624 throws com.liferay.portal.kernel.exception.SystemException { 625 return getPersistence().filterCountByG_P(groupId, privateLayout); 626 } 627 628 /** 629 * 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. 630 * 631 * @param groupId the group ID 632 * @param privateLayout the private layout 633 * @param name the name 634 * @return the matching layout set branch 635 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 636 * @throws SystemException if a system exception occurred 637 */ 638 public static com.liferay.portal.model.LayoutSetBranch findByG_P_N( 639 long groupId, boolean privateLayout, java.lang.String name) 640 throws com.liferay.portal.NoSuchLayoutSetBranchException, 641 com.liferay.portal.kernel.exception.SystemException { 642 return getPersistence().findByG_P_N(groupId, privateLayout, name); 643 } 644 645 /** 646 * 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. 647 * 648 * @param groupId the group ID 649 * @param privateLayout the private layout 650 * @param name the name 651 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N( 655 long groupId, boolean privateLayout, java.lang.String name) 656 throws com.liferay.portal.kernel.exception.SystemException { 657 return getPersistence().fetchByG_P_N(groupId, privateLayout, name); 658 } 659 660 /** 661 * 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. 662 * 663 * @param groupId the group ID 664 * @param privateLayout the private layout 665 * @param name the name 666 * @param retrieveFromCache whether to use the finder cache 667 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 668 * @throws SystemException if a system exception occurred 669 */ 670 public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N( 671 long groupId, boolean privateLayout, java.lang.String name, 672 boolean retrieveFromCache) 673 throws com.liferay.portal.kernel.exception.SystemException { 674 return getPersistence() 675 .fetchByG_P_N(groupId, privateLayout, name, retrieveFromCache); 676 } 677 678 /** 679 * Removes the layout set branch where groupId = ? and privateLayout = ? and name = ? from the database. 680 * 681 * @param groupId the group ID 682 * @param privateLayout the private layout 683 * @param name the name 684 * @return the layout set branch that was removed 685 * @throws SystemException if a system exception occurred 686 */ 687 public static com.liferay.portal.model.LayoutSetBranch removeByG_P_N( 688 long groupId, boolean privateLayout, java.lang.String name) 689 throws com.liferay.portal.NoSuchLayoutSetBranchException, 690 com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().removeByG_P_N(groupId, privateLayout, name); 692 } 693 694 /** 695 * Returns the number of layout set branchs where groupId = ? and privateLayout = ? and name = ?. 696 * 697 * @param groupId the group ID 698 * @param privateLayout the private layout 699 * @param name the name 700 * @return the number of matching layout set branchs 701 * @throws SystemException if a system exception occurred 702 */ 703 public static int countByG_P_N(long groupId, boolean privateLayout, 704 java.lang.String name) 705 throws com.liferay.portal.kernel.exception.SystemException { 706 return getPersistence().countByG_P_N(groupId, privateLayout, name); 707 } 708 709 /** 710 * Caches the layout set branch in the entity cache if it is enabled. 711 * 712 * @param layoutSetBranch the layout set branch 713 */ 714 public static void cacheResult( 715 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) { 716 getPersistence().cacheResult(layoutSetBranch); 717 } 718 719 /** 720 * Caches the layout set branchs in the entity cache if it is enabled. 721 * 722 * @param layoutSetBranchs the layout set branchs 723 */ 724 public static void cacheResult( 725 java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs) { 726 getPersistence().cacheResult(layoutSetBranchs); 727 } 728 729 /** 730 * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database. 731 * 732 * @param layoutSetBranchId the primary key for the new layout set branch 733 * @return the new layout set branch 734 */ 735 public static com.liferay.portal.model.LayoutSetBranch create( 736 long layoutSetBranchId) { 737 return getPersistence().create(layoutSetBranchId); 738 } 739 740 /** 741 * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners. 742 * 743 * @param layoutSetBranchId the primary key of the layout set branch 744 * @return the layout set branch that was removed 745 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public static com.liferay.portal.model.LayoutSetBranch remove( 749 long layoutSetBranchId) 750 throws com.liferay.portal.NoSuchLayoutSetBranchException, 751 com.liferay.portal.kernel.exception.SystemException { 752 return getPersistence().remove(layoutSetBranchId); 753 } 754 755 public static com.liferay.portal.model.LayoutSetBranch updateImpl( 756 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) 757 throws com.liferay.portal.kernel.exception.SystemException { 758 return getPersistence().updateImpl(layoutSetBranch); 759 } 760 761 /** 762 * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found. 763 * 764 * @param layoutSetBranchId the primary key of the layout set branch 765 * @return the layout set branch 766 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 767 * @throws SystemException if a system exception occurred 768 */ 769 public static com.liferay.portal.model.LayoutSetBranch findByPrimaryKey( 770 long layoutSetBranchId) 771 throws com.liferay.portal.NoSuchLayoutSetBranchException, 772 com.liferay.portal.kernel.exception.SystemException { 773 return getPersistence().findByPrimaryKey(layoutSetBranchId); 774 } 775 776 /** 777 * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found. 778 * 779 * @param layoutSetBranchId the primary key of the layout set branch 780 * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found 781 * @throws SystemException if a system exception occurred 782 */ 783 public static com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey( 784 long layoutSetBranchId) 785 throws com.liferay.portal.kernel.exception.SystemException { 786 return getPersistence().fetchByPrimaryKey(layoutSetBranchId); 787 } 788 789 /** 790 * Returns all the layout set branchs. 791 * 792 * @return the layout set branchs 793 * @throws SystemException if a system exception occurred 794 */ 795 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll() 796 throws com.liferay.portal.kernel.exception.SystemException { 797 return getPersistence().findAll(); 798 } 799 800 /** 801 * Returns a range of all the layout set branchs. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param start the lower bound of the range of layout set branchs 808 * @param end the upper bound of the range of layout set branchs (not inclusive) 809 * @return the range of layout set branchs 810 * @throws SystemException if a system exception occurred 811 */ 812 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 813 int start, int end) 814 throws com.liferay.portal.kernel.exception.SystemException { 815 return getPersistence().findAll(start, end); 816 } 817 818 /** 819 * Returns an ordered range of all the layout set branchs. 820 * 821 * <p> 822 * 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. 823 * </p> 824 * 825 * @param start the lower bound of the range of layout set branchs 826 * @param end the upper bound of the range of layout set branchs (not inclusive) 827 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 828 * @return the ordered range of layout set branchs 829 * @throws SystemException if a system exception occurred 830 */ 831 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 832 int start, int end, 833 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 834 throws com.liferay.portal.kernel.exception.SystemException { 835 return getPersistence().findAll(start, end, orderByComparator); 836 } 837 838 /** 839 * Removes all the layout set branchs from the database. 840 * 841 * @throws SystemException if a system exception occurred 842 */ 843 public static void removeAll() 844 throws com.liferay.portal.kernel.exception.SystemException { 845 getPersistence().removeAll(); 846 } 847 848 /** 849 * Returns the number of layout set branchs. 850 * 851 * @return the number of layout set branchs 852 * @throws SystemException if a system exception occurred 853 */ 854 public static int countAll() 855 throws com.liferay.portal.kernel.exception.SystemException { 856 return getPersistence().countAll(); 857 } 858 859 public static LayoutSetBranchPersistence getPersistence() { 860 if (_persistence == null) { 861 _persistence = (LayoutSetBranchPersistence)PortalBeanLocatorUtil.locate(LayoutSetBranchPersistence.class.getName()); 862 863 ReferenceRegistry.registerReference(LayoutSetBranchUtil.class, 864 "_persistence"); 865 } 866 867 return _persistence; 868 } 869 870 /** 871 * @deprecated As of 6.2.0 872 */ 873 public void setPersistence(LayoutSetBranchPersistence persistence) { 874 } 875 876 private static LayoutSetBranchPersistence _persistence; 877 }