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.LayoutBranch; 018 019 /** 020 * The persistence interface for the layout 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 LayoutBranchPersistenceImpl 028 * @see LayoutBranchUtil 029 * @generated 030 */ 031 public interface LayoutBranchPersistence extends BasePersistence<LayoutBranch> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link LayoutBranchUtil} to access the layout branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the layout branch in the entity cache if it is enabled. 040 * 041 * @param layoutBranch the layout branch 042 */ 043 public void cacheResult(com.liferay.portal.model.LayoutBranch layoutBranch); 044 045 /** 046 * Caches the layout branchs in the entity cache if it is enabled. 047 * 048 * @param layoutBranchs the layout branchs 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.LayoutBranch> layoutBranchs); 052 053 /** 054 * Creates a new layout branch with the primary key. Does not add the layout branch to the database. 055 * 056 * @param LayoutBranchId the primary key for the new layout branch 057 * @return the new layout branch 058 */ 059 public com.liferay.portal.model.LayoutBranch create(long LayoutBranchId); 060 061 /** 062 * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param LayoutBranchId the primary key of the layout branch 065 * @return the layout branch that was removed 066 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.LayoutBranch remove(long LayoutBranchId) 070 throws com.liferay.portal.NoSuchLayoutBranchException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.LayoutBranch updateImpl( 074 com.liferay.portal.model.LayoutBranch layoutBranch, boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the layout branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 079 * 080 * @param LayoutBranchId the primary key of the layout branch 081 * @return the layout branch 082 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.LayoutBranch findByPrimaryKey( 086 long LayoutBranchId) 087 throws com.liferay.portal.NoSuchLayoutBranchException, 088 com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the layout branch with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param LayoutBranchId the primary key of the layout branch 094 * @return the layout branch, or <code>null</code> if a layout branch with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portal.model.LayoutBranch fetchByPrimaryKey( 098 long LayoutBranchId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Returns all the layout branchs where layoutSetBranchId = ?. 103 * 104 * @param layoutSetBranchId the layout set branch ID 105 * @return the matching layout branchs 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 109 long layoutSetBranchId) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Returns a range of all the layout branchs where layoutSetBranchId = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param layoutSetBranchId the layout set branch ID 120 * @param start the lower bound of the range of layout branchs 121 * @param end the upper bound of the range of layout branchs (not inclusive) 122 * @return the range of matching layout branchs 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 126 long layoutSetBranchId, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Returns an ordered range of all the layout branchs where layoutSetBranchId = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param layoutSetBranchId the layout set branch ID 137 * @param start the lower bound of the range of layout branchs 138 * @param end the upper bound of the range of layout branchs (not inclusive) 139 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 140 * @return the ordered range of matching layout branchs 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId( 144 long layoutSetBranchId, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Returns the first layout branch in the ordered set where layoutSetBranchId = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param layoutSetBranchId the layout set branch ID 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching layout branch 158 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_First( 162 long layoutSetBranchId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.NoSuchLayoutBranchException, 165 com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the last layout branch in the ordered set where layoutSetBranchId = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param layoutSetBranchId the layout set branch ID 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the last matching layout branch 177 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_Last( 181 long layoutSetBranchId, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.NoSuchLayoutBranchException, 184 com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param LayoutBranchId the primary key of the current layout branch 194 * @param layoutSetBranchId the layout set branch ID 195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 196 * @return the previous, current, and next layout branch 197 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portal.model.LayoutBranch[] findByLayoutSetBranchId_PrevAndNext( 201 long LayoutBranchId, long layoutSetBranchId, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.NoSuchLayoutBranchException, 204 com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns all the layout branchs where layoutSetBranchId = ? and plid = ?. 208 * 209 * @param layoutSetBranchId the layout set branch ID 210 * @param plid the plid 211 * @return the matching layout branchs 212 * @throws SystemException if a system exception occurred 213 */ 214 public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 215 long layoutSetBranchId, long plid) 216 throws com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns a range of all the layout branchs where layoutSetBranchId = ? and plid = ?. 220 * 221 * <p> 222 * 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. 223 * </p> 224 * 225 * @param layoutSetBranchId the layout set branch ID 226 * @param plid the plid 227 * @param start the lower bound of the range of layout branchs 228 * @param end the upper bound of the range of layout branchs (not inclusive) 229 * @return the range of matching layout branchs 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 233 long layoutSetBranchId, long plid, int start, int end) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns an ordered range of all the layout branchs where layoutSetBranchId = ? and plid = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param layoutSetBranchId the layout set branch ID 244 * @param plid the plid 245 * @param start the lower bound of the range of layout branchs 246 * @param end the upper bound of the range of layout branchs (not inclusive) 247 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 248 * @return the ordered range of matching layout branchs 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P( 252 long layoutSetBranchId, long plid, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param layoutSetBranchId the layout set branch ID 264 * @param plid the plid 265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 266 * @return the first matching layout branch 267 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public com.liferay.portal.model.LayoutBranch findByL_P_First( 271 long layoutSetBranchId, long plid, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.NoSuchLayoutBranchException, 274 com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param layoutSetBranchId the layout set branch ID 284 * @param plid the plid 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching layout branch 287 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portal.model.LayoutBranch findByL_P_Last( 291 long layoutSetBranchId, long plid, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.NoSuchLayoutBranchException, 294 com.liferay.portal.kernel.exception.SystemException; 295 296 /** 297 * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. 298 * 299 * <p> 300 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 301 * </p> 302 * 303 * @param LayoutBranchId the primary key of the current layout branch 304 * @param layoutSetBranchId the layout set branch ID 305 * @param plid the plid 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next layout branch 308 * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portal.model.LayoutBranch[] findByL_P_PrevAndNext( 312 long LayoutBranchId, long layoutSetBranchId, long plid, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.NoSuchLayoutBranchException, 315 com.liferay.portal.kernel.exception.SystemException; 316 317 /** 318 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 319 * 320 * @param layoutSetBranchId the layout set branch ID 321 * @param plid the plid 322 * @param name the name 323 * @return the matching layout branch 324 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portal.model.LayoutBranch findByL_P_N( 328 long layoutSetBranchId, long plid, java.lang.String name) 329 throws com.liferay.portal.NoSuchLayoutBranchException, 330 com.liferay.portal.kernel.exception.SystemException; 331 332 /** 333 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 334 * 335 * @param layoutSetBranchId the layout set branch ID 336 * @param plid the plid 337 * @param name the name 338 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public com.liferay.portal.model.LayoutBranch fetchByL_P_N( 342 long layoutSetBranchId, long plid, java.lang.String name) 343 throws com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 347 * 348 * @param layoutSetBranchId the layout set branch ID 349 * @param plid the plid 350 * @param name the name 351 * @param retrieveFromCache whether to use the finder cache 352 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 353 * @throws SystemException if a system exception occurred 354 */ 355 public com.liferay.portal.model.LayoutBranch fetchByL_P_N( 356 long layoutSetBranchId, long plid, java.lang.String name, 357 boolean retrieveFromCache) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found. 362 * 363 * @param layoutSetBranchId the layout set branch ID 364 * @param plid the plid 365 * @param master the master 366 * @return the matching layout branch 367 * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portal.model.LayoutBranch findByL_P_M( 371 long layoutSetBranchId, long plid, boolean master) 372 throws com.liferay.portal.NoSuchLayoutBranchException, 373 com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 377 * 378 * @param layoutSetBranchId the layout set branch ID 379 * @param plid the plid 380 * @param master the master 381 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 382 * @throws SystemException if a system exception occurred 383 */ 384 public com.liferay.portal.model.LayoutBranch fetchByL_P_M( 385 long layoutSetBranchId, long plid, boolean master) 386 throws com.liferay.portal.kernel.exception.SystemException; 387 388 /** 389 * Returns the layout branch where layoutSetBranchId = ? and plid = ? and master = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 390 * 391 * @param layoutSetBranchId the layout set branch ID 392 * @param plid the plid 393 * @param master the master 394 * @param retrieveFromCache whether to use the finder cache 395 * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found 396 * @throws SystemException if a system exception occurred 397 */ 398 public com.liferay.portal.model.LayoutBranch fetchByL_P_M( 399 long layoutSetBranchId, long plid, boolean master, 400 boolean retrieveFromCache) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns all the layout branchs. 405 * 406 * @return the layout branchs 407 * @throws SystemException if a system exception occurred 408 */ 409 public java.util.List<com.liferay.portal.model.LayoutBranch> findAll() 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Returns a range of all the layout branchs. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param start the lower bound of the range of layout branchs 420 * @param end the upper bound of the range of layout branchs (not inclusive) 421 * @return the range of layout branchs 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 425 int start, int end) 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Returns an ordered range of all the layout branchs. 430 * 431 * <p> 432 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 433 * </p> 434 * 435 * @param start the lower bound of the range of layout branchs 436 * @param end the upper bound of the range of layout branchs (not inclusive) 437 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 438 * @return the ordered range of layout branchs 439 * @throws SystemException if a system exception occurred 440 */ 441 public java.util.List<com.liferay.portal.model.LayoutBranch> findAll( 442 int start, int end, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException; 445 446 /** 447 * Removes all the layout branchs where layoutSetBranchId = ? from the database. 448 * 449 * @param layoutSetBranchId the layout set branch ID 450 * @throws SystemException if a system exception occurred 451 */ 452 public void removeByLayoutSetBranchId(long layoutSetBranchId) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? from the database. 457 * 458 * @param layoutSetBranchId the layout set branch ID 459 * @param plid the plid 460 * @throws SystemException if a system exception occurred 461 */ 462 public void removeByL_P(long layoutSetBranchId, long plid) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database. 467 * 468 * @param layoutSetBranchId the layout set branch ID 469 * @param plid the plid 470 * @param name the name 471 * @throws SystemException if a system exception occurred 472 */ 473 public void removeByL_P_N(long layoutSetBranchId, long plid, 474 java.lang.String name) 475 throws com.liferay.portal.NoSuchLayoutBranchException, 476 com.liferay.portal.kernel.exception.SystemException; 477 478 /** 479 * Removes the layout branch where layoutSetBranchId = ? and plid = ? and master = ? from the database. 480 * 481 * @param layoutSetBranchId the layout set branch ID 482 * @param plid the plid 483 * @param master the master 484 * @throws SystemException if a system exception occurred 485 */ 486 public void removeByL_P_M(long layoutSetBranchId, long plid, boolean master) 487 throws com.liferay.portal.NoSuchLayoutBranchException, 488 com.liferay.portal.kernel.exception.SystemException; 489 490 /** 491 * Removes all the layout branchs from the database. 492 * 493 * @throws SystemException if a system exception occurred 494 */ 495 public void removeAll() 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Returns the number of layout branchs where layoutSetBranchId = ?. 500 * 501 * @param layoutSetBranchId the layout set branch ID 502 * @return the number of matching layout branchs 503 * @throws SystemException if a system exception occurred 504 */ 505 public int countByLayoutSetBranchId(long layoutSetBranchId) 506 throws com.liferay.portal.kernel.exception.SystemException; 507 508 /** 509 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ?. 510 * 511 * @param layoutSetBranchId the layout set branch ID 512 * @param plid the plid 513 * @return the number of matching layout branchs 514 * @throws SystemException if a system exception occurred 515 */ 516 public int countByL_P(long layoutSetBranchId, long plid) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and name = ?. 521 * 522 * @param layoutSetBranchId the layout set branch ID 523 * @param plid the plid 524 * @param name the name 525 * @return the number of matching layout branchs 526 * @throws SystemException if a system exception occurred 527 */ 528 public int countByL_P_N(long layoutSetBranchId, long plid, 529 java.lang.String name) 530 throws com.liferay.portal.kernel.exception.SystemException; 531 532 /** 533 * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. 534 * 535 * @param layoutSetBranchId the layout set branch ID 536 * @param plid the plid 537 * @param master the master 538 * @return the number of matching layout branchs 539 * @throws SystemException if a system exception occurred 540 */ 541 public int countByL_P_M(long layoutSetBranchId, long plid, boolean master) 542 throws com.liferay.portal.kernel.exception.SystemException; 543 544 /** 545 * Returns the number of layout branchs. 546 * 547 * @return the number of layout branchs 548 * @throws SystemException if a system exception occurred 549 */ 550 public int countAll() 551 throws com.liferay.portal.kernel.exception.SystemException; 552 }