001 /** 002 * Copyright (c) 2000-2012 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.model.LayoutSetBranch; 018 019 /** 020 * The persistence interface for the layout set branch service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see LayoutSetBranchPersistenceImpl 028 * @see LayoutSetBranchUtil 029 * @generated 030 */ 031 public interface LayoutSetBranchPersistence extends BasePersistence<LayoutSetBranch> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link LayoutSetBranchUtil} to access the layout set branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the layout set branch in the entity cache if it is enabled. 040 * 041 * @param layoutSetBranch the layout set branch 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.LayoutSetBranch layoutSetBranch); 045 046 /** 047 * Caches the layout set branchs in the entity cache if it is enabled. 048 * 049 * @param layoutSetBranchs the layout set branchs 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs); 053 054 /** 055 * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database. 056 * 057 * @param layoutSetBranchId the primary key for the new layout set branch 058 * @return the new layout set branch 059 */ 060 public com.liferay.portal.model.LayoutSetBranch create( 061 long layoutSetBranchId); 062 063 /** 064 * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param layoutSetBranchId the primary key of the layout set branch 067 * @return the layout set branch that was removed 068 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.LayoutSetBranch remove( 072 long layoutSetBranchId) 073 throws com.liferay.portal.NoSuchLayoutSetBranchException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.LayoutSetBranch updateImpl( 077 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found. 082 * 083 * @param layoutSetBranchId the primary key of the layout set branch 084 * @return the layout set branch 085 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portal.model.LayoutSetBranch findByPrimaryKey( 089 long layoutSetBranchId) 090 throws com.liferay.portal.NoSuchLayoutSetBranchException, 091 com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param layoutSetBranchId the primary key of the layout set branch 097 * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey( 101 long layoutSetBranchId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the layout set branchs where groupId = ?. 106 * 107 * @param groupId the group ID 108 * @return the matching layout set branchs 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 112 long groupId) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns a range of all the layout set branchs where groupId = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param groupId the group ID 123 * @param start the lower bound of the range of layout set branchs 124 * @param end the upper bound of the range of layout set branchs (not inclusive) 125 * @return the range of matching layout set branchs 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 129 long groupId, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Returns an ordered range of all the layout set branchs where groupId = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param groupId the group ID 140 * @param start the lower bound of the range of layout set branchs 141 * @param end the upper bound of the range of layout set branchs (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching layout set branchs 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId( 147 long groupId, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Returns the first layout set branch in the ordered set where groupId = ?. 153 * 154 * @param groupId the group ID 155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 156 * @return the first matching layout set branch 157 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public com.liferay.portal.model.LayoutSetBranch findByGroupId_First( 161 long groupId, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.NoSuchLayoutSetBranchException, 164 com.liferay.portal.kernel.exception.SystemException; 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, or <code>null</code> if a matching layout set branch could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First( 175 long groupId, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException; 178 179 /** 180 * Returns the last layout set branch in the ordered set where groupId = ?. 181 * 182 * @param groupId the group ID 183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 184 * @return the last matching layout set branch 185 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public com.liferay.portal.model.LayoutSetBranch findByGroupId_Last( 189 long groupId, 190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 191 throws com.liferay.portal.NoSuchLayoutSetBranchException, 192 com.liferay.portal.kernel.exception.SystemException; 193 194 /** 195 * Returns the last layout set branch in the ordered set where groupId = ?. 196 * 197 * @param groupId the group ID 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 public com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last( 203 long groupId, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ?. 209 * 210 * @param layoutSetBranchId the primary key of the current layout set branch 211 * @param groupId the group ID 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the previous, current, and next layout set branch 214 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext( 218 long layoutSetBranchId, long groupId, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.NoSuchLayoutSetBranchException, 221 com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns all the layout set branchs that the user has permission to view where groupId = ?. 225 * 226 * @param groupId the group ID 227 * @return the matching layout set branchs that the user has permission to view 228 * @throws SystemException if a system exception occurred 229 */ 230 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 231 long groupId) 232 throws com.liferay.portal.kernel.exception.SystemException; 233 234 /** 235 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param groupId the group ID 242 * @param start the lower bound of the range of layout set branchs 243 * @param end the upper bound of the range of layout set branchs (not inclusive) 244 * @return the range of matching layout set branchs that the user has permission to view 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 248 long groupId, int start, int end) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ?. 253 * 254 * <p> 255 * 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. 256 * </p> 257 * 258 * @param groupId the group ID 259 * @param start the lower bound of the range of layout set branchs 260 * @param end the upper bound of the range of layout set branchs (not inclusive) 261 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 262 * @return the ordered range of matching layout set branchs that the user has permission to view 263 * @throws SystemException if a system exception occurred 264 */ 265 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId( 266 long groupId, int start, int end, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.kernel.exception.SystemException; 269 270 /** 271 * 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 = ?. 272 * 273 * @param layoutSetBranchId the primary key of the current layout set branch 274 * @param groupId the group ID 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the previous, current, and next layout set branch 277 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext( 281 long layoutSetBranchId, long groupId, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.NoSuchLayoutSetBranchException, 284 com.liferay.portal.kernel.exception.SystemException; 285 286 /** 287 * Returns all the layout set branchs where groupId = ? and privateLayout = ?. 288 * 289 * @param groupId the group ID 290 * @param privateLayout the private layout 291 * @return the matching layout set branchs 292 * @throws SystemException if a system exception occurred 293 */ 294 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 295 long groupId, boolean privateLayout) 296 throws com.liferay.portal.kernel.exception.SystemException; 297 298 /** 299 * Returns a range of all the layout set branchs where groupId = ? and privateLayout = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param groupId the group ID 306 * @param privateLayout the private layout 307 * @param start the lower bound of the range of layout set branchs 308 * @param end the upper bound of the range of layout set branchs (not inclusive) 309 * @return the range of matching layout set branchs 310 * @throws SystemException if a system exception occurred 311 */ 312 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 313 long groupId, boolean privateLayout, int start, int end) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns an ordered range of all the layout set branchs where groupId = ? and privateLayout = ?. 318 * 319 * <p> 320 * 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. 321 * </p> 322 * 323 * @param groupId the group ID 324 * @param privateLayout the private layout 325 * @param start the lower bound of the range of layout set branchs 326 * @param end the upper bound of the range of layout set branchs (not inclusive) 327 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 328 * @return the ordered range of matching layout set branchs 329 * @throws SystemException if a system exception occurred 330 */ 331 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P( 332 long groupId, boolean privateLayout, int start, int end, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException; 335 336 /** 337 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 338 * 339 * @param groupId the group ID 340 * @param privateLayout the private layout 341 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 342 * @return the first matching layout set branch 343 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portal.model.LayoutSetBranch findByG_P_First( 347 long groupId, boolean privateLayout, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.NoSuchLayoutSetBranchException, 350 com.liferay.portal.kernel.exception.SystemException; 351 352 /** 353 * Returns the first layout set branch in the ordered set where groupId = ? and privateLayout = ?. 354 * 355 * @param groupId the group ID 356 * @param privateLayout the private layout 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 359 * @throws SystemException if a system exception occurred 360 */ 361 public com.liferay.portal.model.LayoutSetBranch fetchByG_P_First( 362 long groupId, boolean privateLayout, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException; 365 366 /** 367 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 368 * 369 * @param groupId the group ID 370 * @param privateLayout the private layout 371 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 372 * @return the last matching layout set branch 373 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 374 * @throws SystemException if a system exception occurred 375 */ 376 public com.liferay.portal.model.LayoutSetBranch findByG_P_Last( 377 long groupId, boolean privateLayout, 378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 379 throws com.liferay.portal.NoSuchLayoutSetBranchException, 380 com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns the last layout set branch in the ordered set where groupId = ? and privateLayout = ?. 384 * 385 * @param groupId the group ID 386 * @param privateLayout the private layout 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last( 392 long groupId, boolean privateLayout, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = ? and privateLayout = ?. 398 * 399 * @param layoutSetBranchId the primary key of the current layout set branch 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 previous, current, and next layout set branch 404 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext( 408 long layoutSetBranchId, long groupId, boolean privateLayout, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.NoSuchLayoutSetBranchException, 411 com.liferay.portal.kernel.exception.SystemException; 412 413 /** 414 * Returns all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 415 * 416 * @param groupId the group ID 417 * @param privateLayout the private layout 418 * @return the matching layout set branchs that the user has permission to view 419 * @throws SystemException if a system exception occurred 420 */ 421 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 422 long groupId, boolean privateLayout) 423 throws com.liferay.portal.kernel.exception.SystemException; 424 425 /** 426 * Returns a range of all the layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 427 * 428 * <p> 429 * 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. 430 * </p> 431 * 432 * @param groupId the group ID 433 * @param privateLayout the private layout 434 * @param start the lower bound of the range of layout set branchs 435 * @param end the upper bound of the range of layout set branchs (not inclusive) 436 * @return the range of matching layout set branchs that the user has permission to view 437 * @throws SystemException if a system exception occurred 438 */ 439 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 440 long groupId, boolean privateLayout, int start, int end) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = ? and privateLayout = ?. 445 * 446 * <p> 447 * 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. 448 * </p> 449 * 450 * @param groupId the group ID 451 * @param privateLayout the private layout 452 * @param start the lower bound of the range of layout set branchs 453 * @param end the upper bound of the range of layout set branchs (not inclusive) 454 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 455 * @return the ordered range of matching layout set branchs that the user has permission to view 456 * @throws SystemException if a system exception occurred 457 */ 458 public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P( 459 long groupId, boolean privateLayout, int start, int end, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * 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 = ?. 465 * 466 * @param layoutSetBranchId the primary key of the current layout set branch 467 * @param groupId the group ID 468 * @param privateLayout the private layout 469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 470 * @return the previous, current, and next layout set branch 471 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found 472 * @throws SystemException if a system exception occurred 473 */ 474 public com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext( 475 long layoutSetBranchId, long groupId, boolean privateLayout, 476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 477 throws com.liferay.portal.NoSuchLayoutSetBranchException, 478 com.liferay.portal.kernel.exception.SystemException; 479 480 /** 481 * 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. 482 * 483 * @param groupId the group ID 484 * @param privateLayout the private layout 485 * @param name the name 486 * @return the matching layout set branch 487 * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found 488 * @throws SystemException if a system exception occurred 489 */ 490 public com.liferay.portal.model.LayoutSetBranch findByG_P_N(long groupId, 491 boolean privateLayout, java.lang.String name) 492 throws com.liferay.portal.NoSuchLayoutSetBranchException, 493 com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * 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. 497 * 498 * @param groupId the group ID 499 * @param privateLayout the private layout 500 * @param name the name 501 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId, 505 boolean privateLayout, java.lang.String name) 506 throws com.liferay.portal.kernel.exception.SystemException; 507 508 /** 509 * 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. 510 * 511 * @param groupId the group ID 512 * @param privateLayout the private layout 513 * @param name the name 514 * @param retrieveFromCache whether to use the finder cache 515 * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId, 519 boolean privateLayout, java.lang.String name, boolean retrieveFromCache) 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Returns all the layout set branchs. 524 * 525 * @return the layout set branchs 526 * @throws SystemException if a system exception occurred 527 */ 528 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll() 529 throws com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns a range of all the layout set branchs. 533 * 534 * <p> 535 * 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. 536 * </p> 537 * 538 * @param start the lower bound of the range of layout set branchs 539 * @param end the upper bound of the range of layout set branchs (not inclusive) 540 * @return the range of layout set branchs 541 * @throws SystemException if a system exception occurred 542 */ 543 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 544 int start, int end) 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Returns an ordered range of all the layout set branchs. 549 * 550 * <p> 551 * 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. 552 * </p> 553 * 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 layout set branchs 558 * @throws SystemException if a system exception occurred 559 */ 560 public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll( 561 int start, int end, 562 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 563 throws com.liferay.portal.kernel.exception.SystemException; 564 565 /** 566 * Removes all the layout set branchs where groupId = ? from the database. 567 * 568 * @param groupId the group ID 569 * @throws SystemException if a system exception occurred 570 */ 571 public void removeByGroupId(long groupId) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Removes all the layout set branchs where groupId = ? and privateLayout = ? from the database. 576 * 577 * @param groupId the group ID 578 * @param privateLayout the private layout 579 * @throws SystemException if a system exception occurred 580 */ 581 public void removeByG_P(long groupId, boolean privateLayout) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Removes the layout set branch where groupId = ? and privateLayout = ? and name = ? from the database. 586 * 587 * @param groupId the group ID 588 * @param privateLayout the private layout 589 * @param name the name 590 * @return the layout set branch that was removed 591 * @throws SystemException if a system exception occurred 592 */ 593 public com.liferay.portal.model.LayoutSetBranch removeByG_P_N( 594 long groupId, boolean privateLayout, java.lang.String name) 595 throws com.liferay.portal.NoSuchLayoutSetBranchException, 596 com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Removes all the layout set branchs from the database. 600 * 601 * @throws SystemException if a system exception occurred 602 */ 603 public void removeAll() 604 throws com.liferay.portal.kernel.exception.SystemException; 605 606 /** 607 * Returns the number of layout set branchs where groupId = ?. 608 * 609 * @param groupId the group ID 610 * @return the number of matching layout set branchs 611 * @throws SystemException if a system exception occurred 612 */ 613 public int countByGroupId(long groupId) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns the number of layout set branchs that the user has permission to view where groupId = ?. 618 * 619 * @param groupId the group ID 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 int filterCountByGroupId(long groupId) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns the number of layout set branchs where groupId = ? and privateLayout = ?. 628 * 629 * @param groupId the group ID 630 * @param privateLayout the private layout 631 * @return the number of matching layout set branchs 632 * @throws SystemException if a system exception occurred 633 */ 634 public int countByG_P(long groupId, boolean privateLayout) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Returns the number of layout set branchs that the user has permission to view where groupId = ? and privateLayout = ?. 639 * 640 * @param groupId the group ID 641 * @param privateLayout the private layout 642 * @return the number of matching layout set branchs that the user has permission to view 643 * @throws SystemException if a system exception occurred 644 */ 645 public int filterCountByG_P(long groupId, boolean privateLayout) 646 throws com.liferay.portal.kernel.exception.SystemException; 647 648 /** 649 * Returns the number of layout set branchs where groupId = ? and privateLayout = ? and name = ?. 650 * 651 * @param groupId the group ID 652 * @param privateLayout the private layout 653 * @param name the name 654 * @return the number of matching layout set branchs 655 * @throws SystemException if a system exception occurred 656 */ 657 public int countByG_P_N(long groupId, boolean privateLayout, 658 java.lang.String name) 659 throws com.liferay.portal.kernel.exception.SystemException; 660 661 /** 662 * Returns the number of layout set branchs. 663 * 664 * @return the number of layout set branchs 665 * @throws SystemException if a system exception occurred 666 */ 667 public int countAll() 668 throws com.liferay.portal.kernel.exception.SystemException; 669 }