Liferay 6.0.5

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

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

public class SCProductEntryUtil
extends Object

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

Constructor Summary
SCProductEntryUtil()
           
 
Method Summary
static void addSCLicense(long pk, long scLicensePK)
          Adds an association between the s c product entry and the s c license.
static void addSCLicense(long pk, SCLicense scLicense)
          Adds an association between the s c product entry and the s c license.
static void addSCLicenses(long pk, List<SCLicense> scLicenses)
          Adds an association between the s c product entry and the s c licenses.
static void addSCLicenses(long pk, long[] scLicensePKs)
          Adds an association between the s c product entry and the s c licenses.
static void cacheResult(List<SCProductEntry> scProductEntries)
          Caches the s c product entries in the entity cache if it is enabled.
static void cacheResult(SCProductEntry scProductEntry)
          Caches the s c product entry in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SCProductEntry scProductEntry)
           
static void clearSCLicenses(long pk)
          Clears all associations between the s c product entry and its s c licenses.
static boolean containsSCLicense(long pk, long scLicensePK)
          Determines whether the s c license is associated with the s c product entry.
static boolean containsSCLicenses(long pk)
          Determines whether the s c product entry has any s c licenses associated with it.
static int countAll()
          Counts all the s c product entries.
static int countByCompanyId(long companyId)
          Counts all the s c product entries where companyId = ?.
static int countByG_U(long groupId, long userId)
          Counts all the s c product entries where groupId = ? and userId = ?.
static int countByGroupId(long groupId)
          Counts all the s c product entries where groupId = ?.
static int countByRG_RA(String repoGroupId, String repoArtifactId)
          Counts all the s c product entries where repoGroupId = ? and repoArtifactId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SCProductEntry create(long productEntryId)
          Creates a new s c product entry with the primary key.
static SCProductEntry fetchByPrimaryKey(long productEntryId)
          Finds the s c product entry with the primary key or returns null if it could not be found.
static SCProductEntry fetchByRG_RA(String repoGroupId, String repoArtifactId)
          Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found.
static SCProductEntry fetchByRG_RA(String repoGroupId, String repoArtifactId, boolean retrieveFromCache)
          Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found, optionally using the finder cache.
static int filterCountByG_U(long groupId, long userId)
          Filters by the user's permissions and counts all the s c product entries where groupId = ? and userId = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the s c product entries where groupId = ?.
static List<SCProductEntry> filterFindByG_U(long groupId, long userId)
          Filters by the user's permissions and finds all the s c product entries where groupId = ? and userId = ?.
static List<SCProductEntry> filterFindByG_U(long groupId, long userId, int start, int end)
          Filters by the user's permissions and finds a range of all the s c product entries where groupId = ? and userId = ?.
static List<SCProductEntry> filterFindByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the s c product entries where groupId = ? and userId = ?.
static List<SCProductEntry> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the s c product entries where groupId = ?.
static List<SCProductEntry> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the s c product entries where groupId = ?.
static List<SCProductEntry> 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 product entries where groupId = ?.
static List<SCProductEntry> findAll()
          Finds all the s c product entries.
static List<SCProductEntry> findAll(int start, int end)
          Finds a range of all the s c product entries.
static List<SCProductEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries.
static SCProductEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first s c product entry in the ordered set where companyId = ?.
static SCProductEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last s c product entry in the ordered set where companyId = ?.
static SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId, long companyId, OrderByComparator orderByComparator)
          Finds the s c product entries before and after the current s c product entry in the ordered set where companyId = ?.
static List<SCProductEntry> findByCompanyId(long companyId)
          Finds all the s c product entries where companyId = ?.
static List<SCProductEntry> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the s c product entries where companyId = ?.
static List<SCProductEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries where companyId = ?.
static SCProductEntry findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the first s c product entry in the ordered set where groupId = ? and userId = ?.
static SCProductEntry findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the last s c product entry in the ordered set where groupId = ? and userId = ?.
static SCProductEntry[] findByG_U_PrevAndNext(long productEntryId, long groupId, long userId, OrderByComparator orderByComparator)
          Finds the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?.
static List<SCProductEntry> findByG_U(long groupId, long userId)
          Finds all the s c product entries where groupId = ? and userId = ?.
static List<SCProductEntry> findByG_U(long groupId, long userId, int start, int end)
          Finds a range of all the s c product entries where groupId = ? and userId = ?.
static List<SCProductEntry> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries where groupId = ? and userId = ?.
static SCProductEntry findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first s c product entry in the ordered set where groupId = ?.
static SCProductEntry findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last s c product entry in the ordered set where groupId = ?.
static SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId, long groupId, OrderByComparator orderByComparator)
          Finds the s c product entries before and after the current s c product entry in the ordered set where groupId = ?.
static List<SCProductEntry> findByGroupId(long groupId)
          Finds all the s c product entries where groupId = ?.
static List<SCProductEntry> findByGroupId(long groupId, int start, int end)
          Finds a range of all the s c product entries where groupId = ?.
static List<SCProductEntry> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries where groupId = ?.
static SCProductEntry findByPrimaryKey(long productEntryId)
          Finds the s c product entry with the primary key or throws a NoSuchProductEntryException if it could not be found.
static SCProductEntry findByRG_RA(String repoGroupId, String repoArtifactId)
          Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a NoSuchProductEntryException if it could not be found.
static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SCProductEntryPersistence getPersistence()
           
static List<SCLicense> getSCLicenses(long pk)
          Gets all the s c licenses associated with the s c product entry.
static List<SCLicense> getSCLicenses(long pk, int start, int end)
          Gets a range of all the s c licenses associated with the s c product entry.
static List<SCLicense> getSCLicenses(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the s c licenses associated with the s c product entry.
static int getSCLicensesSize(long pk)
          Gets the number of s c licenses associated with the s c product entry.
static SCProductEntry remove(long productEntryId)
          Removes the s c product entry with the primary key from the database.
static SCProductEntry remove(SCProductEntry scProductEntry)
           
static void removeAll()
          Removes all the s c product entries from the database.
static void removeByCompanyId(long companyId)
          Removes all the s c product entries where companyId = ? from the database.
static void removeByG_U(long groupId, long userId)
          Removes all the s c product entries where groupId = ? and userId = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the s c product entries where groupId = ? from the database.
static void removeByRG_RA(String repoGroupId, String repoArtifactId)
          Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database.
static void removeSCLicense(long pk, long scLicensePK)
          Removes the association between the s c product entry and the s c license.
static void removeSCLicense(long pk, SCLicense scLicense)
          Removes the association between the s c product entry and the s c license.
static void removeSCLicenses(long pk, List<SCLicense> scLicenses)
          Removes the association between the s c product entry and the s c licenses.
static void removeSCLicenses(long pk, long[] scLicensePKs)
          Removes the association between the s c product entry and the s c licenses.
 void setPersistence(SCProductEntryPersistence persistence)
           
static void setSCLicenses(long pk, List<SCLicense> scLicenses)
          Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary.
static void setSCLicenses(long pk, long[] scLicensePKs)
          Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary.
static SCProductEntry update(SCProductEntry scProductEntry, boolean merge)
           
static SCProductEntry update(SCProductEntry scProductEntry, boolean merge, ServiceContext serviceContext)
           
static SCProductEntry updateImpl(SCProductEntry scProductEntry, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductEntryUtil

public SCProductEntryUtil()
Method Detail

clearCache

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

clearCache

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

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

update

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

update

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

cacheResult

public static void cacheResult(SCProductEntry scProductEntry)
Caches the s c product entry in the entity cache if it is enabled.

Parameters:
scProductEntry - the s c product entry to cache

cacheResult

public static void cacheResult(List<SCProductEntry> scProductEntries)
Caches the s c product entries in the entity cache if it is enabled.

Parameters:
scProductEntries - the s c product entries to cache

create

public static SCProductEntry create(long productEntryId)
Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.

Parameters:
productEntryId - the primary key for the new s c product entry
Returns:
the new s c product entry

remove

public static SCProductEntry remove(long productEntryId)
                             throws SystemException,
                                    NoSuchProductEntryException
Removes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.

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

updateImpl

public static SCProductEntry updateImpl(SCProductEntry scProductEntry,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException

findByPrimaryKey

public static SCProductEntry findByPrimaryKey(long productEntryId)
                                       throws SystemException,
                                              NoSuchProductEntryException
Finds the s c product entry with the primary key or throws a NoSuchProductEntryException if it could not be found.

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

fetchByPrimaryKey

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

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

findByGroupId

public static List<SCProductEntry> findByGroupId(long groupId)
                                          throws SystemException
Finds all the s c product entries where groupId = ?.

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

findByGroupId

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

findByGroupId

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

findByGroupId_First

public static SCProductEntry findByGroupId_First(long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchProductEntryException
Finds the first s c product entry 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 product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static SCProductEntry findByGroupId_Last(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchProductEntryException
Finds the last s c product entry 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 product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
                                                         long groupId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchProductEntryException
Finds the s c product entries before and after the current s c product entry 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:
productEntryId - the primary key of the current s c product entry
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c product entry
Throws:
NoSuchProductEntryException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

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

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

filterFindByGroupId

public static List<SCProductEntry> filterFindByGroupId(long groupId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Filters by the user's permissions and finds a range of all the s c product entries 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 product entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
Returns:
the range of matching s c product entries that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<SCProductEntry> 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 product entries 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 product entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c product entries that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<SCProductEntry> findByCompanyId(long companyId)
                                            throws SystemException
Finds all the s c product entries where companyId = ?.

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

findByCompanyId

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

findByCompanyId

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

findByCompanyId_First

public static SCProductEntry findByCompanyId_First(long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchProductEntryException
Finds the first s c product entry 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 product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static SCProductEntry findByCompanyId_Last(long companyId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchProductEntryException
Finds the last s c product entry 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 product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
                                                           long companyId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchProductEntryException
Finds the s c product entries before and after the current s c product entry 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:
productEntryId - the primary key of the current s c product entry
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c product entry
Throws:
NoSuchProductEntryException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

findByG_U

public static List<SCProductEntry> findByG_U(long groupId,
                                             long userId)
                                      throws SystemException
Finds all the s c product entries where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching s c product entries
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<SCProductEntry> findByG_U(long groupId,
                                             long userId,
                                             int start,
                                             int end)
                                      throws SystemException
Finds a range of all the s c product entries where groupId = ? and userId = ?.

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

findByG_U

public static List<SCProductEntry> findByG_U(long groupId,
                                             long userId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the s c product entries where groupId = ? and userId = ?.

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

findByG_U_First

public static SCProductEntry findByG_U_First(long groupId,
                                             long userId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchProductEntryException
Finds the first s c product entry in the ordered set where groupId = ? and userId = ?.

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

findByG_U_Last

public static SCProductEntry findByG_U_Last(long groupId,
                                            long userId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchProductEntryException
Finds the last s c product entry in the ordered set where groupId = ? and userId = ?.

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

findByG_U_PrevAndNext

public static SCProductEntry[] findByG_U_PrevAndNext(long productEntryId,
                                                     long groupId,
                                                     long userId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchProductEntryException
Finds the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?.

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

filterFindByG_U

public static List<SCProductEntry> filterFindByG_U(long groupId,
                                                   long userId)
                                            throws SystemException
Filters by the user's permissions and finds all the s c product entries where groupId = ? and userId = ?.

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

filterFindByG_U

public static List<SCProductEntry> filterFindByG_U(long groupId,
                                                   long userId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Filters by the user's permissions and finds a range of all the s c product entries where groupId = ? and userId = ?.

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
userId - the user id to search with
start - the lower bound of the range of s c product entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
Returns:
the range of matching s c product entries that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U

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

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

findByRG_RA

public static SCProductEntry findByRG_RA(String repoGroupId,
                                         String repoArtifactId)
                                  throws SystemException,
                                         NoSuchProductEntryException
Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a NoSuchProductEntryException if it could not be found.

Parameters:
repoGroupId - the repo group id to search with
repoArtifactId - the repo artifact id to search with
Returns:
the matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found
SystemException - if a system exception occurred

fetchByRG_RA

public static SCProductEntry fetchByRG_RA(String repoGroupId,
                                          String repoArtifactId)
                                   throws SystemException
Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
repoGroupId - the repo group id to search with
repoArtifactId - the repo artifact id to search with
Returns:
the matching s c product entry, or null if a matching s c product entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByRG_RA

public static SCProductEntry fetchByRG_RA(String repoGroupId,
                                          String repoArtifactId,
                                          boolean retrieveFromCache)
                                   throws SystemException
Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
repoGroupId - the repo group id to search with
repoArtifactId - the repo artifact id to search with
Returns:
the matching s c product entry, or null if a matching s c product entry could not be found
Throws:
SystemException - if a system exception occurred

findAll

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

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

findAll

public static List<SCProductEntry> findAll(int start,
                                           int end)
                                    throws SystemException
Finds a range of all the s c product entries.

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 entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
Returns:
the range of s c product entries
Throws:
SystemException - if a system exception occurred

findAll

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

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 entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product entries
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the s c product entries 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 product entries where companyId = ? from the database.

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

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
                        throws SystemException
Removes all the s c product entries where groupId = ? and userId = ? from the database.

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

removeByRG_RA

public static void removeByRG_RA(String repoGroupId,
                                 String repoArtifactId)
                          throws SystemException,
                                 NoSuchProductEntryException
Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database.

Parameters:
repoGroupId - the repo group id to search with
repoArtifactId - the repo artifact id to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductEntryException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

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

Parameters:
groupId - the group id to search with
Returns:
the number of matching s c product entries
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 product entries where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching s c product entries 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 product entries where companyId = ?.

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

countByG_U

public static int countByG_U(long groupId,
                             long userId)
                      throws SystemException
Counts all the s c product entries where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching s c product entries
Throws:
SystemException - if a system exception occurred

filterCountByG_U

public static int filterCountByG_U(long groupId,
                                   long userId)
                            throws SystemException
Filters by the user's permissions and counts all the s c product entries where groupId = ? and userId = ?.

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

countByRG_RA

public static int countByRG_RA(String repoGroupId,
                               String repoArtifactId)
                        throws SystemException
Counts all the s c product entries where repoGroupId = ? and repoArtifactId = ?.

Parameters:
repoGroupId - the repo group id to search with
repoArtifactId - the repo artifact id to search with
Returns:
the number of matching s c product entries
Throws:
SystemException - if a system exception occurred

countAll

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

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

getSCLicenses

public static List<SCLicense> getSCLicenses(long pk)
                                     throws SystemException
Gets all the s c licenses associated with the s c product entry.

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

getSCLicenses

public static List<SCLicense> getSCLicenses(long pk,
                                            int start,
                                            int end)
                                     throws SystemException
Gets a range of all the s c licenses associated with the s c product entry.

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 entry to get the associated s c licenses for
start - the lower bound of the range of s c product entries to return
end - the upper bound of the range of s c product entries to return (not inclusive)
Returns:
the range of s c licenses associated with the s c product entry
Throws:
SystemException - if a system exception occurred

getSCLicenses

public static List<SCLicense> getSCLicenses(long pk,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Gets an ordered range of all the s c licenses associated with the s c product entry.

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

getSCLicensesSize

public static int getSCLicensesSize(long pk)
                             throws SystemException
Gets the number of s c licenses associated with the s c product entry.

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

containsSCLicense

public static boolean containsSCLicense(long pk,
                                        long scLicensePK)
                                 throws SystemException
Determines whether the s c license is associated with the s c product entry.

Parameters:
pk - the primary key of the s c product entry
scLicensePK - the primary key of the s c license
Returns:
whether the s c license is associated with the s c product entry
Throws:
SystemException - if a system exception occurred

containsSCLicenses

public static boolean containsSCLicenses(long pk)
                                  throws SystemException
Determines whether the s c product entry has any s c licenses associated with it.

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

addSCLicense

public static void addSCLicense(long pk,
                                long scLicensePK)
                         throws SystemException
Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicensePK - the primary key of the s c license
Throws:
SystemException - if a system exception occurred

addSCLicense

public static void addSCLicense(long pk,
                                SCLicense scLicense)
                         throws SystemException
Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicense - the s c license
Throws:
SystemException - if a system exception occurred

addSCLicenses

public static void addSCLicenses(long pk,
                                 long[] scLicensePKs)
                          throws SystemException
Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicensePKs - the primary keys of the s c licenses
Throws:
SystemException - if a system exception occurred

addSCLicenses

public static void addSCLicenses(long pk,
                                 List<SCLicense> scLicenses)
                          throws SystemException
Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicenses - the s c licenses
Throws:
SystemException - if a system exception occurred

clearSCLicenses

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

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

removeSCLicense

public static void removeSCLicense(long pk,
                                   long scLicensePK)
                            throws SystemException
Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicensePK - the primary key of the s c license
Throws:
SystemException - if a system exception occurred

removeSCLicense

public static void removeSCLicense(long pk,
                                   SCLicense scLicense)
                            throws SystemException
Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicense - the s c license
Throws:
SystemException - if a system exception occurred

removeSCLicenses

public static void removeSCLicenses(long pk,
                                    long[] scLicensePKs)
                             throws SystemException
Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicensePKs - the primary keys of the s c licenses
Throws:
SystemException - if a system exception occurred

removeSCLicenses

public static void removeSCLicenses(long pk,
                                    List<SCLicense> scLicenses)
                             throws SystemException
Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c product entry
scLicenses - the s c licenses
Throws:
SystemException - if a system exception occurred

setSCLicenses

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

setSCLicenses

public static void setSCLicenses(long pk,
                                 List<SCLicense> scLicenses)
                          throws SystemException
Sets the s c licenses associated with the s c product entry, 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 entry to set the associations for
scLicenses - the s c licenses to be associated with the s c product entry
Throws:
SystemException - if a system exception occurred

getPersistence

public static SCProductEntryPersistence getPersistence()

setPersistence

public void setPersistence(SCProductEntryPersistence persistence)

Liferay 6.0.5