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