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