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