Liferay 6.0.5

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

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

public class SCProductVersionUtil
extends Object

The persistence utility for the s c product version service. This utility wraps SCProductVersionPersistenceImpl 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:
SCProductVersionPersistence, SCProductVersionPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
SCProductVersionUtil()
           
 
Method Summary
static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Adds an association between the s c product version and the s c framework version.
static void addSCFrameworkVersion(long pk, SCFrameworkVersion scFrameworkVersion)
          Adds an association between the s c product version and the s c framework version.
static void addSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Adds an association between the s c product version and the s c framework versions.
static void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Adds an association between the s c product version and the s c framework versions.
static void cacheResult(List<SCProductVersion> scProductVersions)
          Caches the s c product versions in the entity cache if it is enabled.
static void cacheResult(SCProductVersion scProductVersion)
          Caches the s c product version in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SCProductVersion scProductVersion)
           
static void clearSCFrameworkVersions(long pk)
          Clears all associations between the s c product version and its s c framework versions.
static boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Determines whether the s c framework version is associated with the s c product version.
static boolean containsSCFrameworkVersions(long pk)
          Determines whether the s c product version has any s c framework versions associated with it.
static int countAll()
          Counts all the s c product versions.
static int countByDirectDownloadURL(String directDownloadURL)
          Counts all the s c product versions where directDownloadURL = ?.
static int countByProductEntryId(long productEntryId)
          Counts all the s c product versions where productEntryId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SCProductVersion create(long productVersionId)
          Creates a new s c product version with the primary key.
static SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
          Finds the s c product version where directDownloadURL = ? or returns null if it could not be found.
static SCProductVersion fetchByDirectDownloadURL(String directDownloadURL, boolean retrieveFromCache)
          Finds the s c product version where directDownloadURL = ? or returns null if it could not be found, optionally using the finder cache.
static SCProductVersion fetchByPrimaryKey(long productVersionId)
          Finds the s c product version with the primary key or returns null if it could not be found.
static List<SCProductVersion> findAll()
          Finds all the s c product versions.
static List<SCProductVersion> findAll(int start, int end)
          Finds a range of all the s c product versions.
static List<SCProductVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product versions.
static SCProductVersion findByDirectDownloadURL(String directDownloadURL)
          Finds the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found.
static SCProductVersion findByPrimaryKey(long productVersionId)
          Finds the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found.
static SCProductVersion findByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
          Finds the first s c product version in the ordered set where productEntryId = ?.
static SCProductVersion findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Finds the last s c product version in the ordered set where productEntryId = ?.
static SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId, long productEntryId, OrderByComparator orderByComparator)
          Finds the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?.
static List<SCProductVersion> findByProductEntryId(long productEntryId)
          Finds all the s c product versions where productEntryId = ?.
static List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end)
          Finds a range of all the s c product versions where productEntryId = ?.
static List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product versions where productEntryId = ?.
static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SCProductVersionPersistence getPersistence()
           
static List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
          Gets all the s c framework versions associated with the s c product version.
static List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end)
          Gets a range of all the s c framework versions associated with the s c product version.
static List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the s c framework versions associated with the s c product version.
static int getSCFrameworkVersionsSize(long pk)
          Gets the number of s c framework versions associated with the s c product version.
static SCProductVersion remove(long productVersionId)
          Removes the s c product version with the primary key from the database.
static SCProductVersion remove(SCProductVersion scProductVersion)
           
static void removeAll()
          Removes all the s c product versions from the database.
static void removeByDirectDownloadURL(String directDownloadURL)
          Removes the s c product version where directDownloadURL = ? from the database.
static void removeByProductEntryId(long productEntryId)
          Removes all the s c product versions where productEntryId = ? from the database.
static void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Removes the association between the s c product version and the s c framework version.
static void removeSCFrameworkVersion(long pk, SCFrameworkVersion scFrameworkVersion)
          Removes the association between the s c product version and the s c framework version.
static void removeSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Removes the association between the s c product version and the s c framework versions.
static void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Removes the association between the s c product version and the s c framework versions.
 void setPersistence(SCProductVersionPersistence persistence)
           
static void setSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary.
static void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary.
static SCProductVersion update(SCProductVersion scProductVersion, boolean merge)
           
static SCProductVersion update(SCProductVersion scProductVersion, boolean merge, ServiceContext serviceContext)
           
static SCProductVersion updateImpl(SCProductVersion scProductVersion, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductVersionUtil

public SCProductVersionUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(SCProductVersion scProductVersion)
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<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

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

update

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

update

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

cacheResult

public static void cacheResult(SCProductVersion scProductVersion)
Caches the s c product version in the entity cache if it is enabled.

Parameters:
scProductVersion - the s c product version to cache

cacheResult

public static void cacheResult(List<SCProductVersion> scProductVersions)
Caches the s c product versions in the entity cache if it is enabled.

Parameters:
scProductVersions - the s c product versions to cache

create

public static SCProductVersion create(long productVersionId)
Creates a new s c product version with the primary key. Does not add the s c product version to the database.

Parameters:
productVersionId - the primary key for the new s c product version
Returns:
the new s c product version

remove

public static SCProductVersion remove(long productVersionId)
                               throws SystemException,
                                      NoSuchProductVersionException
Removes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.

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

updateImpl

public static SCProductVersion updateImpl(SCProductVersion scProductVersion,
                                          boolean merge)
                                   throws SystemException
Throws:
SystemException

findByPrimaryKey

public static SCProductVersion findByPrimaryKey(long productVersionId)
                                         throws SystemException,
                                                NoSuchProductVersionException
Finds the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found.

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

fetchByPrimaryKey

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

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

findByProductEntryId

public static List<SCProductVersion> findByProductEntryId(long productEntryId)
                                                   throws SystemException
Finds all the s c product versions where productEntryId = ?.

Parameters:
productEntryId - the product entry id to search with
Returns:
the matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId

public static List<SCProductVersion> findByProductEntryId(long productEntryId,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Finds a range of all the s c product versions where productEntryId = ?.

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:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId

public static List<SCProductVersion> findByProductEntryId(long productEntryId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Finds an ordered range of all the s c product versions where productEntryId = ?.

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:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId_First

public static SCProductVersion findByProductEntryId_First(long productEntryId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException,
                                                          NoSuchProductVersionException
Finds the first s c product version in the ordered set where productEntryId = ?.

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:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

findByProductEntryId_Last

public static SCProductVersion findByProductEntryId_Last(long productEntryId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchProductVersionException
Finds the last s c product version in the ordered set where productEntryId = ?.

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:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

findByProductEntryId_PrevAndNext

public static SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId,
                                                                  long productEntryId,
                                                                  OrderByComparator orderByComparator)
                                                           throws SystemException,
                                                                  NoSuchProductVersionException
Finds the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?.

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:
productVersionId - the primary key of the current s c product version
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c product version
Throws:
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

findByDirectDownloadURL

public static SCProductVersion findByDirectDownloadURL(String directDownloadURL)
                                                throws SystemException,
                                                       NoSuchProductVersionException
Finds the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found.

Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

fetchByDirectDownloadURL

public static SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
                                                 throws SystemException
Finds the s c product version where directDownloadURL = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version, or null if a matching s c product version could not be found
Throws:
SystemException - if a system exception occurred

fetchByDirectDownloadURL

public static SCProductVersion fetchByDirectDownloadURL(String directDownloadURL,
                                                        boolean retrieveFromCache)
                                                 throws SystemException
Finds the s c product version where directDownloadURL = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version, or null if a matching s c product version could not be found
Throws:
SystemException - if a system exception occurred

findAll

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

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

findAll

public static List<SCProductVersion> findAll(int start,
                                             int end)
                                      throws SystemException
Finds a range of all the s c product 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 product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of s c product versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<SCProductVersion> findAll(int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the s c product 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 product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product versions
Throws:
SystemException - if a system exception occurred

removeByProductEntryId

public static void removeByProductEntryId(long productEntryId)
                                   throws SystemException
Removes all the s c product versions where productEntryId = ? from the database.

Parameters:
productEntryId - the product entry id to search with
Throws:
SystemException - if a system exception occurred

removeByDirectDownloadURL

public static void removeByDirectDownloadURL(String directDownloadURL)
                                      throws SystemException,
                                             NoSuchProductVersionException
Removes the s c product version where directDownloadURL = ? from the database.

Parameters:
directDownloadURL - the direct download u r l to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductVersionException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByProductEntryId

public static int countByProductEntryId(long productEntryId)
                                 throws SystemException
Counts all the s c product versions where productEntryId = ?.

Parameters:
productEntryId - the product entry id to search with
Returns:
the number of matching s c product versions
Throws:
SystemException - if a system exception occurred

countByDirectDownloadURL

public static int countByDirectDownloadURL(String directDownloadURL)
                                    throws SystemException
Counts all the s c product versions where directDownloadURL = ?.

Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the number of matching s c product versions
Throws:
SystemException - if a system exception occurred

countAll

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

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

getSCFrameworkVersions

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

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

getSCFrameworkVersions

public static List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
                                                              int start,
                                                              int end)
                                                       throws SystemException
Gets a range of all the s c framework versions associated with the s c product 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 product version to get the associated s c framework versions for
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

getSCFrameworkVersions

public static List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
                                                              int start,
                                                              int end,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException
Gets an ordered range of all the s c framework versions associated with the s c product 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 product version to get the associated s c framework versions for
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

getSCFrameworkVersionsSize

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

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

containsSCFrameworkVersion

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

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

containsSCFrameworkVersions

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

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

addSCFrameworkVersion

public static void addSCFrameworkVersion(long pk,
                                         long scFrameworkVersionPK)
                                  throws SystemException
Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

addSCFrameworkVersion

public static void addSCFrameworkVersion(long pk,
                                         SCFrameworkVersion scFrameworkVersion)
                                  throws SystemException
Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

addSCFrameworkVersions

public static void addSCFrameworkVersions(long pk,
                                          long[] scFrameworkVersionPKs)
                                   throws SystemException
Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

addSCFrameworkVersions

public static void addSCFrameworkVersions(long pk,
                                          List<SCFrameworkVersion> scFrameworkVersions)
                                   throws SystemException
Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

clearSCFrameworkVersions

public static void clearSCFrameworkVersions(long pk)
                                     throws SystemException
Clears all associations between the s c product version and its s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

removeSCFrameworkVersion

public static void removeSCFrameworkVersion(long pk,
                                            long scFrameworkVersionPK)
                                     throws SystemException
Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

removeSCFrameworkVersion

public static void removeSCFrameworkVersion(long pk,
                                            SCFrameworkVersion scFrameworkVersion)
                                     throws SystemException
Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

removeSCFrameworkVersions

public static void removeSCFrameworkVersions(long pk,
                                             long[] scFrameworkVersionPKs)
                                      throws SystemException
Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

removeSCFrameworkVersions

public static void removeSCFrameworkVersions(long pk,
                                             List<SCFrameworkVersion> scFrameworkVersions)
                                      throws SystemException
Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

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

setSCFrameworkVersions

public static void setSCFrameworkVersions(long pk,
                                          long[] scFrameworkVersionPKs)
                                   throws SystemException
Sets the s c framework versions associated with the s c product 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 product version to set the associations for
scFrameworkVersionPKs - the primary keys of the s c framework versions to be associated with the s c product version
Throws:
SystemException - if a system exception occurred

setSCFrameworkVersions

public static void setSCFrameworkVersions(long pk,
                                          List<SCFrameworkVersion> scFrameworkVersions)
                                   throws SystemException
Sets the s c framework versions associated with the s c product 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 product version to set the associations for
scFrameworkVersions - the s c framework versions to be associated with the s c product version
Throws:
SystemException - if a system exception occurred

getPersistence

public static SCProductVersionPersistence getPersistence()

setPersistence

public void setPersistence(SCProductVersionPersistence persistence)

Liferay 6.0.5