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