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