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