001 /** 002 * Copyright (c) 2000-2010 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 this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 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 * Caches the s c license in the entity cache if it is enabled. 036 * 037 * @param scLicense the s c license to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense); 041 042 /** 043 * Caches the s c licenses in the entity cache if it is enabled. 044 * 045 * @param scLicenses the s c licenses to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses); 049 050 /** 051 * Creates a new s c license with the primary key. 052 * 053 * @param licenseId the primary key for the new s c license 054 * @return the new s c license 055 */ 056 public com.liferay.portlet.softwarecatalog.model.SCLicense create( 057 long licenseId); 058 059 /** 060 * Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param licenseId the primary key of the s c license to remove 063 * @return the s c license that was removed 064 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.softwarecatalog.model.SCLicense remove( 068 long licenseId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 071 072 public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl( 073 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the s c license with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchLicenseException} if it could not be found. 079 * 080 * @param licenseId the primary key of the s c license to find 081 * @return the s c license 082 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey( 086 long licenseId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 089 090 /** 091 * Finds the s c license with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param licenseId the primary key of the s c license to find 094 * @return the s c license, or <code>null</code> if a s c license with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey( 098 long licenseId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the s c licenses where active = ?. 103 * 104 * @param active the active to search with 105 * @return the matching s c licenses 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive( 109 boolean active) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Finds a range of all the s c licenses where active = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param active the active to search with 120 * @param start the lower bound of the range of s c licenses to return 121 * @param end the upper bound of the range of s c licenses to return (not inclusive) 122 * @return the range of matching s c licenses 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive( 126 boolean active, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Finds an ordered range of all the s c licenses where active = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param active the active to search with 137 * @param start the lower bound of the range of s c licenses to return 138 * @param end the upper bound of the range of s c licenses to return (not inclusive) 139 * @param orderByComparator the comparator to order the results by 140 * @return the ordered range of matching s c licenses 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive( 144 boolean active, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Finds the first s c license in the ordered set where active = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param active the active to search with 156 * @param orderByComparator the comparator to order the set by 157 * @return the first matching s c license 158 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First( 162 boolean active, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 166 167 /** 168 * Finds the last s c license in the ordered set where active = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param active the active to search with 175 * @param orderByComparator the comparator to order the set by 176 * @return the last matching s c license 177 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last( 181 boolean active, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 185 186 /** 187 * Finds the s c licenses before and after the current s c license in the ordered set where active = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param licenseId the primary key of the current s c license 194 * @param active the active to search with 195 * @param orderByComparator the comparator to order the set by 196 * @return the previous, current, and next s c license 197 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext( 201 long licenseId, boolean active, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 205 206 /** 207 * Finds all the s c licenses where active = ? and recommended = ?. 208 * 209 * @param active the active to search with 210 * @param recommended the recommended to search with 211 * @return the matching s c licenses 212 * @throws SystemException if a system exception occurred 213 */ 214 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 215 boolean active, boolean recommended) 216 throws com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Finds a range of all the s c licenses where active = ? and recommended = ?. 220 * 221 * <p> 222 * 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. 223 * </p> 224 * 225 * @param active the active to search with 226 * @param recommended the recommended to search with 227 * @param start the lower bound of the range of s c licenses to return 228 * @param end the upper bound of the range of s c licenses to return (not inclusive) 229 * @return the range of matching s c licenses 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 233 boolean active, boolean recommended, int start, int end) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Finds an ordered range of all the s c licenses where active = ? and recommended = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param active the active to search with 244 * @param recommended the recommended to search with 245 * @param start the lower bound of the range of s c licenses to return 246 * @param end the upper bound of the range of s c licenses to return (not inclusive) 247 * @param orderByComparator the comparator to order the results by 248 * @return the ordered range of matching s c licenses 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 252 boolean active, boolean recommended, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Finds the first s c license in the ordered set where active = ? and recommended = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param active the active to search with 264 * @param recommended the recommended to search with 265 * @param orderByComparator the comparator to order the set by 266 * @return the first matching s c license 267 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First( 271 boolean active, boolean recommended, 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 * Finds the last s c license in the ordered set where active = ? and recommended = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param active the active to search with 284 * @param recommended the recommended to search with 285 * @param orderByComparator the comparator to order the set by 286 * @return the last matching s c license 287 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last( 291 boolean active, boolean recommended, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 295 296 /** 297 * Finds the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?. 298 * 299 * <p> 300 * 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. 301 * </p> 302 * 303 * @param licenseId the primary key of the current s c license 304 * @param active the active to search with 305 * @param recommended the recommended to search with 306 * @param orderByComparator the comparator to order the set by 307 * @return the previous, current, and next s c license 308 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext( 312 long licenseId, boolean active, boolean recommended, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 316 317 /** 318 * Finds all the s c licenses. 319 * 320 * @return the s c licenses 321 * @throws SystemException if a system exception occurred 322 */ 323 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll() 324 throws com.liferay.portal.kernel.exception.SystemException; 325 326 /** 327 * Finds a range of all the s c licenses. 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 start the lower bound of the range of s c licenses to return 334 * @param end the upper bound of the range of s c licenses to return (not inclusive) 335 * @return the range of s c licenses 336 * @throws SystemException if a system exception occurred 337 */ 338 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll( 339 int start, int end) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Finds an ordered range of all the s c licenses. 344 * 345 * <p> 346 * 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. 347 * </p> 348 * 349 * @param start the lower bound of the range of s c licenses to return 350 * @param end the upper bound of the range of s c licenses to return (not inclusive) 351 * @param orderByComparator the comparator to order the results by 352 * @return the ordered range of s c licenses 353 * @throws SystemException if a system exception occurred 354 */ 355 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll( 356 int start, int end, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Removes all the s c licenses where active = ? from the database. 362 * 363 * @param active the active to search with 364 * @throws SystemException if a system exception occurred 365 */ 366 public void removeByActive(boolean active) 367 throws com.liferay.portal.kernel.exception.SystemException; 368 369 /** 370 * Removes all the s c licenses where active = ? and recommended = ? from the database. 371 * 372 * @param active the active to search with 373 * @param recommended the recommended to search with 374 * @throws SystemException if a system exception occurred 375 */ 376 public void removeByA_R(boolean active, boolean recommended) 377 throws com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Removes all the s c licenses from the database. 381 * 382 * @throws SystemException if a system exception occurred 383 */ 384 public void removeAll() 385 throws com.liferay.portal.kernel.exception.SystemException; 386 387 /** 388 * Counts all the s c licenses where active = ?. 389 * 390 * @param active the active to search with 391 * @return the number of matching s c licenses 392 * @throws SystemException if a system exception occurred 393 */ 394 public int countByActive(boolean active) 395 throws com.liferay.portal.kernel.exception.SystemException; 396 397 /** 398 * Counts all the s c licenses where active = ? and recommended = ?. 399 * 400 * @param active the active to search with 401 * @param recommended the recommended to search with 402 * @return the number of matching s c licenses 403 * @throws SystemException if a system exception occurred 404 */ 405 public int countByA_R(boolean active, boolean recommended) 406 throws com.liferay.portal.kernel.exception.SystemException; 407 408 /** 409 * Counts all the s c licenses. 410 * 411 * @return the number of s c licenses 412 * @throws SystemException if a system exception occurred 413 */ 414 public int countAll() 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Gets all the s c product entries associated with the s c license. 419 * 420 * @param pk the primary key of the s c license to get the associated s c product entries for 421 * @return the s c product entries associated with the s c license 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 425 long pk) throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Gets a range of all the s c product entries associated with the s c license. 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 pk the primary key of the s c license to get the associated s c product entries for 435 * @param start the lower bound of the range of s c licenses to return 436 * @param end the upper bound of the range of s c licenses to return (not inclusive) 437 * @return the range of s c product entries associated with the s c license 438 * @throws SystemException if a system exception occurred 439 */ 440 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 441 long pk, int start, int end) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Gets an ordered range of all the s c product entries associated with the s c license. 446 * 447 * <p> 448 * 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. 449 * </p> 450 * 451 * @param pk the primary key of the s c license to get the associated s c product entries for 452 * @param start the lower bound of the range of s c licenses to return 453 * @param end the upper bound of the range of s c licenses to return (not inclusive) 454 * @param orderByComparator the comparator to order the results by 455 * @return the ordered range of s c product entries associated with the s c license 456 * @throws SystemException if a system exception occurred 457 */ 458 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 459 long pk, int start, int end, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * Gets the number of s c product entries associated with the s c license. 465 * 466 * @param pk the primary key of the s c license to get the number of associated s c product entries for 467 * @return the number of s c product entries associated with the s c license 468 * @throws SystemException if a system exception occurred 469 */ 470 public int getSCProductEntriesSize(long pk) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Determines whether the s c product entry is associated with the s c license. 475 * 476 * @param pk the primary key of the s c license 477 * @param scProductEntryPK the primary key of the s c product entry 478 * @return whether the s c product entry is associated with the s c license 479 * @throws SystemException if a system exception occurred 480 */ 481 public boolean containsSCProductEntry(long pk, long scProductEntryPK) 482 throws com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Determines whether the s c license has any s c product entries associated with it. 486 * 487 * @param pk the primary key of the s c license to check for associations with s c product entries 488 * @return whether the s c license has any s c product entries associated with it 489 * @throws SystemException if a system exception occurred 490 */ 491 public boolean containsSCProductEntries(long pk) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * 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. 496 * 497 * @param pk the primary key of the s c license 498 * @param scProductEntryPK the primary key of the s c product entry 499 * @throws SystemException if a system exception occurred 500 */ 501 public void addSCProductEntry(long pk, long scProductEntryPK) 502 throws com.liferay.portal.kernel.exception.SystemException; 503 504 /** 505 * 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. 506 * 507 * @param pk the primary key of the s c license 508 * @param scProductEntry the s c product entry 509 * @throws SystemException if a system exception occurred 510 */ 511 public void addSCProductEntry(long pk, 512 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 513 throws com.liferay.portal.kernel.exception.SystemException; 514 515 /** 516 * 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. 517 * 518 * @param pk the primary key of the s c license 519 * @param scProductEntryPKs the primary keys of the s c product entries 520 * @throws SystemException if a system exception occurred 521 */ 522 public void addSCProductEntries(long pk, long[] scProductEntryPKs) 523 throws com.liferay.portal.kernel.exception.SystemException; 524 525 /** 526 * 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. 527 * 528 * @param pk the primary key of the s c license 529 * @param scProductEntries the s c product entries 530 * @throws SystemException if a system exception occurred 531 */ 532 public void addSCProductEntries(long pk, 533 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * 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. 538 * 539 * @param pk the primary key of the s c license to clear the associated s c product entries from 540 * @throws SystemException if a system exception occurred 541 */ 542 public void clearSCProductEntries(long pk) 543 throws com.liferay.portal.kernel.exception.SystemException; 544 545 /** 546 * 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. 547 * 548 * @param pk the primary key of the s c license 549 * @param scProductEntryPK the primary key of the s c product entry 550 * @throws SystemException if a system exception occurred 551 */ 552 public void removeSCProductEntry(long pk, long scProductEntryPK) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * 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. 557 * 558 * @param pk the primary key of the s c license 559 * @param scProductEntry the s c product entry 560 * @throws SystemException if a system exception occurred 561 */ 562 public void removeSCProductEntry(long pk, 563 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 564 throws com.liferay.portal.kernel.exception.SystemException; 565 566 /** 567 * 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. 568 * 569 * @param pk the primary key of the s c license 570 * @param scProductEntryPKs the primary keys of the s c product entries 571 * @throws SystemException if a system exception occurred 572 */ 573 public void removeSCProductEntries(long pk, long[] scProductEntryPKs) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * 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. 578 * 579 * @param pk the primary key of the s c license 580 * @param scProductEntries the s c product entries 581 * @throws SystemException if a system exception occurred 582 */ 583 public void removeSCProductEntries(long pk, 584 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * 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. 589 * 590 * @param pk the primary key of the s c license to set the associations for 591 * @param scProductEntryPKs the primary keys of the s c product entries to be associated with the s c license 592 * @throws SystemException if a system exception occurred 593 */ 594 public void setSCProductEntries(long pk, long[] scProductEntryPKs) 595 throws com.liferay.portal.kernel.exception.SystemException; 596 597 /** 598 * 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. 599 * 600 * @param pk the primary key of the s c license to set the associations for 601 * @param scProductEntries the s c product entries to be associated with the s c license 602 * @throws SystemException if a system exception occurred 603 */ 604 public void setSCProductEntries(long pk, 605 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 }