Liferay 6.0.5

com.liferay.portlet.softwarecatalog.service.persistence
Class SCFrameworkVersionUtil

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionUtil

public class SCFrameworkVersionUtil
extends Object

The persistence utility for the s c framework version service. This utility wraps SCFrameworkVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
SCFrameworkVersionPersistence, SCFrameworkVersionPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
SCFrameworkVersionUtil()
           
 
Method Summary
static void addSCProductVersion(long pk, long scProductVersionPK)
          Adds an association between the s c framework version and the s c product version.
static void addSCProductVersion(long pk, SCProductVersion scProductVersion)
          Adds an association between the s c framework version and the s c product version.
static void addSCProductVersions(long pk, List<SCProductVersion> scProductVersions)
          Adds an association between the s c framework version and the s c product versions.
static void addSCProductVersions(long pk, long[] scProductVersionPKs)
          Adds an association between the s c framework version and the s c product versions.
static void cacheResult(List<SCFrameworkVersion> scFrameworkVersions)
          Caches the s c framework versions in the entity cache if it is enabled.
static void cacheResult(SCFrameworkVersion scFrameworkVersion)
          Caches the s c framework version in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SCFrameworkVersion scFrameworkVersion)
           
static void clearSCProductVersions(long pk)
          Clears all associations between the s c framework version and its s c product versions.
static boolean containsSCProductVersion(long pk, long scProductVersionPK)
          Determines whether the s c product version is associated with the s c framework version.
static boolean containsSCProductVersions(long pk)
          Determines whether the s c framework version has any s c product versions associated with it.
static int countAll()
          Counts all the s c framework versions.
static int countByCompanyId(long companyId)
          Counts all the s c framework versions where companyId = ?.
static int countByG_A(long groupId, boolean active)
          Counts all the s c framework versions where groupId = ? and active = ?.
static int countByGroupId(long groupId)
          Counts all the s c framework versions where groupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SCFrameworkVersion create(long frameworkVersionId)
          Creates a new s c framework version with the primary key.
static SCFrameworkVersion fetchByPrimaryKey(long frameworkVersionId)
          Finds the s c framework version with the primary key or returns null if it could not be found.
static int filterCountByG_A(long groupId, boolean active)
          Filters by the user's permissions and counts all the s c framework versions where groupId = ? and active = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> filterFindByG_A(long groupId, boolean active)
          Filters by the user's permissions and finds all the s c framework versions where groupId = ? and active = ?.
static List<SCFrameworkVersion> filterFindByG_A(long groupId, boolean active, int start, int end)
          Filters by the user's permissions and finds a range of all the s c framework versions where groupId = ? and active = ?.
static List<SCFrameworkVersion> filterFindByG_A(long groupId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the s c framework versions where groupId = ? and active = ?.
static List<SCFrameworkVersion> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> findAll()
          Finds all the s c framework versions.
static List<SCFrameworkVersion> findAll(int start, int end)
          Finds a range of all the s c framework versions.
static List<SCFrameworkVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c framework versions.
static SCFrameworkVersion findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first s c framework version in the ordered set where companyId = ?.
static SCFrameworkVersion findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last s c framework version in the ordered set where companyId = ?.
static SCFrameworkVersion[] findByCompanyId_PrevAndNext(long frameworkVersionId, long companyId, OrderByComparator orderByComparator)
          Finds the s c framework versions before and after the current s c framework version in the ordered set where companyId = ?.
static List<SCFrameworkVersion> findByCompanyId(long companyId)
          Finds all the s c framework versions where companyId = ?.
static List<SCFrameworkVersion> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the s c framework versions where companyId = ?.
static List<SCFrameworkVersion> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c framework versions where companyId = ?.
static SCFrameworkVersion findByG_A_First(long groupId, boolean active, OrderByComparator orderByComparator)
          Finds the first s c framework version in the ordered set where groupId = ? and active = ?.
static SCFrameworkVersion findByG_A_Last(long groupId, boolean active, OrderByComparator orderByComparator)
          Finds the last s c framework version in the ordered set where groupId = ? and active = ?.
static SCFrameworkVersion[] findByG_A_PrevAndNext(long frameworkVersionId, long groupId, boolean active, OrderByComparator orderByComparator)
          Finds the s c framework versions before and after the current s c framework version in the ordered set where groupId = ? and active = ?.
static List<SCFrameworkVersion> findByG_A(long groupId, boolean active)
          Finds all the s c framework versions where groupId = ? and active = ?.
static List<SCFrameworkVersion> findByG_A(long groupId, boolean active, int start, int end)
          Finds a range of all the s c framework versions where groupId = ? and active = ?.
static List<SCFrameworkVersion> findByG_A(long groupId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c framework versions where groupId = ? and active = ?.
static SCFrameworkVersion findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first s c framework version in the ordered set where groupId = ?.
static SCFrameworkVersion findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last s c framework version in the ordered set where groupId = ?.
static SCFrameworkVersion[] findByGroupId_PrevAndNext(long frameworkVersionId, long groupId, OrderByComparator orderByComparator)
          Finds the s c framework versions before and after the current s c framework version in the ordered set where groupId = ?.
static List<SCFrameworkVersion> findByGroupId(long groupId)
          Finds all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> findByGroupId(long groupId, int start, int end)
          Finds a range of all the s c framework versions where groupId = ?.
static List<SCFrameworkVersion> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c framework versions where groupId = ?.
static SCFrameworkVersion findByPrimaryKey(long frameworkVersionId)
          Finds the s c framework version with the primary key or throws a NoSuchFrameworkVersionException if it could not be found.
static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SCFrameworkVersionPersistence getPersistence()
           
static List<SCProductVersion> getSCProductVersions(long pk)
          Gets all the s c product versions associated with the s c framework version.
static List<SCProductVersion> getSCProductVersions(long pk, int start, int end)
          Gets a range of all the s c product versions associated with the s c framework version.
static List<SCProductVersion> getSCProductVersions(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the s c product versions associated with the s c framework version.
static int getSCProductVersionsSize(long pk)
          Gets the number of s c product versions associated with the s c framework version.
static SCFrameworkVersion remove(long frameworkVersionId)
          Removes the s c framework version with the primary key from the database.
static SCFrameworkVersion remove(SCFrameworkVersion scFrameworkVersion)
           
static void removeAll()
          Removes all the s c framework versions from the database.
static void removeByCompanyId(long companyId)
          Removes all the s c framework versions where companyId = ? from the database.
static void removeByG_A(long groupId, boolean active)
          Removes all the s c framework versions where groupId = ? and active = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the s c framework versions where groupId = ? from the database.
static void removeSCProductVersion(long pk, long scProductVersionPK)
          Removes the association between the s c framework version and the s c product version.
static void removeSCProductVersion(long pk, SCProductVersion scProductVersion)
          Removes the association between the s c framework version and the s c product version.
static void removeSCProductVersions(long pk, List<SCProductVersion> scProductVersions)
          Removes the association between the s c framework version and the s c product versions.
static void removeSCProductVersions(long pk, long[] scProductVersionPKs)
          Removes the association between the s c framework version and the s c product versions.
 void setPersistence(SCFrameworkVersionPersistence persistence)
           
static void setSCProductVersions(long pk, List<SCProductVersion> scProductVersions)
          Sets the s c product versions associated with the s c framework version, removing and adding associations as necessary.
static void setSCProductVersions(long pk, long[] scProductVersionPKs)
          Sets the s c product versions associated with the s c framework version, removing and adding associations as necessary.
static SCFrameworkVersion update(SCFrameworkVersion scFrameworkVersion, boolean merge)
           
static SCFrameworkVersion update(SCFrameworkVersion scFrameworkVersion, boolean merge, ServiceContext serviceContext)
           
static SCFrameworkVersion updateImpl(SCFrameworkVersion scFrameworkVersion, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCFrameworkVersionUtil

public SCFrameworkVersionUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SCFrameworkVersion scFrameworkVersion)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SCFrameworkVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static SCFrameworkVersion remove(SCFrameworkVersion scFrameworkVersion)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static SCFrameworkVersion update(SCFrameworkVersion scFrameworkVersion,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static SCFrameworkVersion update(SCFrameworkVersion scFrameworkVersion,
                                        boolean merge,
                                        ServiceContext serviceContext)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(SCFrameworkVersion scFrameworkVersion)
Caches the s c framework version in the entity cache if it is enabled.

Parameters:
scFrameworkVersion - the s c framework version to cache

cacheResult

public static void cacheResult(List<SCFrameworkVersion> scFrameworkVersions)
Caches the s c framework versions in the entity cache if it is enabled.

Parameters:
scFrameworkVersions - the s c framework versions to cache

create

public static SCFrameworkVersion create(long frameworkVersionId)
Creates a new s c framework version with the primary key. Does not add the s c framework version to the database.

Parameters:
frameworkVersionId - the primary key for the new s c framework version
Returns:
the new s c framework version

remove

public static SCFrameworkVersion remove(long frameworkVersionId)
                                 throws SystemException,
                                        NoSuchFrameworkVersionException
Removes the s c framework version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
frameworkVersionId - the primary key of the s c framework version to remove
Returns:
the s c framework version that was removed
Throws:
NoSuchFrameworkVersionException - if a s c framework version with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static SCFrameworkVersion updateImpl(SCFrameworkVersion scFrameworkVersion,
                                            boolean merge)
                                     throws SystemException
Throws:
SystemException

findByPrimaryKey

public static SCFrameworkVersion findByPrimaryKey(long frameworkVersionId)
                                           throws SystemException,
                                                  NoSuchFrameworkVersionException
Finds the s c framework version with the primary key or throws a NoSuchFrameworkVersionException if it could not be found.

Parameters:
frameworkVersionId - the primary key of the s c framework version to find
Returns:
the s c framework version
Throws:
NoSuchFrameworkVersionException - if a s c framework version with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static SCFrameworkVersion fetchByPrimaryKey(long frameworkVersionId)
                                            throws SystemException
Finds the s c framework version with the primary key or returns null if it could not be found.

Parameters:
frameworkVersionId - the primary key of the s c framework version to find
Returns:
the s c framework version, or null if a s c framework version with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<SCFrameworkVersion> findByGroupId(long groupId)
                                              throws SystemException
Finds all the s c framework versions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<SCFrameworkVersion> findByGroupId(long groupId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Finds a range of all the s c framework versions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<SCFrameworkVersion> findByGroupId(long groupId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Finds an ordered range of all the s c framework versions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static SCFrameworkVersion findByGroupId_First(long groupId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchFrameworkVersionException
Finds the first s c framework version in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static SCFrameworkVersion findByGroupId_Last(long groupId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchFrameworkVersionException
Finds the last s c framework version in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static SCFrameworkVersion[] findByGroupId_PrevAndNext(long frameworkVersionId,
                                                             long groupId,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException,
                                                             NoSuchFrameworkVersionException
Finds the s c framework versions before and after the current s c framework version in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
frameworkVersionId - the primary key of the current s c framework version
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c framework version
Throws:
NoSuchFrameworkVersionException - if a s c framework version with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<SCFrameworkVersion> filterFindByGroupId(long groupId)
                                                    throws SystemException
Filters by the user's permissions and finds all the s c framework versions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<SCFrameworkVersion> filterFindByGroupId(long groupId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Filters by the user's permissions and finds a range of all the s c framework versions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<SCFrameworkVersion> filterFindByGroupId(long groupId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Filters by the user's permissions and finds an ordered range of all the s c framework versions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<SCFrameworkVersion> findByCompanyId(long companyId)
                                                throws SystemException
Finds all the s c framework versions where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<SCFrameworkVersion> findByCompanyId(long companyId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Finds a range of all the s c framework versions where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<SCFrameworkVersion> findByCompanyId(long companyId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Finds an ordered range of all the s c framework versions where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static SCFrameworkVersion findByCompanyId_First(long companyId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchFrameworkVersionException
Finds the first s c framework version in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static SCFrameworkVersion findByCompanyId_Last(long companyId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchFrameworkVersionException
Finds the last s c framework version in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static SCFrameworkVersion[] findByCompanyId_PrevAndNext(long frameworkVersionId,
                                                               long companyId,
                                                               OrderByComparator orderByComparator)
                                                        throws SystemException,
                                                               NoSuchFrameworkVersionException
Finds the s c framework versions before and after the current s c framework version in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
frameworkVersionId - the primary key of the current s c framework version
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c framework version
Throws:
NoSuchFrameworkVersionException - if a s c framework version with the primary key could not be found
SystemException - if a system exception occurred

findByG_A

public static List<SCFrameworkVersion> findByG_A(long groupId,
                                                 boolean active)
                                          throws SystemException
Finds all the s c framework versions where groupId = ? and active = ?.

Parameters:
groupId - the group id to search with
active - the active to search with
Returns:
the matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByG_A

public static List<SCFrameworkVersion> findByG_A(long groupId,
                                                 boolean active,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the s c framework versions where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByG_A

public static List<SCFrameworkVersion> findByG_A(long groupId,
                                                 boolean active,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the s c framework versions where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c framework versions
Throws:
SystemException - if a system exception occurred

findByG_A_First

public static SCFrameworkVersion findByG_A_First(long groupId,
                                                 boolean active,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchFrameworkVersionException
Finds the first s c framework version in the ordered set where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByG_A_Last

public static SCFrameworkVersion findByG_A_Last(long groupId,
                                                boolean active,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchFrameworkVersionException
Finds the last s c framework version in the ordered set where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c framework version
Throws:
NoSuchFrameworkVersionException - if a matching s c framework version could not be found
SystemException - if a system exception occurred

findByG_A_PrevAndNext

public static SCFrameworkVersion[] findByG_A_PrevAndNext(long frameworkVersionId,
                                                         long groupId,
                                                         boolean active,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchFrameworkVersionException
Finds the s c framework versions before and after the current s c framework version in the ordered set where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
frameworkVersionId - the primary key of the current s c framework version
groupId - the group id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c framework version
Throws:
NoSuchFrameworkVersionException - if a s c framework version with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_A

public static List<SCFrameworkVersion> filterFindByG_A(long groupId,
                                                       boolean active)
                                                throws SystemException
Filters by the user's permissions and finds all the s c framework versions where groupId = ? and active = ?.

Parameters:
groupId - the group id to search with
active - the active to search with
Returns:
the matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_A

public static List<SCFrameworkVersion> filterFindByG_A(long groupId,
                                                       boolean active,
                                                       int start,
                                                       int end)
                                                throws SystemException
Filters by the user's permissions and finds a range of all the s c framework versions where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_A

public static List<SCFrameworkVersion> filterFindByG_A(long groupId,
                                                       boolean active,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Filters by the user's permissions and finds an ordered range of all the s c framework versions where groupId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
active - the active to search with
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

findAll

public static List<SCFrameworkVersion> findAll()
                                        throws SystemException
Finds all the s c framework versions.

Returns:
the s c framework versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<SCFrameworkVersion> findAll(int start,
                                               int end)
                                        throws SystemException
Finds a range of all the s c framework versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of s c framework versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<SCFrameworkVersion> findAll(int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the s c framework versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c framework versions
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the s c framework versions where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the s c framework versions where companyId = ? from the database.

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByG_A

public static void removeByG_A(long groupId,
                               boolean active)
                        throws SystemException
Removes all the s c framework versions where groupId = ? and active = ? from the database.

Parameters:
groupId - the group id to search with
active - the active to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the s c framework versions from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the s c framework versions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching s c framework versions
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the s c framework versions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Counts all the s c framework versions where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching s c framework versions
Throws:
SystemException - if a system exception occurred

countByG_A

public static int countByG_A(long groupId,
                             boolean active)
                      throws SystemException
Counts all the s c framework versions where groupId = ? and active = ?.

Parameters:
groupId - the group id to search with
active - the active to search with
Returns:
the number of matching s c framework versions
Throws:
SystemException - if a system exception occurred

filterCountByG_A

public static int filterCountByG_A(long groupId,
                                   boolean active)
                            throws SystemException
Filters by the user's permissions and counts all the s c framework versions where groupId = ? and active = ?.

Parameters:
groupId - the group id to search with
active - the active to search with
Returns:
the number of matching s c framework versions that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the s c framework versions.

Returns:
the number of s c framework versions
Throws:
SystemException - if a system exception occurred

getSCProductVersions

public static List<SCProductVersion> getSCProductVersions(long pk)
                                                   throws SystemException
Gets all the s c product versions associated with the s c framework version.

Parameters:
pk - the primary key of the s c framework version to get the associated s c product versions for
Returns:
the s c product versions associated with the s c framework version
Throws:
SystemException - if a system exception occurred

getSCProductVersions

public static List<SCProductVersion> getSCProductVersions(long pk,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Gets a range of all the s c product versions associated with the s c framework version.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
pk - the primary key of the s c framework version to get the associated s c product versions for
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
Returns:
the range of s c product versions associated with the s c framework version
Throws:
SystemException - if a system exception occurred

getSCProductVersions

public static List<SCProductVersion> getSCProductVersions(long pk,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Gets an ordered range of all the s c product versions associated with the s c framework version.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
pk - the primary key of the s c framework version to get the associated s c product versions for
start - the lower bound of the range of s c framework versions to return
end - the upper bound of the range of s c framework versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product versions associated with the s c framework version
Throws:
SystemException - if a system exception occurred

getSCProductVersionsSize

public static int getSCProductVersionsSize(long pk)
                                    throws SystemException
Gets the number of s c product versions associated with the s c framework version.

Parameters:
pk - the primary key of the s c framework version to get the number of associated s c product versions for
Returns:
the number of s c product versions associated with the s c framework version
Throws:
SystemException - if a system exception occurred

containsSCProductVersion

public static boolean containsSCProductVersion(long pk,
                                               long scProductVersionPK)
                                        throws SystemException
Determines whether the s c product version is associated with the s c framework version.

Parameters:
pk - the primary key of the s c framework version
scProductVersionPK - the primary key of the s c product version
Returns:
whether the s c product version is associated with the s c framework version
Throws:
SystemException - if a system exception occurred

containsSCProductVersions

public static boolean containsSCProductVersions(long pk)
                                         throws SystemException
Determines whether the s c framework version has any s c product versions associated with it.

Parameters:
pk - the primary key of the s c framework version to check for associations with s c product versions
Returns:
whether the s c framework version has any s c product versions associated with it
Throws:
SystemException - if a system exception occurred

addSCProductVersion

public static void addSCProductVersion(long pk,
                                       long scProductVersionPK)
                                throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersionPK - the primary key of the s c product version
Throws:
SystemException - if a system exception occurred

addSCProductVersion

public static void addSCProductVersion(long pk,
                                       SCProductVersion scProductVersion)
                                throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersion - the s c product version
Throws:
SystemException - if a system exception occurred

addSCProductVersions

public static void addSCProductVersions(long pk,
                                        long[] scProductVersionPKs)
                                 throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersionPKs - the primary keys of the s c product versions
Throws:
SystemException - if a system exception occurred

addSCProductVersions

public static void addSCProductVersions(long pk,
                                        List<SCProductVersion> scProductVersions)
                                 throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersions - the s c product versions
Throws:
SystemException - if a system exception occurred

clearSCProductVersions

public static void clearSCProductVersions(long pk)
                                   throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version to clear the associated s c product versions from
Throws:
SystemException - if a system exception occurred

removeSCProductVersion

public static void removeSCProductVersion(long pk,
                                          long scProductVersionPK)
                                   throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersionPK - the primary key of the s c product version
Throws:
SystemException - if a system exception occurred

removeSCProductVersion

public static void removeSCProductVersion(long pk,
                                          SCProductVersion scProductVersion)
                                   throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersion - the s c product version
Throws:
SystemException - if a system exception occurred

removeSCProductVersions

public static void removeSCProductVersions(long pk,
                                           long[] scProductVersionPKs)
                                    throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersionPKs - the primary keys of the s c product versions
Throws:
SystemException - if a system exception occurred

removeSCProductVersions

public static void removeSCProductVersions(long pk,
                                           List<SCProductVersion> scProductVersions)
                                    throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version
scProductVersions - the s c product versions
Throws:
SystemException - if a system exception occurred

setSCProductVersions

public static void setSCProductVersions(long pk,
                                        long[] scProductVersionPKs)
                                 throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version to set the associations for
scProductVersionPKs - the primary keys of the s c product versions to be associated with the s c framework version
Throws:
SystemException - if a system exception occurred

setSCProductVersions

public static void setSCProductVersions(long pk,
                                        List<SCProductVersion> scProductVersions)
                                 throws SystemException
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.

Parameters:
pk - the primary key of the s c framework version to set the associations for
scProductVersions - the s c product versions to be associated with the s c framework version
Throws:
SystemException - if a system exception occurred

getPersistence

public static SCFrameworkVersionPersistence getPersistence()

setPersistence

public void setPersistence(SCFrameworkVersionPersistence persistence)

Liferay 6.0.5