001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 to cache 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 to cache 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the s c licenses where active = ?. 110 * 111 * @param active the active to search with 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 * Finds 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 to search with 127 * @param start the lower bound of the range of s c licenses to return 128 * @param end the upper bound of the range of s c licenses to return (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 * Finds 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 to search with 144 * @param start the lower bound of the range of s c licenses to return 145 * @param end the upper bound of the range of s c licenses to return (not inclusive) 146 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 163 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 182 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 202 * @param orderByComparator the comparator to order the set by 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 * Filters by the user's permissions and finds all the s c licenses where active = ?. 215 * 216 * @param active the active to search with 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 * Filters by the user's permissions and finds a range of all the s c licenses 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 to search with 232 * @param start the lower bound of the range of s c licenses to return 233 * @param end the upper bound of the range of s c licenses to return (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 * Filters by the user's permissions and finds an ordered range of all the s c licenses 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 to search with 249 * @param start the lower bound of the range of s c licenses to return 250 * @param end the upper bound of the range of s c licenses to return (not inclusive) 251 * @param orderByComparator the comparator to order the results by 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 * Filters the s c licenses before and after the current s c license in the ordered set where active = ?. 262 * 263 * <p> 264 * 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. 265 * </p> 266 * 267 * @param licenseId the primary key of the current s c license 268 * @param active the active to search with 269 * @param orderByComparator the comparator to order the set by 270 * @return the previous, current, and next s c license 271 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 272 * @throws SystemException if a system exception occurred 273 */ 274 public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByActive_PrevAndNext( 275 long licenseId, boolean active, 276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 277 throws com.liferay.portal.kernel.exception.SystemException, 278 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 279 280 /** 281 * Finds all the s c licenses where active = ? and recommended = ?. 282 * 283 * @param active the active to search with 284 * @param recommended the recommended to search with 285 * @return the matching s c licenses 286 * @throws SystemException if a system exception occurred 287 */ 288 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 289 boolean active, boolean recommended) 290 throws com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Finds a range of all the s c licenses where active = ? and recommended = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param active the active to search with 300 * @param recommended the recommended to search with 301 * @param start the lower bound of the range of s c licenses to return 302 * @param end the upper bound of the range of s c licenses to return (not inclusive) 303 * @return the range of matching s c licenses 304 * @throws SystemException if a system exception occurred 305 */ 306 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 307 boolean active, boolean recommended, int start, int end) 308 throws com.liferay.portal.kernel.exception.SystemException; 309 310 /** 311 * Finds an ordered range of all the s c licenses where active = ? and recommended = ?. 312 * 313 * <p> 314 * 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. 315 * </p> 316 * 317 * @param active the active to search with 318 * @param recommended the recommended to search with 319 * @param start the lower bound of the range of s c licenses to return 320 * @param end the upper bound of the range of s c licenses to return (not inclusive) 321 * @param orderByComparator the comparator to order the results by 322 * @return the ordered range of matching s c licenses 323 * @throws SystemException if a system exception occurred 324 */ 325 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R( 326 boolean active, boolean recommended, int start, int end, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException; 329 330 /** 331 * Finds the first s c license in the ordered set where active = ? and recommended = ?. 332 * 333 * <p> 334 * 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. 335 * </p> 336 * 337 * @param active the active to search with 338 * @param recommended the recommended to search with 339 * @param orderByComparator the comparator to order the set by 340 * @return the first matching s c license 341 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First( 345 boolean active, boolean recommended, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.kernel.exception.SystemException, 348 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 349 350 /** 351 * Finds the last s c license in the ordered set where active = ? and recommended = ?. 352 * 353 * <p> 354 * 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. 355 * </p> 356 * 357 * @param active the active to search with 358 * @param recommended the recommended to search with 359 * @param orderByComparator the comparator to order the set by 360 * @return the last matching s c license 361 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found 362 * @throws SystemException if a system exception occurred 363 */ 364 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last( 365 boolean active, boolean recommended, 366 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 367 throws com.liferay.portal.kernel.exception.SystemException, 368 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 369 370 /** 371 * Finds the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param licenseId the primary key of the current s c license 378 * @param active the active to search with 379 * @param recommended the recommended to search with 380 * @param orderByComparator the comparator to order the set by 381 * @return the previous, current, and next s c license 382 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext( 386 long licenseId, boolean active, boolean recommended, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException, 389 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 390 391 /** 392 * Filters by the user's permissions and finds all the s c licenses where active = ? and recommended = ?. 393 * 394 * @param active the active to search with 395 * @param recommended the recommended to search with 396 * @return the matching s c licenses that the user has permission to view 397 * @throws SystemException if a system exception occurred 398 */ 399 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R( 400 boolean active, boolean recommended) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Filters by the user's permissions and finds a range of all the s c licenses where active = ? and recommended = ?. 405 * 406 * <p> 407 * 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. 408 * </p> 409 * 410 * @param active the active to search with 411 * @param recommended the recommended to search with 412 * @param start the lower bound of the range of s c licenses to return 413 * @param end the upper bound of the range of s c licenses to return (not inclusive) 414 * @return the range of matching s c licenses that the user has permission to view 415 * @throws SystemException if a system exception occurred 416 */ 417 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R( 418 boolean active, boolean recommended, int start, int end) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Filters by the user's permissions and finds an ordered range of all the s c licenses where active = ? and recommended = ?. 423 * 424 * <p> 425 * 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. 426 * </p> 427 * 428 * @param active the active to search with 429 * @param recommended the recommended to search with 430 * @param start the lower bound of the range of s c licenses to return 431 * @param end the upper bound of the range of s c licenses to return (not inclusive) 432 * @param orderByComparator the comparator to order the results by 433 * @return the ordered range of matching s c licenses that the user has permission to view 434 * @throws SystemException if a system exception occurred 435 */ 436 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R( 437 boolean active, boolean recommended, int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Filters the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?. 443 * 444 * <p> 445 * 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. 446 * </p> 447 * 448 * @param licenseId the primary key of the current s c license 449 * @param active the active to search with 450 * @param recommended the recommended to search with 451 * @param orderByComparator the comparator to order the set by 452 * @return the previous, current, and next s c license 453 * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found 454 * @throws SystemException if a system exception occurred 455 */ 456 public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByA_R_PrevAndNext( 457 long licenseId, boolean active, boolean recommended, 458 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 459 throws com.liferay.portal.kernel.exception.SystemException, 460 com.liferay.portlet.softwarecatalog.NoSuchLicenseException; 461 462 /** 463 * Finds all the s c licenses. 464 * 465 * @return the s c licenses 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll() 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Finds a range of all the s c licenses. 473 * 474 * <p> 475 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 476 * </p> 477 * 478 * @param start the lower bound of the range of s c licenses to return 479 * @param end the upper bound of the range of s c licenses to return (not inclusive) 480 * @return the range of s c licenses 481 * @throws SystemException if a system exception occurred 482 */ 483 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll( 484 int start, int end) 485 throws com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Finds an ordered range of all the s c licenses. 489 * 490 * <p> 491 * 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. 492 * </p> 493 * 494 * @param start the lower bound of the range of s c licenses to return 495 * @param end the upper bound of the range of s c licenses to return (not inclusive) 496 * @param orderByComparator the comparator to order the results by 497 * @return the ordered range of s c licenses 498 * @throws SystemException if a system exception occurred 499 */ 500 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll( 501 int start, int end, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.kernel.exception.SystemException; 504 505 /** 506 * Removes all the s c licenses where active = ? from the database. 507 * 508 * @param active the active to search with 509 * @throws SystemException if a system exception occurred 510 */ 511 public void removeByActive(boolean active) 512 throws com.liferay.portal.kernel.exception.SystemException; 513 514 /** 515 * Removes all the s c licenses where active = ? and recommended = ? from the database. 516 * 517 * @param active the active to search with 518 * @param recommended the recommended to search with 519 * @throws SystemException if a system exception occurred 520 */ 521 public void removeByA_R(boolean active, boolean recommended) 522 throws com.liferay.portal.kernel.exception.SystemException; 523 524 /** 525 * Removes all the s c licenses from the database. 526 * 527 * @throws SystemException if a system exception occurred 528 */ 529 public void removeAll() 530 throws com.liferay.portal.kernel.exception.SystemException; 531 532 /** 533 * Counts all the s c licenses where active = ?. 534 * 535 * @param active the active to search with 536 * @return the number of matching s c licenses 537 * @throws SystemException if a system exception occurred 538 */ 539 public int countByActive(boolean active) 540 throws com.liferay.portal.kernel.exception.SystemException; 541 542 /** 543 * Filters by the user's permissions and counts all the s c licenses where active = ?. 544 * 545 * @param active the active to search with 546 * @return the number of matching s c licenses that the user has permission to view 547 * @throws SystemException if a system exception occurred 548 */ 549 public int filterCountByActive(boolean active) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Counts all the s c licenses where active = ? and recommended = ?. 554 * 555 * @param active the active to search with 556 * @param recommended the recommended to search with 557 * @return the number of matching s c licenses 558 * @throws SystemException if a system exception occurred 559 */ 560 public int countByA_R(boolean active, boolean recommended) 561 throws com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Filters by the user's permissions and counts all the s c licenses where active = ? and recommended = ?. 565 * 566 * @param active the active to search with 567 * @param recommended the recommended to search with 568 * @return the number of matching s c licenses that the user has permission to view 569 * @throws SystemException if a system exception occurred 570 */ 571 public int filterCountByA_R(boolean active, boolean recommended) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Counts all the s c licenses. 576 * 577 * @return the number of s c licenses 578 * @throws SystemException if a system exception occurred 579 */ 580 public int countAll() 581 throws com.liferay.portal.kernel.exception.SystemException; 582 583 /** 584 * Gets all the s c product entries associated with the s c license. 585 * 586 * @param pk the primary key of the s c license to get the associated s c product entries for 587 * @return the s c product entries associated with the s c license 588 * @throws SystemException if a system exception occurred 589 */ 590 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 591 long pk) throws com.liferay.portal.kernel.exception.SystemException; 592 593 /** 594 * Gets a range of all the s c product entries associated with the s c license. 595 * 596 * <p> 597 * 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. 598 * </p> 599 * 600 * @param pk the primary key of the s c license to get the associated s c product entries for 601 * @param start the lower bound of the range of s c licenses to return 602 * @param end the upper bound of the range of s c licenses to return (not inclusive) 603 * @return the range of s c product entries associated with the s c license 604 * @throws SystemException if a system exception occurred 605 */ 606 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 607 long pk, int start, int end) 608 throws com.liferay.portal.kernel.exception.SystemException; 609 610 /** 611 * Gets an ordered range of all the s c product entries associated with the s c license. 612 * 613 * <p> 614 * 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. 615 * </p> 616 * 617 * @param pk the primary key of the s c license to get the associated s c product entries for 618 * @param start the lower bound of the range of s c licenses to return 619 * @param end the upper bound of the range of s c licenses to return (not inclusive) 620 * @param orderByComparator the comparator to order the results by 621 * @return the ordered range of s c product entries associated with the s c license 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries( 625 long pk, int start, int end, 626 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 627 throws com.liferay.portal.kernel.exception.SystemException; 628 629 /** 630 * Gets the number of s c product entries associated with the s c license. 631 * 632 * @param pk the primary key of the s c license to get the number of associated s c product entries for 633 * @return the number of s c product entries associated with the s c license 634 * @throws SystemException if a system exception occurred 635 */ 636 public int getSCProductEntriesSize(long pk) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Determines if the s c product entry is associated with the s c license. 641 * 642 * @param pk the primary key of the s c license 643 * @param scProductEntryPK the primary key of the s c product entry 644 * @return <code>true</code> if the s c product entry is associated with the s c license; <code>false</code> otherwise 645 * @throws SystemException if a system exception occurred 646 */ 647 public boolean containsSCProductEntry(long pk, long scProductEntryPK) 648 throws com.liferay.portal.kernel.exception.SystemException; 649 650 /** 651 * Determines if the s c license has any s c product entries associated with it. 652 * 653 * @param pk the primary key of the s c license to check for associations with s c product entries 654 * @return <code>true</code> if the s c license has any s c product entries associated with it; <code>false</code> otherwise 655 * @throws SystemException if a system exception occurred 656 */ 657 public boolean containsSCProductEntries(long pk) 658 throws com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * 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. 662 * 663 * @param pk the primary key of the s c license 664 * @param scProductEntryPK the primary key of the s c product entry 665 * @throws SystemException if a system exception occurred 666 */ 667 public void addSCProductEntry(long pk, long scProductEntryPK) 668 throws com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * 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. 672 * 673 * @param pk the primary key of the s c license 674 * @param scProductEntry the s c product entry 675 * @throws SystemException if a system exception occurred 676 */ 677 public void addSCProductEntry(long pk, 678 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 679 throws com.liferay.portal.kernel.exception.SystemException; 680 681 /** 682 * 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. 683 * 684 * @param pk the primary key of the s c license 685 * @param scProductEntryPKs the primary keys of the s c product entries 686 * @throws SystemException if a system exception occurred 687 */ 688 public void addSCProductEntries(long pk, long[] scProductEntryPKs) 689 throws com.liferay.portal.kernel.exception.SystemException; 690 691 /** 692 * 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. 693 * 694 * @param pk the primary key of the s c license 695 * @param scProductEntries the s c product entries 696 * @throws SystemException if a system exception occurred 697 */ 698 public void addSCProductEntries(long pk, 699 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 700 throws com.liferay.portal.kernel.exception.SystemException; 701 702 /** 703 * 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. 704 * 705 * @param pk the primary key of the s c license to clear the associated s c product entries from 706 * @throws SystemException if a system exception occurred 707 */ 708 public void clearSCProductEntries(long pk) 709 throws com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * 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. 713 * 714 * @param pk the primary key of the s c license 715 * @param scProductEntryPK the primary key of the s c product entry 716 * @throws SystemException if a system exception occurred 717 */ 718 public void removeSCProductEntry(long pk, long scProductEntryPK) 719 throws com.liferay.portal.kernel.exception.SystemException; 720 721 /** 722 * 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. 723 * 724 * @param pk the primary key of the s c license 725 * @param scProductEntry the s c product entry 726 * @throws SystemException if a system exception occurred 727 */ 728 public void removeSCProductEntry(long pk, 729 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 730 throws com.liferay.portal.kernel.exception.SystemException; 731 732 /** 733 * 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. 734 * 735 * @param pk the primary key of the s c license 736 * @param scProductEntryPKs the primary keys of the s c product entries 737 * @throws SystemException if a system exception occurred 738 */ 739 public void removeSCProductEntries(long pk, long[] scProductEntryPKs) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * 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. 744 * 745 * @param pk the primary key of the s c license 746 * @param scProductEntries the s c product entries 747 * @throws SystemException if a system exception occurred 748 */ 749 public void removeSCProductEntries(long pk, 750 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 751 throws com.liferay.portal.kernel.exception.SystemException; 752 753 /** 754 * 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. 755 * 756 * @param pk the primary key of the s c license to set the associations for 757 * @param scProductEntryPKs the primary keys of the s c product entries to be associated with the s c license 758 * @throws SystemException if a system exception occurred 759 */ 760 public void setSCProductEntries(long pk, long[] scProductEntryPKs) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * 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. 765 * 766 * @param pk the primary key of the s c license to set the associations for 767 * @param scProductEntries the s c product entries to be associated with the s c license 768 * @throws SystemException if a system exception occurred 769 */ 770 public void setSCProductEntries(long pk, 771 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 public SCLicense remove(SCLicense scLicense) throws SystemException; 775 }