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