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