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.LayoutSetPrototype; 018 019 /** 020 * The persistence interface for the layout set prototype 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 LayoutSetPrototypePersistenceImpl 028 * @see LayoutSetPrototypeUtil 029 * @generated 030 */ 031 public interface LayoutSetPrototypePersistence extends BasePersistence<LayoutSetPrototype> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link LayoutSetPrototypeUtil} to access the layout set prototype persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the layout set prototype in the entity cache if it is enabled. 040 * 041 * @param layoutSetPrototype the layout set prototype 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype); 045 046 /** 047 * Caches the layout set prototypes in the entity cache if it is enabled. 048 * 049 * @param layoutSetPrototypes the layout set prototypes 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes); 053 054 /** 055 * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database. 056 * 057 * @param layoutSetPrototypeId the primary key for the new layout set prototype 058 * @return the new layout set prototype 059 */ 060 public com.liferay.portal.model.LayoutSetPrototype create( 061 long layoutSetPrototypeId); 062 063 /** 064 * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param layoutSetPrototypeId the primary key of the layout set prototype 067 * @return the layout set prototype that was removed 068 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.LayoutSetPrototype remove( 072 long layoutSetPrototypeId) 073 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.LayoutSetPrototype updateImpl( 077 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found. 083 * 084 * @param layoutSetPrototypeId the primary key of the layout set prototype 085 * @return the layout set prototype 086 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey( 090 long layoutSetPrototypeId) 091 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 092 com.liferay.portal.kernel.exception.SystemException; 093 094 /** 095 * Returns the layout set prototype with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param layoutSetPrototypeId the primary key of the layout set prototype 098 * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey( 102 long layoutSetPrototypeId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Returns all the layout set prototypes where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @return the matching layout set prototypes 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the layout set prototypes where uuid = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param uuid the uuid 124 * @param start the lower bound of the range of layout set prototypes 125 * @param end the upper bound of the range of layout set prototypes (not inclusive) 126 * @return the range of matching layout set prototypes 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 130 java.lang.String uuid, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Returns an ordered range of all the layout set prototypes where uuid = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param uuid the uuid 141 * @param start the lower bound of the range of layout set prototypes 142 * @param end the upper bound of the range of layout set prototypes (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching layout set prototypes 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 148 java.lang.String uuid, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Returns the first layout set prototype in the ordered set where uuid = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param uuid the uuid 160 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 161 * @return the first matching layout set prototype 162 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portal.model.LayoutSetPrototype findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 169 com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the last layout set prototype in the ordered set where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the last matching layout set prototype 181 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portal.model.LayoutSetPrototype findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 188 com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where uuid = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param layoutSetPrototypeId the primary key of the current layout set prototype 198 * @param uuid the uuid 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the previous, current, and next layout set prototype 201 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portal.model.LayoutSetPrototype[] findByUuid_PrevAndNext( 205 long layoutSetPrototypeId, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 208 com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns all the layout set prototypes that the user has permission to view where uuid = ?. 212 * 213 * @param uuid the uuid 214 * @return the matching layout set prototypes that the user has permission to view 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 218 java.lang.String uuid) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Returns a range of all the layout set prototypes that the user has permission to view where uuid = ?. 223 * 224 * <p> 225 * 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. 226 * </p> 227 * 228 * @param uuid the uuid 229 * @param start the lower bound of the range of layout set prototypes 230 * @param end the upper bound of the range of layout set prototypes (not inclusive) 231 * @return the range of matching layout set prototypes that the user has permission to view 232 * @throws SystemException if a system exception occurred 233 */ 234 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 235 java.lang.String uuid, int start, int end) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where uuid = ?. 240 * 241 * <p> 242 * 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. 243 * </p> 244 * 245 * @param uuid the uuid 246 * @param start the lower bound of the range of layout set prototypes 247 * @param end the upper bound of the range of layout set prototypes (not inclusive) 248 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 249 * @return the ordered range of matching layout set prototypes that the user has permission to view 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 253 java.lang.String uuid, int start, int end, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where uuid = ?. 259 * 260 * @param layoutSetPrototypeId the primary key of the current layout set prototype 261 * @param uuid the uuid 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the previous, current, and next layout set prototype 264 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.LayoutSetPrototype[] filterFindByUuid_PrevAndNext( 268 long layoutSetPrototypeId, java.lang.String uuid, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 271 com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns all the layout set prototypes where companyId = ?. 275 * 276 * @param companyId the company ID 277 * @return the matching layout set prototypes 278 * @throws SystemException if a system exception occurred 279 */ 280 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 281 long companyId) 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Returns a range of all the layout set prototypes where companyId = ?. 286 * 287 * <p> 288 * 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. 289 * </p> 290 * 291 * @param companyId the company ID 292 * @param start the lower bound of the range of layout set prototypes 293 * @param end the upper bound of the range of layout set prototypes (not inclusive) 294 * @return the range of matching layout set prototypes 295 * @throws SystemException if a system exception occurred 296 */ 297 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 298 long companyId, int start, int end) 299 throws com.liferay.portal.kernel.exception.SystemException; 300 301 /** 302 * Returns an ordered range of all the layout set prototypes where companyId = ?. 303 * 304 * <p> 305 * 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. 306 * </p> 307 * 308 * @param companyId the company ID 309 * @param start the lower bound of the range of layout set prototypes 310 * @param end the upper bound of the range of layout set prototypes (not inclusive) 311 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 312 * @return the ordered range of matching layout set prototypes 313 * @throws SystemException if a system exception occurred 314 */ 315 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 316 long companyId, int start, int end, 317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 318 throws com.liferay.portal.kernel.exception.SystemException; 319 320 /** 321 * Returns the first layout set prototype in the ordered set where companyId = ?. 322 * 323 * <p> 324 * 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. 325 * </p> 326 * 327 * @param companyId the company ID 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the first matching layout set prototype 330 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 331 * @throws SystemException if a system exception occurred 332 */ 333 public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First( 334 long companyId, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 337 com.liferay.portal.kernel.exception.SystemException; 338 339 /** 340 * Returns the last layout set prototype in the ordered set where companyId = ?. 341 * 342 * <p> 343 * 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. 344 * </p> 345 * 346 * @param companyId the company ID 347 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 348 * @return the last matching layout set prototype 349 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last( 353 long companyId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 356 com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?. 360 * 361 * <p> 362 * 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. 363 * </p> 364 * 365 * @param layoutSetPrototypeId the primary key of the current layout set prototype 366 * @param companyId the company ID 367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 368 * @return the previous, current, and next layout set prototype 369 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext( 373 long layoutSetPrototypeId, long companyId, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 376 com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns all the layout set prototypes that the user has permission to view where companyId = ?. 380 * 381 * @param companyId the company ID 382 * @return the matching layout set prototypes that the user has permission to view 383 * @throws SystemException if a system exception occurred 384 */ 385 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 386 long companyId) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Returns a range of all the layout set prototypes that the user has permission to view where companyId = ?. 391 * 392 * <p> 393 * 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. 394 * </p> 395 * 396 * @param companyId the company ID 397 * @param start the lower bound of the range of layout set prototypes 398 * @param end the upper bound of the range of layout set prototypes (not inclusive) 399 * @return the range of matching layout set prototypes 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.LayoutSetPrototype> filterFindByCompanyId( 403 long companyId, int start, int end) 404 throws com.liferay.portal.kernel.exception.SystemException; 405 406 /** 407 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = ?. 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. 411 * </p> 412 * 413 * @param companyId the company ID 414 * @param start the lower bound of the range of layout set prototypes 415 * @param end the upper bound of the range of layout set prototypes (not inclusive) 416 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 417 * @return the ordered range of matching layout set prototypes that the user has permission to view 418 * @throws SystemException if a system exception occurred 419 */ 420 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 421 long companyId, int start, int end, 422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 423 throws com.liferay.portal.kernel.exception.SystemException; 424 425 /** 426 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = ?. 427 * 428 * @param layoutSetPrototypeId the primary key of the current layout set prototype 429 * @param companyId the company ID 430 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 431 * @return the previous, current, and next layout set prototype 432 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 433 * @throws SystemException if a system exception occurred 434 */ 435 public com.liferay.portal.model.LayoutSetPrototype[] filterFindByCompanyId_PrevAndNext( 436 long layoutSetPrototypeId, long companyId, 437 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 438 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 439 com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns all the layout set prototypes where companyId = ? and active = ?. 443 * 444 * @param companyId the company ID 445 * @param active the active 446 * @return the matching layout set prototypes 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 450 long companyId, boolean active) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns a range of all the layout set prototypes where companyId = ? and active = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param companyId the company ID 461 * @param active the active 462 * @param start the lower bound of the range of layout set prototypes 463 * @param end the upper bound of the range of layout set prototypes (not inclusive) 464 * @return the range of matching layout set prototypes 465 * @throws SystemException if a system exception occurred 466 */ 467 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 468 long companyId, boolean active, int start, int end) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Returns an ordered range of all the layout set prototypes where companyId = ? and active = ?. 473 * 474 * <p> 475 * 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. 476 * </p> 477 * 478 * @param companyId the company ID 479 * @param active the active 480 * @param start the lower bound of the range of layout set prototypes 481 * @param end the upper bound of the range of layout set prototypes (not inclusive) 482 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 483 * @return the ordered range of matching layout set prototypes 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 487 long companyId, boolean active, int start, int end, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the first layout set prototype in the ordered set where companyId = ? and active = ?. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param companyId the company ID 499 * @param active the active 500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 501 * @return the first matching layout set prototype 502 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 503 * @throws SystemException if a system exception occurred 504 */ 505 public com.liferay.portal.model.LayoutSetPrototype findByC_A_First( 506 long companyId, boolean active, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 509 com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns the last layout set prototype in the ordered set where companyId = ? and active = ?. 513 * 514 * <p> 515 * 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. 516 * </p> 517 * 518 * @param companyId the company ID 519 * @param active the active 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the last matching layout set prototype 522 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 523 * @throws SystemException if a system exception occurred 524 */ 525 public com.liferay.portal.model.LayoutSetPrototype findByC_A_Last( 526 long companyId, boolean active, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 529 com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?. 533 * 534 * <p> 535 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 536 * </p> 537 * 538 * @param layoutSetPrototypeId the primary key of the current layout set prototype 539 * @param companyId the company ID 540 * @param active the active 541 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 542 * @return the previous, current, and next layout set prototype 543 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 544 * @throws SystemException if a system exception occurred 545 */ 546 public com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext( 547 long layoutSetPrototypeId, long companyId, boolean active, 548 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 549 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 550 com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns all the layout set prototypes that the user has permission to view where companyId = ? and active = ?. 554 * 555 * @param companyId the company ID 556 * @param active the active 557 * @return the matching layout set prototypes that the user has permission to view 558 * @throws SystemException if a system exception occurred 559 */ 560 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 561 long companyId, boolean active) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Returns a range of all the layout set prototypes that the user has permission to view where companyId = ? and active = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param companyId the company ID 572 * @param active the active 573 * @param start the lower bound of the range of layout set prototypes 574 * @param end the upper bound of the range of layout set prototypes (not inclusive) 575 * @return the range of matching layout set prototypes that the user has permission to view 576 * @throws SystemException if a system exception occurred 577 */ 578 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 579 long companyId, boolean active, int start, int end) 580 throws com.liferay.portal.kernel.exception.SystemException; 581 582 /** 583 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = ? and active = ?. 584 * 585 * <p> 586 * 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. 587 * </p> 588 * 589 * @param companyId the company ID 590 * @param active the active 591 * @param start the lower bound of the range of layout set prototypes 592 * @param end the upper bound of the range of layout set prototypes (not inclusive) 593 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 594 * @return the ordered range of matching layout set prototypes that the user has permission to view 595 * @throws SystemException if a system exception occurred 596 */ 597 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 598 long companyId, boolean active, int start, int end, 599 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = ? and active = ?. 604 * 605 * @param layoutSetPrototypeId the primary key of the current layout set prototype 606 * @param companyId the company ID 607 * @param active the active 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the previous, current, and next layout set prototype 610 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public com.liferay.portal.model.LayoutSetPrototype[] filterFindByC_A_PrevAndNext( 614 long layoutSetPrototypeId, long companyId, boolean active, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.NoSuchLayoutSetPrototypeException, 617 com.liferay.portal.kernel.exception.SystemException; 618 619 /** 620 * Returns all the layout set prototypes. 621 * 622 * @return the layout set prototypes 623 * @throws SystemException if a system exception occurred 624 */ 625 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll() 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns a range of all the layout set prototypes. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param start the lower bound of the range of layout set prototypes 636 * @param end the upper bound of the range of layout set prototypes (not inclusive) 637 * @return the range of layout set prototypes 638 * @throws SystemException if a system exception occurred 639 */ 640 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 641 int start, int end) 642 throws com.liferay.portal.kernel.exception.SystemException; 643 644 /** 645 * Returns an ordered range of all the layout set prototypes. 646 * 647 * <p> 648 * 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. 649 * </p> 650 * 651 * @param start the lower bound of the range of layout set prototypes 652 * @param end the upper bound of the range of layout set prototypes (not inclusive) 653 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 654 * @return the ordered range of layout set prototypes 655 * @throws SystemException if a system exception occurred 656 */ 657 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 658 int start, int end, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException; 661 662 /** 663 * Removes all the layout set prototypes where uuid = ? from the database. 664 * 665 * @param uuid the uuid 666 * @throws SystemException if a system exception occurred 667 */ 668 public void removeByUuid(java.lang.String uuid) 669 throws com.liferay.portal.kernel.exception.SystemException; 670 671 /** 672 * Removes all the layout set prototypes where companyId = ? from the database. 673 * 674 * @param companyId the company ID 675 * @throws SystemException if a system exception occurred 676 */ 677 public void removeByCompanyId(long companyId) 678 throws com.liferay.portal.kernel.exception.SystemException; 679 680 /** 681 * Removes all the layout set prototypes where companyId = ? and active = ? from the database. 682 * 683 * @param companyId the company ID 684 * @param active the active 685 * @throws SystemException if a system exception occurred 686 */ 687 public void removeByC_A(long companyId, boolean active) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Removes all the layout set prototypes from the database. 692 * 693 * @throws SystemException if a system exception occurred 694 */ 695 public void removeAll() 696 throws com.liferay.portal.kernel.exception.SystemException; 697 698 /** 699 * Returns the number of layout set prototypes where uuid = ?. 700 * 701 * @param uuid the uuid 702 * @return the number of matching layout set prototypes 703 * @throws SystemException if a system exception occurred 704 */ 705 public int countByUuid(java.lang.String uuid) 706 throws com.liferay.portal.kernel.exception.SystemException; 707 708 /** 709 * Returns the number of layout set prototypes that the user has permission to view where uuid = ?. 710 * 711 * @param uuid the uuid 712 * @return the number of matching layout set prototypes that the user has permission to view 713 * @throws SystemException if a system exception occurred 714 */ 715 public int filterCountByUuid(java.lang.String uuid) 716 throws com.liferay.portal.kernel.exception.SystemException; 717 718 /** 719 * Returns the number of layout set prototypes where companyId = ?. 720 * 721 * @param companyId the company ID 722 * @return the number of matching layout set prototypes 723 * @throws SystemException if a system exception occurred 724 */ 725 public int countByCompanyId(long companyId) 726 throws com.liferay.portal.kernel.exception.SystemException; 727 728 /** 729 * Returns the number of layout set prototypes that the user has permission to view where companyId = ?. 730 * 731 * @param companyId the company ID 732 * @return the number of matching layout set prototypes that the user has permission to view 733 * @throws SystemException if a system exception occurred 734 */ 735 public int filterCountByCompanyId(long companyId) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns the number of layout set prototypes where companyId = ? and active = ?. 740 * 741 * @param companyId the company ID 742 * @param active the active 743 * @return the number of matching layout set prototypes 744 * @throws SystemException if a system exception occurred 745 */ 746 public int countByC_A(long companyId, boolean active) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns the number of layout set prototypes that the user has permission to view where companyId = ? and active = ?. 751 * 752 * @param companyId the company ID 753 * @param active the active 754 * @return the number of matching layout set prototypes that the user has permission to view 755 * @throws SystemException if a system exception occurred 756 */ 757 public int filterCountByC_A(long companyId, boolean active) 758 throws com.liferay.portal.kernel.exception.SystemException; 759 760 /** 761 * Returns the number of layout set prototypes. 762 * 763 * @return the number of layout set prototypes 764 * @throws SystemException if a system exception occurred 765 */ 766 public int countAll() 767 throws com.liferay.portal.kernel.exception.SystemException; 768 }