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