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