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