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