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