001 /** 002 * Copyright (c) 2000-2012 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 * Caches the s c product entry in the entity cache if it is enabled. 042 * 043 * @param scProductEntry the s c product entry 044 */ 045 public void cacheResult( 046 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry); 047 048 /** 049 * Caches the s c product entries in the entity cache if it is enabled. 050 * 051 * @param scProductEntries the s c product entries 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries); 055 056 /** 057 * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database. 058 * 059 * @param productEntryId the primary key for the new s c product entry 060 * @return the new s c product entry 061 */ 062 public com.liferay.portlet.softwarecatalog.model.SCProductEntry create( 063 long productEntryId); 064 065 /** 066 * Removes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param productEntryId the primary key of the s c product entry 069 * @return the s c product entry that was removed 070 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove( 074 long productEntryId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 077 078 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl( 079 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * 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. 084 * 085 * @param productEntryId the primary key of the s c product entry 086 * @return the s c product entry 087 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey( 091 long productEntryId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 094 095 /** 096 * Returns the s c product entry with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param productEntryId the primary key of the s c product entry 099 * @return the s c product entry, or <code>null</code> if a s c product entry with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey( 103 long productEntryId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the s c product entries where groupId = ?. 108 * 109 * @param groupId the group ID 110 * @return the matching s c product entries 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 114 long groupId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the s c product entries where groupId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param groupId the group ID 125 * @param start the lower bound of the range of s c product entries 126 * @param end the upper bound of the range of s c product entries (not inclusive) 127 * @return the range of matching s c product entries 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 131 long groupId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the s c product entries where groupId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param groupId the group ID 142 * @param start the lower bound of the range of s c product entries 143 * @param end the upper bound of the range of s c product entries (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching s c product entries 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId( 149 long groupId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first s c product entry in the ordered set where groupId = ?. 155 * 156 * @param groupId the group ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching s c product entry 159 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First( 163 long groupId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 167 168 /** 169 * Returns the first s c product entry in the ordered set where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByGroupId_First( 177 long groupId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last s c product entry in the ordered set where groupId = ?. 183 * 184 * @param groupId the group ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching s c product entry 187 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last( 191 long groupId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 195 196 /** 197 * Returns the last s c product entry in the ordered set where groupId = ?. 198 * 199 * @param groupId the group ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByGroupId_Last( 205 long groupId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ?. 211 * 212 * @param productEntryId the primary key of the current s c product entry 213 * @param groupId the group ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next s c product entry 216 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext( 220 long productEntryId, long groupId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 224 225 /** 226 * Returns all the s c product entries that the user has permission to view where groupId = ?. 227 * 228 * @param groupId the group ID 229 * @return the matching s c product entries that the user has permission to view 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 233 long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns a range of all the s c product entries that the user has permission to view where groupId = ?. 238 * 239 * <p> 240 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 241 * </p> 242 * 243 * @param groupId the group ID 244 * @param start the lower bound of the range of s c product entries 245 * @param end the upper bound of the range of s c product entries (not inclusive) 246 * @return the range of matching s c product entries that the user has permission to view 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 250 long groupId, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param groupId the group ID 261 * @param start the lower bound of the range of s c product entries 262 * @param end the upper bound of the range of s c product entries (not inclusive) 263 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 264 * @return the ordered range of matching s c product entries that the user has permission to view 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId( 268 long groupId, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * 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 = ?. 274 * 275 * @param productEntryId the primary key of the current s c product entry 276 * @param groupId the group ID 277 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 278 * @return the previous, current, and next s c product entry 279 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByGroupId_PrevAndNext( 283 long productEntryId, long groupId, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 287 288 /** 289 * Returns all the s c product entries where companyId = ?. 290 * 291 * @param companyId the company ID 292 * @return the matching s c product entries 293 * @throws SystemException if a system exception occurred 294 */ 295 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 296 long companyId) 297 throws com.liferay.portal.kernel.exception.SystemException; 298 299 /** 300 * Returns a range of all the s c product entries where companyId = ?. 301 * 302 * <p> 303 * 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. 304 * </p> 305 * 306 * @param companyId the company ID 307 * @param start the lower bound of the range of s c product entries 308 * @param end the upper bound of the range of s c product entries (not inclusive) 309 * @return the range of matching s c product entries 310 * @throws SystemException if a system exception occurred 311 */ 312 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 313 long companyId, int start, int end) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns an ordered range of all the s c product entries where companyId = ?. 318 * 319 * <p> 320 * 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. 321 * </p> 322 * 323 * @param companyId the company ID 324 * @param start the lower bound of the range of s c product entries 325 * @param end the upper bound of the range of s c product entries (not inclusive) 326 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 327 * @return the ordered range of matching s c product entries 328 * @throws SystemException if a system exception occurred 329 */ 330 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId( 331 long companyId, int start, int end, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException; 334 335 /** 336 * Returns the first s c product entry in the ordered set where companyId = ?. 337 * 338 * @param companyId the company ID 339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 340 * @return the first matching s c product entry 341 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First( 345 long companyId, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.kernel.exception.SystemException, 348 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 349 350 /** 351 * Returns the first s c product entry in the ordered set where companyId = ?. 352 * 353 * @param companyId the company ID 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByCompanyId_First( 359 long companyId, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.kernel.exception.SystemException; 362 363 /** 364 * Returns the last s c product entry in the ordered set where companyId = ?. 365 * 366 * @param companyId the company ID 367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 368 * @return the last matching s c product entry 369 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last( 373 long companyId, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException, 376 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 377 378 /** 379 * Returns the last s c product entry in the ordered set where companyId = ?. 380 * 381 * @param companyId the company ID 382 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 383 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 384 * @throws SystemException if a system exception occurred 385 */ 386 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByCompanyId_Last( 387 long companyId, 388 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 389 throws com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Returns the s c product entries before and after the current s c product entry in the ordered set where companyId = ?. 393 * 394 * @param productEntryId the primary key of the current s c product entry 395 * @param companyId the company ID 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the previous, current, and next s c product entry 398 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext( 402 long productEntryId, long companyId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 406 407 /** 408 * Returns all the s c product entries where groupId = ? and userId = ?. 409 * 410 * @param groupId the group ID 411 * @param userId the user ID 412 * @return the 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) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns a 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. 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 * @return the range of matching s c product entries 431 * @throws SystemException if a system exception occurred 432 */ 433 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U( 434 long groupId, long userId, int start, int end) 435 throws com.liferay.portal.kernel.exception.SystemException; 436 437 /** 438 * Returns an ordered range of all the s c product entries where groupId = ? and userId = ?. 439 * 440 * <p> 441 * 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. 442 * </p> 443 * 444 * @param groupId the group ID 445 * @param userId the user ID 446 * @param start the lower bound of the range of s c product entries 447 * @param end the upper bound of the range of s c product entries (not inclusive) 448 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 449 * @return the ordered range of matching s c product entries 450 * @throws SystemException if a system exception occurred 451 */ 452 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U( 453 long groupId, long userId, int start, int end, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. 459 * 460 * @param groupId the group ID 461 * @param userId the user ID 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 463 * @return the first matching s c product entry 464 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First( 468 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 * Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. 475 * 476 * @param groupId the group ID 477 * @param userId the user ID 478 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 479 * @return the first matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByG_U_First( 483 long groupId, long userId, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. 489 * 490 * @param groupId the group ID 491 * @param userId the user ID 492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 493 * @return the last matching s c product entry 494 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 495 * @throws SystemException if a system exception occurred 496 */ 497 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last( 498 long groupId, long userId, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException, 501 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 502 503 /** 504 * Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. 505 * 506 * @param groupId the group ID 507 * @param userId the user ID 508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 509 * @return the last matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByG_U_Last( 513 long groupId, long userId, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.kernel.exception.SystemException; 516 517 /** 518 * Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?. 519 * 520 * @param productEntryId the primary key of the current s c product entry 521 * @param groupId the group ID 522 * @param userId the user ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the previous, current, and next s c product entry 525 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext( 529 long productEntryId, long groupId, long userId, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.kernel.exception.SystemException, 532 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 533 534 /** 535 * Returns all the s c product entries that the user has permission to view where groupId = ? and userId = ?. 536 * 537 * @param groupId the group ID 538 * @param userId the user ID 539 * @return the 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) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Returns a range of all the s c product entries that the user has permission 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. 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 * @return the range of matching s c product entries that the user has permission to view 558 * @throws SystemException if a system exception occurred 559 */ 560 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U( 561 long groupId, long userId, int start, int end) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ? and userId = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param groupId the group ID 572 * @param userId the user ID 573 * @param start the lower bound of the range of s c product entries 574 * @param end the upper bound of the range of s c product entries (not inclusive) 575 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 576 * @return the ordered range of matching s c product entries that the user has permission to view 577 * @throws SystemException if a system exception occurred 578 */ 579 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U( 580 long groupId, long userId, int start, int end, 581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * 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 = ?. 586 * 587 * @param productEntryId the primary key of the current s c product entry 588 * @param groupId the group ID 589 * @param userId the user ID 590 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 591 * @return the previous, current, and next s c product entry 592 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found 593 * @throws SystemException if a system exception occurred 594 */ 595 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByG_U_PrevAndNext( 596 long productEntryId, long groupId, long userId, 597 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 598 throws com.liferay.portal.kernel.exception.SystemException, 599 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 600 601 /** 602 * 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. 603 * 604 * @param repoGroupId the repo group ID 605 * @param repoArtifactId the repo artifact ID 606 * @return the matching s c product entry 607 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found 608 * @throws SystemException if a system exception occurred 609 */ 610 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA( 611 java.lang.String repoGroupId, java.lang.String repoArtifactId) 612 throws com.liferay.portal.kernel.exception.SystemException, 613 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 614 615 /** 616 * 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. 617 * 618 * @param repoGroupId the repo group ID 619 * @param repoArtifactId the repo artifact ID 620 * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA( 624 java.lang.String repoGroupId, java.lang.String repoArtifactId) 625 throws com.liferay.portal.kernel.exception.SystemException; 626 627 /** 628 * 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. 629 * 630 * @param repoGroupId the repo group ID 631 * @param repoArtifactId the repo artifact ID 632 * @param retrieveFromCache whether to use the finder cache 633 * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found 634 * @throws SystemException if a system exception occurred 635 */ 636 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA( 637 java.lang.String repoGroupId, java.lang.String repoArtifactId, 638 boolean retrieveFromCache) 639 throws com.liferay.portal.kernel.exception.SystemException; 640 641 /** 642 * Returns all the s c product entries. 643 * 644 * @return the s c product entries 645 * @throws SystemException if a system exception occurred 646 */ 647 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll() 648 throws com.liferay.portal.kernel.exception.SystemException; 649 650 /** 651 * Returns a range of all the s c product entries. 652 * 653 * <p> 654 * 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. 655 * </p> 656 * 657 * @param start the lower bound of the range of s c product entries 658 * @param end the upper bound of the range of s c product entries (not inclusive) 659 * @return the range of s c product entries 660 * @throws SystemException if a system exception occurred 661 */ 662 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll( 663 int start, int end) 664 throws com.liferay.portal.kernel.exception.SystemException; 665 666 /** 667 * Returns an ordered range of all the s c product entries. 668 * 669 * <p> 670 * 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. 671 * </p> 672 * 673 * @param start the lower bound of the range of s c product entries 674 * @param end the upper bound of the range of s c product entries (not inclusive) 675 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 676 * @return the ordered range of s c product entries 677 * @throws SystemException if a system exception occurred 678 */ 679 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll( 680 int start, int end, 681 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 682 throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Removes all the s c product entries where groupId = ? from the database. 686 * 687 * @param groupId the group ID 688 * @throws SystemException if a system exception occurred 689 */ 690 public void removeByGroupId(long groupId) 691 throws com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Removes all the s c product entries where companyId = ? from the database. 695 * 696 * @param companyId the company ID 697 * @throws SystemException if a system exception occurred 698 */ 699 public void removeByCompanyId(long companyId) 700 throws com.liferay.portal.kernel.exception.SystemException; 701 702 /** 703 * Removes all the s c product entries where groupId = ? and userId = ? from the database. 704 * 705 * @param groupId the group ID 706 * @param userId the user ID 707 * @throws SystemException if a system exception occurred 708 */ 709 public void removeByG_U(long groupId, long userId) 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database. 714 * 715 * @param repoGroupId the repo group ID 716 * @param repoArtifactId the repo artifact ID 717 * @return the s c product entry that was removed 718 * @throws SystemException if a system exception occurred 719 */ 720 public com.liferay.portlet.softwarecatalog.model.SCProductEntry removeByRG_RA( 721 java.lang.String repoGroupId, java.lang.String repoArtifactId) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException; 724 725 /** 726 * Removes all the s c product entries from the database. 727 * 728 * @throws SystemException if a system exception occurred 729 */ 730 public void removeAll() 731 throws com.liferay.portal.kernel.exception.SystemException; 732 733 /** 734 * Returns the number of s c product entries where groupId = ?. 735 * 736 * @param groupId the group ID 737 * @return the number of matching s c product entries 738 * @throws SystemException if a system exception occurred 739 */ 740 public int countByGroupId(long groupId) 741 throws com.liferay.portal.kernel.exception.SystemException; 742 743 /** 744 * Returns the number of s c product entries that the user has permission to view where groupId = ?. 745 * 746 * @param groupId the group ID 747 * @return the number of matching s c product entries that the user has permission to view 748 * @throws SystemException if a system exception occurred 749 */ 750 public int filterCountByGroupId(long groupId) 751 throws com.liferay.portal.kernel.exception.SystemException; 752 753 /** 754 * Returns the number of s c product entries where companyId = ?. 755 * 756 * @param companyId the company ID 757 * @return the number of matching s c product entries 758 * @throws SystemException if a system exception occurred 759 */ 760 public int countByCompanyId(long companyId) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Returns the number of s c product entries where groupId = ? and userId = ?. 765 * 766 * @param groupId the group ID 767 * @param userId the user ID 768 * @return the number of matching s c product entries 769 * @throws SystemException if a system exception occurred 770 */ 771 public int countByG_U(long groupId, long userId) 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 /** 775 * Returns the number of s c product entries that the user has permission to view where groupId = ? and userId = ?. 776 * 777 * @param groupId the group ID 778 * @param userId the user ID 779 * @return the number of matching s c product entries that the user has permission to view 780 * @throws SystemException if a system exception occurred 781 */ 782 public int filterCountByG_U(long groupId, long userId) 783 throws com.liferay.portal.kernel.exception.SystemException; 784 785 /** 786 * Returns the number of s c product entries where repoGroupId = ? and repoArtifactId = ?. 787 * 788 * @param repoGroupId the repo group ID 789 * @param repoArtifactId the repo artifact ID 790 * @return the number of matching s c product entries 791 * @throws SystemException if a system exception occurred 792 */ 793 public int countByRG_RA(java.lang.String repoGroupId, 794 java.lang.String repoArtifactId) 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. 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. 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 }