001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.model.LayoutPrototype; 019 020 /** 021 * The persistence interface for the layout prototype service. 022 * 023 * <p> 024 * Caching information and settings can be found in <code>portal.properties</code> 025 * </p> 026 * 027 * @author Brian Wing Shun Chan 028 * @see LayoutPrototypePersistenceImpl 029 * @see LayoutPrototypeUtil 030 * @generated 031 */ 032 public interface LayoutPrototypePersistence extends BasePersistence<LayoutPrototype> { 033 /* 034 * NOTE FOR DEVELOPERS: 035 * 036 * Never modify or reference this interface directly. Always use {@link LayoutPrototypeUtil} to access the layout prototype persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 037 */ 038 039 /** 040 * Caches the layout prototype in the entity cache if it is enabled. 041 * 042 * @param layoutPrototype the layout prototype 043 */ 044 public void cacheResult( 045 com.liferay.portal.model.LayoutPrototype layoutPrototype); 046 047 /** 048 * Caches the layout prototypes in the entity cache if it is enabled. 049 * 050 * @param layoutPrototypes the layout prototypes 051 */ 052 public void cacheResult( 053 java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes); 054 055 /** 056 * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database. 057 * 058 * @param layoutPrototypeId the primary key for the new layout prototype 059 * @return the new layout prototype 060 */ 061 public com.liferay.portal.model.LayoutPrototype create( 062 long layoutPrototypeId); 063 064 /** 065 * Removes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param layoutPrototypeId the primary key of the layout prototype 068 * @return the layout prototype that was removed 069 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portal.model.LayoutPrototype remove( 073 long layoutPrototypeId) 074 throws com.liferay.portal.NoSuchLayoutPrototypeException, 075 com.liferay.portal.kernel.exception.SystemException; 076 077 public com.liferay.portal.model.LayoutPrototype updateImpl( 078 com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the layout prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutPrototypeException} if it could not be found. 083 * 084 * @param layoutPrototypeId the primary key of the layout prototype 085 * @return the layout prototype 086 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portal.model.LayoutPrototype findByPrimaryKey( 090 long layoutPrototypeId) 091 throws com.liferay.portal.NoSuchLayoutPrototypeException, 092 com.liferay.portal.kernel.exception.SystemException; 093 094 /** 095 * Returns the layout prototype with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param layoutPrototypeId the primary key of the layout prototype 098 * @return the layout prototype, or <code>null</code> if a layout prototype with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey( 102 long layoutPrototypeId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Returns all the layout prototypes where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @return the matching layout prototypes 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the layout 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 prototypes 125 * @param end the upper bound of the range of layout prototypes (not inclusive) 126 * @return the range of matching layout prototypes 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototypes 142 * @param end the upper bound of the range of layout 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 prototypes 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototype 162 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portal.model.LayoutPrototype findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.NoSuchLayoutPrototypeException, 169 com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the last layout 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 prototype 181 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portal.model.LayoutPrototype findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.NoSuchLayoutPrototypeException, 188 com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns the layout prototypes before and after the current layout 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 layoutPrototypeId the primary key of the current layout 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 prototype 201 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portal.model.LayoutPrototype[] findByUuid_PrevAndNext( 205 long layoutPrototypeId, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.NoSuchLayoutPrototypeException, 208 com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns all the layout prototypes that the user has permission to view where uuid = ?. 212 * 213 * @param uuid the uuid 214 * @return the matching layout 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.LayoutPrototype> filterFindByUuid( 218 java.lang.String uuid) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Returns a range of all the layout 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 prototypes 230 * @param end the upper bound of the range of layout prototypes (not inclusive) 231 * @return the range of matching layout 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.LayoutPrototype> 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 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 prototypes 247 * @param end the upper bound of the range of layout 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 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.LayoutPrototype> 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 prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where uuid = ?. 259 * 260 * @param layoutPrototypeId the primary key of the current layout 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 prototype 264 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_PrevAndNext( 268 long layoutPrototypeId, java.lang.String uuid, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.NoSuchLayoutPrototypeException, 271 com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns all the layout prototypes where companyId = ?. 275 * 276 * @param companyId the company ID 277 * @return the matching layout prototypes 278 * @throws SystemException if a system exception occurred 279 */ 280 public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId( 281 long companyId) 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Returns a range of all the layout 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 prototypes 293 * @param end the upper bound of the range of layout prototypes (not inclusive) 294 * @return the range of matching layout prototypes 295 * @throws SystemException if a system exception occurred 296 */ 297 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototypes 310 * @param end the upper bound of the range of layout 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 prototypes 313 * @throws SystemException if a system exception occurred 314 */ 315 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototype 330 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 331 * @throws SystemException if a system exception occurred 332 */ 333 public com.liferay.portal.model.LayoutPrototype findByCompanyId_First( 334 long companyId, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.NoSuchLayoutPrototypeException, 337 com.liferay.portal.kernel.exception.SystemException; 338 339 /** 340 * Returns the last layout 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 prototype 349 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portal.model.LayoutPrototype findByCompanyId_Last( 353 long companyId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.NoSuchLayoutPrototypeException, 356 com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Returns the layout prototypes before and after the current layout 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 layoutPrototypeId the primary key of the current layout 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 prototype 369 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext( 373 long layoutPrototypeId, long companyId, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.NoSuchLayoutPrototypeException, 376 com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns all the layout prototypes that the user has permission to view where companyId = ?. 380 * 381 * @param companyId the company ID 382 * @return the matching layout 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.LayoutPrototype> filterFindByCompanyId( 386 long companyId) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Returns a range of all the layout 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 prototypes 398 * @param end the upper bound of the range of layout prototypes (not inclusive) 399 * @return the range of matching layout 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.LayoutPrototype> 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 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 prototypes 415 * @param end the upper bound of the range of layout 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 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.LayoutPrototype> 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 prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ?. 427 * 428 * @param layoutPrototypeId the primary key of the current layout 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 prototype 432 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 433 * @throws SystemException if a system exception occurred 434 */ 435 public com.liferay.portal.model.LayoutPrototype[] filterFindByCompanyId_PrevAndNext( 436 long layoutPrototypeId, long companyId, 437 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 438 throws com.liferay.portal.NoSuchLayoutPrototypeException, 439 com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns all the layout prototypes where companyId = ? and active = ?. 443 * 444 * @param companyId the company ID 445 * @param active the active 446 * @return the matching layout prototypes 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototypes 463 * @param end the upper bound of the range of layout prototypes (not inclusive) 464 * @return the range of matching layout prototypes 465 * @throws SystemException if a system exception occurred 466 */ 467 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototypes 481 * @param end the upper bound of the range of layout 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 prototypes 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototype 502 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 503 * @throws SystemException if a system exception occurred 504 */ 505 public com.liferay.portal.model.LayoutPrototype findByC_A_First( 506 long companyId, boolean active, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.NoSuchLayoutPrototypeException, 509 com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns the last layout 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 prototype 522 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found 523 * @throws SystemException if a system exception occurred 524 */ 525 public com.liferay.portal.model.LayoutPrototype findByC_A_Last( 526 long companyId, boolean active, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.NoSuchLayoutPrototypeException, 529 com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns the layout prototypes before and after the current layout 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 layoutPrototypeId the primary key of the current layout 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 prototype 543 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 544 * @throws SystemException if a system exception occurred 545 */ 546 public com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext( 547 long layoutPrototypeId, long companyId, boolean active, 548 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 549 throws com.liferay.portal.NoSuchLayoutPrototypeException, 550 com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns all the layout 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 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.LayoutPrototype> 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 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 prototypes 574 * @param end the upper bound of the range of layout prototypes (not inclusive) 575 * @return the range of matching layout 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.LayoutPrototype> 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 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 prototypes 592 * @param end the upper bound of the range of layout 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 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.LayoutPrototype> 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 prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ? and active = ?. 604 * 605 * @param layoutPrototypeId the primary key of the current layout 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 prototype 610 * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public com.liferay.portal.model.LayoutPrototype[] filterFindByC_A_PrevAndNext( 614 long layoutPrototypeId, long companyId, boolean active, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.NoSuchLayoutPrototypeException, 617 com.liferay.portal.kernel.exception.SystemException; 618 619 /** 620 * Returns all the layout prototypes. 621 * 622 * @return the layout prototypes 623 * @throws SystemException if a system exception occurred 624 */ 625 public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll() 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns a range of all the layout 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 prototypes 636 * @param end the upper bound of the range of layout prototypes (not inclusive) 637 * @return the range of layout prototypes 638 * @throws SystemException if a system exception occurred 639 */ 640 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 prototypes 652 * @param end the upper bound of the range of layout prototypes (not inclusive) 653 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 654 * @return the ordered range of layout prototypes 655 * @throws SystemException if a system exception occurred 656 */ 657 public java.util.List<com.liferay.portal.model.LayoutPrototype> 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 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 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 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 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 prototypes where uuid = ?. 700 * 701 * @param uuid the uuid 702 * @return the number of matching layout 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 prototypes that the user has permission to view where uuid = ?. 710 * 711 * @param uuid the uuid 712 * @return the number of matching layout 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 prototypes where companyId = ?. 720 * 721 * @param companyId the company ID 722 * @return the number of matching layout 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 prototypes that the user has permission to view where companyId = ?. 730 * 731 * @param companyId the company ID 732 * @return the number of matching layout 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 prototypes where companyId = ? and active = ?. 740 * 741 * @param companyId the company ID 742 * @param active the active 743 * @return the number of matching layout 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 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 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 prototypes. 762 * 763 * @return the number of layout prototypes 764 * @throws SystemException if a system exception occurred 765 */ 766 public int countAll() 767 throws com.liferay.portal.kernel.exception.SystemException; 768 769 public LayoutPrototype remove(LayoutPrototype layoutPrototype) 770 throws SystemException; 771 }