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