001 /** 002 * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.softwarecatalog.model.SCProductEntry; 022 023 /** 024 * The persistence interface for the s c product entry service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see SCProductEntryPersistenceImpl 032 * @see SCProductEntryUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface SCProductEntryPersistence extends BasePersistence<SCProductEntry> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link SCProductEntryUtil} to access the s c product entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the s c product entries where groupId = ?. 045 * 046 * @param groupId the group ID 047 * @return the matching s c product entries 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 051 long groupId) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the s c product entries where groupId = ?. 056 * 057 * <p> 058 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 059 * </p> 060 * 061 * @param groupId the group ID 062 * @param start the lower bound of the range of s c product entries 063 * @param end the upper bound of the range of s c product entries (not inclusive) 064 * @return the range of matching s c product entries 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 068 long groupId, int start, int end) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Returns an ordered range of all the s c product entries where groupId = ?. 073 * 074 * <p> 075 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 076 * </p> 077 * 078 * @param groupId the group ID 079 * @param start the lower bound of the range of s c product entries 080 * @param end the upper bound of the range of s c product entries (not inclusive) 081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 082 * @return the ordered range of matching s c product entries 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 086 long groupId, int start, int end, 087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 088 throws com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the first s c product entry in the ordered set where groupId = ?. 092 * 093 * @param groupId the group ID 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching s c product entry 096 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First( 100 long groupId, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 104 105 /** 106 * Returns the first s c product entry in the ordered set where groupId = ?. 107 * 108 * @param groupId the group ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByGroupId_First( 114 long groupId, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last s c product entry in the ordered set where groupId = ?. 120 * 121 * @param groupId the group ID 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching s c product entry 124 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last( 128 long groupId, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 132 133 /** 134 * Returns the last s c product entry in the ordered set where groupId = ?. 135 * 136 * @param groupId the group ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByGroupId_Last( 142 long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ?. 148 * 149 * @param productEntryId the primary key of the current s c product entry 150 * @param groupId the group ID 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next s c product entry 153 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext( 157 long productEntryId, long groupId, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 161 162 /** 163 * Returns all the s c product entries that the user has permission to view where groupId = ?. 164 * 165 * @param groupId the group ID 166 * @return the matching s c product entries that the user has permission to view 167 * @throws SystemException if a system exception occurred 168 */ 169 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 170 long groupId) 171 throws com.liferay.portal.kernel.exception.SystemException; 172 173 /** 174 * Returns a range of all the s c product entries that the user has permission to view where groupId = ?. 175 * 176 * <p> 177 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 178 * </p> 179 * 180 * @param groupId the group ID 181 * @param start the lower bound of the range of s c product entries 182 * @param end the upper bound of the range of s c product entries (not inclusive) 183 * @return the range of matching s c product entries that the user has permission to view 184 * @throws SystemException if a system exception occurred 185 */ 186 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 187 long groupId, int start, int end) 188 throws com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 195 * </p> 196 * 197 * @param groupId the group ID 198 * @param start the lower bound of the range of s c product entries 199 * @param end the upper bound of the range of s c product entries (not inclusive) 200 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 201 * @return the ordered range of matching s c product entries that the user has permission to view 202 * @throws SystemException if a system exception occurred 203 */ 204 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 205 long groupId, int start, int end, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ?. 211 * 212 * @param productEntryId the primary key of the current s c product entry 213 * @param groupId the group ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next s c product entry 216 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByGroupId_PrevAndNext( 220 long productEntryId, long groupId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 224 225 /** 226 * Removes all the s c product entries where groupId = ? from the database. 227 * 228 * @param groupId the group ID 229 * @throws SystemException if a system exception occurred 230 */ 231 public void removeByGroupId(long groupId) 232 throws com.liferay.portal.kernel.exception.SystemException; 233 234 /** 235 * Returns the number of s c product entries where groupId = ?. 236 * 237 * @param groupId the group ID 238 * @return the number of matching s c product entries 239 * @throws SystemException if a system exception occurred 240 */ 241 public int countByGroupId(long groupId) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Returns the number of s c product entries that the user has permission to view where groupId = ?. 246 * 247 * @param groupId the group ID 248 * @return the number of matching s c product entries that the user has permission to view 249 * @throws SystemException if a system exception occurred 250 */ 251 public int filterCountByGroupId(long groupId) 252 throws com.liferay.portal.kernel.exception.SystemException; 253 254 /** 255 * Returns all the s c product entries where companyId = ?. 256 * 257 * @param companyId the company ID 258 * @return the matching s c product entries 259 * @throws SystemException if a system exception occurred 260 */ 261 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 262 long companyId) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns a range of all the s c product entries where companyId = ?. 267 * 268 * <p> 269 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 270 * </p> 271 * 272 * @param companyId the company ID 273 * @param start the lower bound of the range of s c product entries 274 * @param end the upper bound of the range of s c product entries (not inclusive) 275 * @return the range of matching s c product entries 276 * @throws SystemException if a system exception occurred 277 */ 278 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 279 long companyId, int start, int end) 280 throws com.liferay.portal.kernel.exception.SystemException; 281 282 /** 283 * Returns an ordered range of all the s c product entries where companyId = ?. 284 * 285 * <p> 286 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 287 * </p> 288 * 289 * @param companyId the company ID 290 * @param start the lower bound of the range of s c product entries 291 * @param end the upper bound of the range of s c product entries (not inclusive) 292 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 293 * @return the ordered range of matching s c product entries 294 * @throws SystemException if a system exception occurred 295 */ 296 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 297 long companyId, int start, int end, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.kernel.exception.SystemException; 300 301 /** 302 * Returns the first s c product entry in the ordered set where companyId = ?. 303 * 304 * @param companyId the company ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the first matching s c product entry 307 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First( 311 long companyId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException, 314 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 315 316 /** 317 * Returns the first s c product entry in the ordered set where companyId = ?. 318 * 319 * @param companyId the company ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByCompanyId_First( 325 long companyId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException; 328 329 /** 330 * Returns the last s c product entry in the ordered set where companyId = ?. 331 * 332 * @param companyId the company ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the last matching s c product entry 335 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last( 339 long companyId, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 343 344 /** 345 * Returns the last s c product entry in the ordered set where companyId = ?. 346 * 347 * @param companyId the company ID 348 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 349 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByCompanyId_Last( 353 long companyId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Returns the s c product entries before and after the current s c product entry in the ordered set where companyId = ?. 359 * 360 * @param productEntryId the primary key of the current s c product entry 361 * @param companyId the company ID 362 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 363 * @return the previous, current, and next s c product entry 364 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 365 * @throws SystemException if a system exception occurred 366 */ 367 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext( 368 long productEntryId, long companyId, 369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 370 throws com.liferay.portal.kernel.exception.SystemException, 371 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 372 373 /** 374 * Removes all the s c product entries where companyId = ? from the database. 375 * 376 * @param companyId the company ID 377 * @throws SystemException if a system exception occurred 378 */ 379 public void removeByCompanyId(long companyId) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns the number of s c product entries where companyId = ?. 384 * 385 * @param companyId the company ID 386 * @return the number of matching s c product entries 387 * @throws SystemException if a system exception occurred 388 */ 389 public int countByCompanyId(long companyId) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns all the s c product entries where groupId = ? and userId = ?. 394 * 395 * @param groupId the group ID 396 * @param userId the user ID 397 * @return the matching s c product entries 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U( 401 long groupId, long userId) 402 throws com.liferay.portal.kernel.exception.SystemException; 403 404 /** 405 * Returns a range of all the s c product entries where groupId = ? and userId = ?. 406 * 407 * <p> 408 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 409 * </p> 410 * 411 * @param groupId the group ID 412 * @param userId the user ID 413 * @param start the lower bound of the range of s c product entries 414 * @param end the upper bound of the range of s c product entries (not inclusive) 415 * @return the range of matching s c product entries 416 * @throws SystemException if a system exception occurred 417 */ 418 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U( 419 long groupId, long userId, int start, int end) 420 throws com.liferay.portal.kernel.exception.SystemException; 421 422 /** 423 * Returns an ordered range of all the s c product entries where groupId = ? and userId = ?. 424 * 425 * <p> 426 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 427 * </p> 428 * 429 * @param groupId the group ID 430 * @param userId the user ID 431 * @param start the lower bound of the range of s c product entries 432 * @param end the upper bound of the range of s c product entries (not inclusive) 433 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 434 * @return the ordered range of matching s c product entries 435 * @throws SystemException if a system exception occurred 436 */ 437 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U( 438 long groupId, long userId, int start, int end, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. 444 * 445 * @param groupId the group ID 446 * @param userId the user ID 447 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 448 * @return the first matching s c product entry 449 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 450 * @throws SystemException if a system exception occurred 451 */ 452 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First( 453 long groupId, long userId, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException, 456 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 457 458 /** 459 * Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. 460 * 461 * @param groupId the group ID 462 * @param userId the user ID 463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 464 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByG_U_First( 468 long groupId, long userId, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. 474 * 475 * @param groupId the group ID 476 * @param userId the user ID 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the last matching s c product entry 479 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last( 483 long groupId, long userId, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException, 486 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 487 488 /** 489 * Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. 490 * 491 * @param groupId the group ID 492 * @param userId the user ID 493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 494 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 495 * @throws SystemException if a system exception occurred 496 */ 497 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByG_U_Last( 498 long groupId, long userId, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?. 504 * 505 * @param productEntryId the primary key of the current s c product entry 506 * @param groupId the group ID 507 * @param userId the user ID 508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 509 * @return the previous, current, and next s c product entry 510 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext( 514 long productEntryId, long groupId, long userId, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException, 517 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 518 519 /** 520 * Returns all the s c product entries that the user has permission to view where groupId = ? and userId = ?. 521 * 522 * @param groupId the group ID 523 * @param userId the user ID 524 * @return the matching s c product entries that the user has permission to view 525 * @throws SystemException if a system exception occurred 526 */ 527 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U( 528 long groupId, long userId) 529 throws com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns a range of all the s c product entries that the user has permission to view where groupId = ? and userId = ?. 533 * 534 * <p> 535 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 536 * </p> 537 * 538 * @param groupId the group ID 539 * @param userId the user ID 540 * @param start the lower bound of the range of s c product entries 541 * @param end the upper bound of the range of s c product entries (not inclusive) 542 * @return the range of matching s c product entries that the user has permission to view 543 * @throws SystemException if a system exception occurred 544 */ 545 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U( 546 long groupId, long userId, int start, int end) 547 throws com.liferay.portal.kernel.exception.SystemException; 548 549 /** 550 * Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ? and userId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 554 * </p> 555 * 556 * @param groupId the group ID 557 * @param userId the user ID 558 * @param start the lower bound of the range of s c product entries 559 * @param end the upper bound of the range of s c product entries (not inclusive) 560 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 561 * @return the ordered range of matching s c product entries that the user has permission to view 562 * @throws SystemException if a system exception occurred 563 */ 564 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U( 565 long groupId, long userId, int start, int end, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ? and userId = ?. 571 * 572 * @param productEntryId the primary key of the current s c product entry 573 * @param groupId the group ID 574 * @param userId the user ID 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the previous, current, and next s c product entry 577 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByG_U_PrevAndNext( 581 long productEntryId, long groupId, long userId, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.kernel.exception.SystemException, 584 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 585 586 /** 587 * Removes all the s c product entries where groupId = ? and userId = ? from the database. 588 * 589 * @param groupId the group ID 590 * @param userId the user ID 591 * @throws SystemException if a system exception occurred 592 */ 593 public void removeByG_U(long groupId, long userId) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns the number of s c product entries where groupId = ? and userId = ?. 598 * 599 * @param groupId the group ID 600 * @param userId the user ID 601 * @return the number of matching s c product entries 602 * @throws SystemException if a system exception occurred 603 */ 604 public int countByG_U(long groupId, long userId) 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 /** 608 * Returns the number of s c product entries that the user has permission to view where groupId = ? and userId = ?. 609 * 610 * @param groupId the group ID 611 * @param userId the user ID 612 * @return the number of matching s c product entries that the user has permission to view 613 * @throws SystemException if a system exception occurred 614 */ 615 public int filterCountByG_U(long groupId, long userId) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductEntryException} if it could not be found. 620 * 621 * @param repoGroupId the repo group ID 622 * @param repoArtifactId the repo artifact ID 623 * @return the matching s c product entry 624 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 625 * @throws SystemException if a system exception occurred 626 */ 627 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA( 628 java.lang.String repoGroupId, java.lang.String repoArtifactId) 629 throws com.liferay.portal.kernel.exception.SystemException, 630 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 631 632 /** 633 * Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 634 * 635 * @param repoGroupId the repo group ID 636 * @param repoArtifactId the repo artifact ID 637 * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 638 * @throws SystemException if a system exception occurred 639 */ 640 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA( 641 java.lang.String repoGroupId, java.lang.String repoArtifactId) 642 throws com.liferay.portal.kernel.exception.SystemException; 643 644 /** 645 * Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 646 * 647 * @param repoGroupId the repo group ID 648 * @param repoArtifactId the repo artifact ID 649 * @param retrieveFromCache whether to use the finder cache 650 * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 651 * @throws SystemException if a system exception occurred 652 */ 653 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA( 654 java.lang.String repoGroupId, java.lang.String repoArtifactId, 655 boolean retrieveFromCache) 656 throws com.liferay.portal.kernel.exception.SystemException; 657 658 /** 659 * Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database. 660 * 661 * @param repoGroupId the repo group ID 662 * @param repoArtifactId the repo artifact ID 663 * @return the s c product entry that was removed 664 * @throws SystemException if a system exception occurred 665 */ 666 public com.liferay.portlet.softwarecatalog.model.SCProductEntry removeByRG_RA( 667 java.lang.String repoGroupId, java.lang.String repoArtifactId) 668 throws com.liferay.portal.kernel.exception.SystemException, 669 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 670 671 /** 672 * Returns the number of s c product entries where repoGroupId = ? and repoArtifactId = ?. 673 * 674 * @param repoGroupId the repo group ID 675 * @param repoArtifactId the repo artifact ID 676 * @return the number of matching s c product entries 677 * @throws SystemException if a system exception occurred 678 */ 679 public int countByRG_RA(java.lang.String repoGroupId, 680 java.lang.String repoArtifactId) 681 throws com.liferay.portal.kernel.exception.SystemException; 682 683 /** 684 * Caches the s c product entry in the entity cache if it is enabled. 685 * 686 * @param scProductEntry the s c product entry 687 */ 688 public void cacheResult( 689 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry); 690 691 /** 692 * Caches the s c product entries in the entity cache if it is enabled. 693 * 694 * @param scProductEntries the s c product entries 695 */ 696 public void cacheResult( 697 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries); 698 699 /** 700 * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database. 701 * 702 * @param productEntryId the primary key for the new s c product entry 703 * @return the new s c product entry 704 */ 705 public com.liferay.portlet.softwarecatalog.model.SCProductEntry create( 706 long productEntryId); 707 708 /** 709 * Removes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners. 710 * 711 * @param productEntryId the primary key of the s c product entry 712 * @return the s c product entry that was removed 713 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove( 717 long productEntryId) 718 throws com.liferay.portal.kernel.exception.SystemException, 719 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 720 721 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl( 722 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 723 throws com.liferay.portal.kernel.exception.SystemException; 724 725 /** 726 * Returns the s c product entry with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductEntryException} if it could not be found. 727 * 728 * @param productEntryId the primary key of the s c product entry 729 * @return the s c product entry 730 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey( 734 long productEntryId) 735 throws com.liferay.portal.kernel.exception.SystemException, 736 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 737 738 /** 739 * Returns the s c product entry with the primary key or returns <code>null</code> if it could not be found. 740 * 741 * @param productEntryId the primary key of the s c product entry 742 * @return the s c product entry, or <code>null</code> if a s c product entry with the primary key could not be found 743 * @throws SystemException if a system exception occurred 744 */ 745 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey( 746 long productEntryId) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns all the s c product entries. 751 * 752 * @return the s c product entries 753 * @throws SystemException if a system exception occurred 754 */ 755 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll() 756 throws com.liferay.portal.kernel.exception.SystemException; 757 758 /** 759 * Returns a range of all the s c product entries. 760 * 761 * <p> 762 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 763 * </p> 764 * 765 * @param start the lower bound of the range of s c product entries 766 * @param end the upper bound of the range of s c product entries (not inclusive) 767 * @return the range of s c product entries 768 * @throws SystemException if a system exception occurred 769 */ 770 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll( 771 int start, int end) 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 /** 775 * Returns an ordered range of all the s c product entries. 776 * 777 * <p> 778 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 779 * </p> 780 * 781 * @param start the lower bound of the range of s c product entries 782 * @param end the upper bound of the range of s c product entries (not inclusive) 783 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 784 * @return the ordered range of s c product entries 785 * @throws SystemException if a system exception occurred 786 */ 787 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll( 788 int start, int end, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Removes all the s c product entries from the database. 794 * 795 * @throws SystemException if a system exception occurred 796 */ 797 public void removeAll() 798 throws com.liferay.portal.kernel.exception.SystemException; 799 800 /** 801 * Returns the number of s c product entries. 802 * 803 * @return the number of s c product entries 804 * @throws SystemException if a system exception occurred 805 */ 806 public int countAll() 807 throws com.liferay.portal.kernel.exception.SystemException; 808 809 /** 810 * Returns all the s c licenses associated with the s c product entry. 811 * 812 * @param pk the primary key of the s c product entry 813 * @return the s c licenses associated with the s c product entry 814 * @throws SystemException if a system exception occurred 815 */ 816 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses( 817 long pk) throws com.liferay.portal.kernel.exception.SystemException; 818 819 /** 820 * Returns a range of all the s c licenses associated with the s c product entry. 821 * 822 * <p> 823 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 824 * </p> 825 * 826 * @param pk the primary key of the s c product entry 827 * @param start the lower bound of the range of s c product entries 828 * @param end the upper bound of the range of s c product entries (not inclusive) 829 * @return the range of s c licenses associated with the s c product entry 830 * @throws SystemException if a system exception occurred 831 */ 832 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses( 833 long pk, int start, int end) 834 throws com.liferay.portal.kernel.exception.SystemException; 835 836 /** 837 * Returns an ordered range of all the s c licenses associated with the s c product entry. 838 * 839 * <p> 840 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 841 * </p> 842 * 843 * @param pk the primary key of the s c product entry 844 * @param start the lower bound of the range of s c product entries 845 * @param end the upper bound of the range of s c product entries (not inclusive) 846 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 847 * @return the ordered range of s c licenses associated with the s c product entry 848 * @throws SystemException if a system exception occurred 849 */ 850 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses( 851 long pk, int start, int end, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException; 854 855 /** 856 * Returns the number of s c licenses associated with the s c product entry. 857 * 858 * @param pk the primary key of the s c product entry 859 * @return the number of s c licenses associated with the s c product entry 860 * @throws SystemException if a system exception occurred 861 */ 862 public int getSCLicensesSize(long pk) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Returns <code>true</code> if the s c license is associated with the s c product entry. 867 * 868 * @param pk the primary key of the s c product entry 869 * @param scLicensePK the primary key of the s c license 870 * @return <code>true</code> if the s c license is associated with the s c product entry; <code>false</code> otherwise 871 * @throws SystemException if a system exception occurred 872 */ 873 public boolean containsSCLicense(long pk, long scLicensePK) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Returns <code>true</code> if the s c product entry has any s c licenses associated with it. 878 * 879 * @param pk the primary key of the s c product entry to check for associations with s c licenses 880 * @return <code>true</code> if the s c product entry has any s c licenses associated with it; <code>false</code> otherwise 881 * @throws SystemException if a system exception occurred 882 */ 883 public boolean containsSCLicenses(long pk) 884 throws com.liferay.portal.kernel.exception.SystemException; 885 886 /** 887 * Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache. 888 * 889 * @param pk the primary key of the s c product entry 890 * @param scLicensePK the primary key of the s c license 891 * @throws SystemException if a system exception occurred 892 */ 893 public void addSCLicense(long pk, long scLicensePK) 894 throws com.liferay.portal.kernel.exception.SystemException; 895 896 /** 897 * Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache. 898 * 899 * @param pk the primary key of the s c product entry 900 * @param scLicense the s c license 901 * @throws SystemException if a system exception occurred 902 */ 903 public void addSCLicense(long pk, 904 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) 905 throws com.liferay.portal.kernel.exception.SystemException; 906 907 /** 908 * Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache. 909 * 910 * @param pk the primary key of the s c product entry 911 * @param scLicensePKs the primary keys of the s c licenses 912 * @throws SystemException if a system exception occurred 913 */ 914 public void addSCLicenses(long pk, long[] scLicensePKs) 915 throws com.liferay.portal.kernel.exception.SystemException; 916 917 /** 918 * Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache. 919 * 920 * @param pk the primary key of the s c product entry 921 * @param scLicenses the s c licenses 922 * @throws SystemException if a system exception occurred 923 */ 924 public void addSCLicenses(long pk, 925 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) 926 throws com.liferay.portal.kernel.exception.SystemException; 927 928 /** 929 * Clears all associations between the s c product entry and its s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache. 930 * 931 * @param pk the primary key of the s c product entry to clear the associated s c licenses from 932 * @throws SystemException if a system exception occurred 933 */ 934 public void clearSCLicenses(long pk) 935 throws com.liferay.portal.kernel.exception.SystemException; 936 937 /** 938 * Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache. 939 * 940 * @param pk the primary key of the s c product entry 941 * @param scLicensePK the primary key of the s c license 942 * @throws SystemException if a system exception occurred 943 */ 944 public void removeSCLicense(long pk, long scLicensePK) 945 throws com.liferay.portal.kernel.exception.SystemException; 946 947 /** 948 * Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache. 949 * 950 * @param pk the primary key of the s c product entry 951 * @param scLicense the s c license 952 * @throws SystemException if a system exception occurred 953 */ 954 public void removeSCLicense(long pk, 955 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) 956 throws com.liferay.portal.kernel.exception.SystemException; 957 958 /** 959 * Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache. 960 * 961 * @param pk the primary key of the s c product entry 962 * @param scLicensePKs the primary keys of the s c licenses 963 * @throws SystemException if a system exception occurred 964 */ 965 public void removeSCLicenses(long pk, long[] scLicensePKs) 966 throws com.liferay.portal.kernel.exception.SystemException; 967 968 /** 969 * Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache. 970 * 971 * @param pk the primary key of the s c product entry 972 * @param scLicenses the s c licenses 973 * @throws SystemException if a system exception occurred 974 */ 975 public void removeSCLicenses(long pk, 976 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 981 * 982 * @param pk the primary key of the s c product entry 983 * @param scLicensePKs the primary keys of the s c licenses to be associated with the s c product entry 984 * @throws SystemException if a system exception occurred 985 */ 986 public void setSCLicenses(long pk, long[] scLicensePKs) 987 throws com.liferay.portal.kernel.exception.SystemException; 988 989 /** 990 * Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 991 * 992 * @param pk the primary key of the s c product entry 993 * @param scLicenses the s c licenses to be associated with the s c product entry 994 * @throws SystemException if a system exception occurred 995 */ 996 public void setSCLicenses(long pk, 997 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) 998 throws com.liferay.portal.kernel.exception.SystemException; 999 }