Liferay 7.0-ce-a3

com.liferay.portlet.softwarecatalog.service.persistence
Interface SCProductEntryPersistence

All Superinterfaces:
BasePersistence<SCProductEntry>

@ProviderType
public interface SCProductEntryPersistence
extends BasePersistence<SCProductEntry>

The persistence interface for the s c product entry service.

Caching information and settings can be found in portal.properties

See Also:
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductEntryPersistenceImpl, SCProductEntryUtil

Method Summary
 void addSCLicense(long pk, long scLicensePK)
          Adds an association between the s c product entry and the s c license.
 void addSCLicense(long pk, SCLicense scLicense)
          Adds an association between the s c product entry and the s c license.
 void addSCLicenses(long pk, List<SCLicense> scLicenses)
          Adds an association between the s c product entry and the s c licenses.
 void addSCLicenses(long pk, long[] scLicensePKs)
          Adds an association between the s c product entry and the s c licenses.
 void cacheResult(List<SCProductEntry> scProductEntries)
          Caches the s c product entries in the entity cache if it is enabled.
 void cacheResult(SCProductEntry scProductEntry)
          Caches the s c product entry in the entity cache if it is enabled.
 void clearSCLicenses(long pk)
          Clears all associations between the s c product entry and its s c licenses.
 boolean containsSCLicense(long pk, long scLicensePK)
          Returns true if the s c license is associated with the s c product entry.
 boolean containsSCLicenses(long pk)
          Returns true if the s c product entry has any s c licenses associated with it.
 int countAll()
          Returns the number of s c product entries.
 int countByCompanyId(long companyId)
          Returns the number of s c product entries where companyId = ?.
 int countByG_U(long groupId, long userId)
          Returns the number of s c product entries where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Returns the number of s c product entries where groupId = ?.
 int countByRG_RA(String repoGroupId, String repoArtifactId)
          Returns the number of s c product entries where repoGroupId = ? and repoArtifactId = ?.
 SCProductEntry create(long productEntryId)
          Creates a new s c product entry with the primary key.
 SCProductEntry fetchByCompanyId_First(long companyId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where companyId = ?.
 SCProductEntry fetchByCompanyId_Last(long companyId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where companyId = ?.
 SCProductEntry fetchByG_U_First(long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where groupId = ? and userId = ?.
 SCProductEntry fetchByG_U_Last(long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where groupId = ? and userId = ?.
 SCProductEntry fetchByGroupId_First(long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where groupId = ?.
 SCProductEntry fetchByGroupId_Last(long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where groupId = ?.
 SCProductEntry fetchByPrimaryKey(long productEntryId)
          Returns the s c product entry with the primary key or returns null if it could not be found.
 Map<Serializable,SCProductEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 SCProductEntry fetchByRG_RA(String repoGroupId, String repoArtifactId)
          Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found.
 SCProductEntry fetchByRG_RA(String repoGroupId, String repoArtifactId, boolean retrieveFromCache)
          Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found, optionally using the finder cache.
 int filterCountByG_U(long groupId, long userId)
          Returns the number of s c product entries that the user has permission to view where groupId = ? and userId = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of s c product entries that the user has permission to view where groupId = ?.
 SCProductEntry[] filterFindByG_U_PrevAndNext(long productEntryId, long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ? and userId = ?.
 List<SCProductEntry> filterFindByG_U(long groupId, long userId)
          Returns all the s c product entries that the user has permission to view where groupId = ? and userId = ?.
 List<SCProductEntry> filterFindByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the s c product entries that the user has permission to view where groupId = ? and userId = ?.
 List<SCProductEntry> filterFindByG_U(long groupId, long userId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ? and userId = ?.
 SCProductEntry[] filterFindByGroupId_PrevAndNext(long productEntryId, long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ?.
 List<SCProductEntry> filterFindByGroupId(long groupId)
          Returns all the s c product entries that the user has permission to view where groupId = ?.
 List<SCProductEntry> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the s c product entries that the user has permission to view where groupId = ?.
 List<SCProductEntry> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ?.
 List<SCProductEntry> findAll()
          Returns all the s c product entries.
 List<SCProductEntry> findAll(int start, int end)
          Returns a range of all the s c product entries.
 List<SCProductEntry> findAll(int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries.
 List<SCProductEntry> findAll(int start, int end, OrderByComparator<SCProductEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product entries.
 SCProductEntry findByCompanyId_First(long companyId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where companyId = ?.
 SCProductEntry findByCompanyId_Last(long companyId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where companyId = ?.
 SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId, long companyId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the s c product entries before and after the current s c product entry in the ordered set where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId)
          Returns all the s c product entries where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the s c product entries where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product entries where companyId = ?.
 SCProductEntry findByG_U_First(long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where groupId = ? and userId = ?.
 SCProductEntry findByG_U_Last(long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where groupId = ? and userId = ?.
 SCProductEntry[] findByG_U_PrevAndNext(long productEntryId, long groupId, long userId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?.
 List<SCProductEntry> findByG_U(long groupId, long userId)
          Returns all the s c product entries where groupId = ? and userId = ?.
 List<SCProductEntry> findByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the s c product entries where groupId = ? and userId = ?.
 List<SCProductEntry> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries where groupId = ? and userId = ?.
 List<SCProductEntry> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product entries where groupId = ? and userId = ?.
 SCProductEntry findByGroupId_First(long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the first s c product entry in the ordered set where groupId = ?.
 SCProductEntry findByGroupId_Last(long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the last s c product entry in the ordered set where groupId = ?.
 SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId, long groupId, OrderByComparator<SCProductEntry> orderByComparator)
          Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId)
          Returns all the s c product entries where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId, int start, int end)
          Returns a range of all the s c product entries where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
          Returns an ordered range of all the s c product entries where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product entries where groupId = ?.
 SCProductEntry findByPrimaryKey(long productEntryId)
          Returns the s c product entry with the primary key or throws a NoSuchProductEntryException if it could not be found.
 SCProductEntry findByRG_RA(String repoGroupId, String repoArtifactId)
          Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a NoSuchProductEntryException if it could not be found.
 Set<String> getBadColumnNames()
           
 long[] getSCLicensePrimaryKeys(long pk)
          Returns the primaryKeys of s c licenses associated with the s c product entry.
 List<SCLicense> getSCLicenses(long pk)
          Returns all the s c licenses associated with the s c product entry.
 List<SCLicense> getSCLicenses(long pk, int start, int end)
          Returns a range of all the s c licenses associated with the s c product entry.
 List<SCLicense> getSCLicenses(long pk, int start, int end, OrderByComparator<SCLicense> orderByComparator)
          Returns an ordered range of all the s c licenses associated with the s c product entry.
 int getSCLicensesSize(long pk)
          Returns the number of s c licenses associated with the s c product entry.
 SCProductEntry remove(long productEntryId)
          Removes the s c product entry with the primary key from the database.
 void removeAll()
          Removes all the s c product entries from the database.
 void removeByCompanyId(long companyId)
          Removes all the s c product entries where companyId = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the s c product entries where groupId = ? and userId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the s c product entries where groupId = ? from the database.
 SCProductEntry removeByRG_RA(String repoGroupId, String repoArtifactId)
          Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database.
 void removeSCLicense(long pk, long scLicensePK)
          Removes the association between the s c product entry and the s c license.
 void removeSCLicense(long pk, SCLicense scLicense)
          Removes the association between the s c product entry and the s c license.
 void removeSCLicenses(long pk, List<SCLicense> scLicenses)
          Removes the association between the s c product entry and the s c licenses.
 void removeSCLicenses(long pk, long[] scLicensePKs)
          Removes the association between the s c product entry and the s c licenses.
 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.
 void setSCLicenses(long pk, long[] scLicensePKs)
          Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary.
 SCProductEntry updateImpl(SCProductEntry scProductEntry)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<SCProductEntry> findByGroupId(long groupId)
Returns all the s c product entries where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching s c product entries

findByGroupId

List<SCProductEntry> findByGroupId(long groupId,
                                   int start,
                                   int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of matching s c product entries

findByGroupId

List<SCProductEntry> findByGroupId(long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator<SCProductEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product entries

findByGroupId

List<SCProductEntry> findByGroupId(long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator<SCProductEntry> orderByComparator,
                                   boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching s c product entries

findByGroupId_First

SCProductEntry findByGroupId_First(long groupId,
                                   OrderByComparator<SCProductEntry> orderByComparator)
                                   throws NoSuchProductEntryException
Returns the first s c product entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByGroupId_First

SCProductEntry fetchByGroupId_First(long groupId,
                                    OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry, or null if a matching s c product entry could not be found

findByGroupId_Last

SCProductEntry findByGroupId_Last(long groupId,
                                  OrderByComparator<SCProductEntry> orderByComparator)
                                  throws NoSuchProductEntryException
Returns the last s c product entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByGroupId_Last

SCProductEntry fetchByGroupId_Last(long groupId,
                                   OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry, or null if a matching s c product entry could not be found

findByGroupId_PrevAndNext

SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
                                           long groupId,
                                           OrderByComparator<SCProductEntry> orderByComparator)
                                           throws NoSuchProductEntryException
Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ?.

Parameters:
productEntryId - the primary key of the current s c product entry
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
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

filterFindByGroupId

List<SCProductEntry> filterFindByGroupId(long groupId)
Returns all the s c product entries that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching s c product entries that the user has permission to view

filterFindByGroupId

List<SCProductEntry> filterFindByGroupId(long groupId,
                                         int start,
                                         int end)
Returns a range of all the s c product entries that the user has permission to view 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of matching s c product entries that the user has permission to view

filterFindByGroupId

List<SCProductEntry> filterFindByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries that the user has permissions to view 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product entries that the user has permission to view

filterFindByGroupId_PrevAndNext

SCProductEntry[] filterFindByGroupId_PrevAndNext(long productEntryId,
                                                 long groupId,
                                                 OrderByComparator<SCProductEntry> orderByComparator)
                                                 throws NoSuchProductEntryException
Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ?.

Parameters:
productEntryId - the primary key of the current s c product entry
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByGroupId

void removeByGroupId(long groupId)
Removes all the s c product entries where groupId = ? from the database.

Parameters:
groupId - the group ID

countByGroupId

int countByGroupId(long groupId)
Returns the number of s c product entries where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching s c product entries

filterCountByGroupId

int filterCountByGroupId(long groupId)
Returns the number of s c product entries that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching s c product entries that the user has permission to view

findByCompanyId

List<SCProductEntry> findByCompanyId(long companyId)
Returns all the s c product entries where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching s c product entries

findByCompanyId

List<SCProductEntry> findByCompanyId(long companyId,
                                     int start,
                                     int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of matching s c product entries

findByCompanyId

List<SCProductEntry> findByCompanyId(long companyId,
                                     int start,
                                     int end,
                                     OrderByComparator<SCProductEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product entries

findByCompanyId

List<SCProductEntry> findByCompanyId(long companyId,
                                     int start,
                                     int end,
                                     OrderByComparator<SCProductEntry> orderByComparator,
                                     boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching s c product entries

findByCompanyId_First

SCProductEntry findByCompanyId_First(long companyId,
                                     OrderByComparator<SCProductEntry> orderByComparator)
                                     throws NoSuchProductEntryException
Returns the first s c product entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByCompanyId_First

SCProductEntry fetchByCompanyId_First(long companyId,
                                      OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry, or null if a matching s c product entry could not be found

findByCompanyId_Last

SCProductEntry findByCompanyId_Last(long companyId,
                                    OrderByComparator<SCProductEntry> orderByComparator)
                                    throws NoSuchProductEntryException
Returns the last s c product entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByCompanyId_Last

SCProductEntry fetchByCompanyId_Last(long companyId,
                                     OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry, or null if a matching s c product entry could not be found

findByCompanyId_PrevAndNext

SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
                                             long companyId,
                                             OrderByComparator<SCProductEntry> orderByComparator)
                                             throws NoSuchProductEntryException
Returns the s c product entries before and after the current s c product entry in the ordered set where companyId = ?.

Parameters:
productEntryId - the primary key of the current s c product entry
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByCompanyId

void removeByCompanyId(long companyId)
Removes all the s c product entries where companyId = ? from the database.

Parameters:
companyId - the company ID

countByCompanyId

int countByCompanyId(long companyId)
Returns the number of s c product entries where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching s c product entries

findByG_U

List<SCProductEntry> findByG_U(long groupId,
                               long userId)
Returns all the s c product entries where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching s c product entries

findByG_U

List<SCProductEntry> findByG_U(long groupId,
                               long userId,
                               int start,
                               int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of matching s c product entries

findByG_U

List<SCProductEntry> findByG_U(long groupId,
                               long userId,
                               int start,
                               int end,
                               OrderByComparator<SCProductEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product entries

findByG_U

List<SCProductEntry> findByG_U(long groupId,
                               long userId,
                               int start,
                               int end,
                               OrderByComparator<SCProductEntry> orderByComparator,
                               boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching s c product entries

findByG_U_First

SCProductEntry findByG_U_First(long groupId,
                               long userId,
                               OrderByComparator<SCProductEntry> orderByComparator)
                               throws NoSuchProductEntryException
Returns the first s c product entry in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByG_U_First

SCProductEntry fetchByG_U_First(long groupId,
                                long userId,
                                OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product entry, or null if a matching s c product entry could not be found

findByG_U_Last

SCProductEntry findByG_U_Last(long groupId,
                              long userId,
                              OrderByComparator<SCProductEntry> orderByComparator)
                              throws NoSuchProductEntryException
Returns the last s c product entry in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByG_U_Last

SCProductEntry fetchByG_U_Last(long groupId,
                               long userId,
                               OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product entry, or null if a matching s c product entry could not be found

findByG_U_PrevAndNext

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

Parameters:
productEntryId - the primary key of the current s c product entry
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
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

filterFindByG_U

List<SCProductEntry> filterFindByG_U(long groupId,
                                     long userId)
Returns all the s c product entries that the user has permission to view where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching s c product entries that the user has permission to view

filterFindByG_U

List<SCProductEntry> filterFindByG_U(long groupId,
                                     long userId,
                                     int start,
                                     int end)
Returns a range of all the s c product entries that the user has permission to view 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of matching s c product entries that the user has permission to view

filterFindByG_U

List<SCProductEntry> filterFindByG_U(long groupId,
                                     long userId,
                                     int start,
                                     int end,
                                     OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries that the user has permissions to view 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product entries that the user has permission to view

filterFindByG_U_PrevAndNext

SCProductEntry[] filterFindByG_U_PrevAndNext(long productEntryId,
                                             long groupId,
                                             long userId,
                                             OrderByComparator<SCProductEntry> orderByComparator)
                                             throws NoSuchProductEntryException
Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ? and userId = ?.

Parameters:
productEntryId - the primary key of the current s c product entry
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByG_U

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

Parameters:
groupId - the group ID
userId - the user ID

countByG_U

int countByG_U(long groupId,
               long userId)
Returns the number of s c product entries where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching s c product entries

filterCountByG_U

int filterCountByG_U(long groupId,
                     long userId)
Returns the number of s c product entries that the user has permission to view where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching s c product entries that the user has permission to view

findByRG_RA

SCProductEntry findByRG_RA(String repoGroupId,
                           String repoArtifactId)
                           throws NoSuchProductEntryException
Returns 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
repoArtifactId - the repo artifact ID
Returns:
the matching s c product entry
Throws:
NoSuchProductEntryException - if a matching s c product entry could not be found

fetchByRG_RA

SCProductEntry fetchByRG_RA(String repoGroupId,
                            String repoArtifactId)
Returns 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
repoArtifactId - the repo artifact ID
Returns:
the matching s c product entry, or null if a matching s c product entry could not be found

fetchByRG_RA

SCProductEntry fetchByRG_RA(String repoGroupId,
                            String repoArtifactId,
                            boolean retrieveFromCache)
Returns 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
repoArtifactId - the repo artifact ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching s c product entry, or null if a matching s c product entry could not be found

removeByRG_RA

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

Parameters:
repoGroupId - the repo group ID
repoArtifactId - the repo artifact ID
Returns:
the s c product entry that was removed
Throws:
NoSuchProductEntryException

countByRG_RA

int countByRG_RA(String repoGroupId,
                 String repoArtifactId)
Returns the number of s c product entries where repoGroupId = ? and repoArtifactId = ?.

Parameters:
repoGroupId - the repo group ID
repoArtifactId - the repo artifact ID
Returns:
the number of matching s c product entries

cacheResult

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

cacheResult

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

create

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

SCProductEntry remove(long productEntryId)
                      throws 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
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

updateImpl

SCProductEntry updateImpl(SCProductEntry scProductEntry)

findByPrimaryKey

SCProductEntry findByPrimaryKey(long productEntryId)
                                throws NoSuchProductEntryException
Returns 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
Returns:
the s c product entry
Throws:
NoSuchProductEntryException - if a s c product entry with the primary key could not be found

fetchByPrimaryKey

SCProductEntry fetchByPrimaryKey(long productEntryId)
Returns 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
Returns:
the s c product entry, or null if a s c product entry with the primary key could not be found

fetchByPrimaryKeys

Map<Serializable,SCProductEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<SCProductEntry>

findAll

List<SCProductEntry> findAll()
Returns all the s c product entries.

Returns:
the s c product entries

findAll

List<SCProductEntry> findAll(int start,
                             int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of s c product entries

findAll

List<SCProductEntry> findAll(int start,
                             int end,
                             OrderByComparator<SCProductEntry> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c product entries

findAll

List<SCProductEntry> findAll(int start,
                             int end,
                             OrderByComparator<SCProductEntry> orderByComparator,
                             boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of s c product entries

removeAll

void removeAll()
Removes all the s c product entries from the database.


countAll

int countAll()
Returns the number of s c product entries.

Returns:
the number of s c product entries

getSCLicensePrimaryKeys

long[] getSCLicensePrimaryKeys(long pk)
Returns the primaryKeys of s c licenses associated with the s c product entry.

Parameters:
pk - the primary key of the s c product entry
Returns:
long[] of the primaryKeys of s c licenses associated with the s c product entry

getSCLicenses

List<SCLicense> getSCLicenses(long pk)
Returns all the s c licenses associated with the s c product entry.

Parameters:
pk - the primary key of the s c product entry
Returns:
the s c licenses associated with the s c product entry

getSCLicenses

List<SCLicense> getSCLicenses(long pk,
                              int start,
                              int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the s c product entry
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
Returns:
the range of s c licenses associated with the s c product entry

getSCLicenses

List<SCLicense> getSCLicenses(long pk,
                              int start,
                              int end,
                              OrderByComparator<SCLicense> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the s c product entry
start - the lower bound of the range of s c product entries
end - the upper bound of the range of s c product entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c licenses associated with the s c product entry

getSCLicensesSize

int getSCLicensesSize(long pk)
Returns the number of s c licenses associated with the s c product entry.

Parameters:
pk - the primary key of the s c product entry
Returns:
the number of s c licenses associated with the s c product entry

containsSCLicense

boolean containsSCLicense(long pk,
                          long scLicensePK)
Returns true if 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:
true if the s c license is associated with the s c product entry; false otherwise

containsSCLicenses

boolean containsSCLicenses(long pk)
Returns true if 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:
true if the s c product entry has any s c licenses associated with it; false otherwise

addSCLicense

void addSCLicense(long pk,
                  long scLicensePK)
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

addSCLicense

void addSCLicense(long pk,
                  SCLicense scLicense)
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

addSCLicenses

void addSCLicenses(long pk,
                   long[] scLicensePKs)
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

addSCLicenses

void addSCLicenses(long pk,
                   List<SCLicense> scLicenses)
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

clearSCLicenses

void clearSCLicenses(long pk)
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

removeSCLicense

void removeSCLicense(long pk,
                     long scLicensePK)
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

removeSCLicense

void removeSCLicense(long pk,
                     SCLicense scLicense)
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

removeSCLicenses

void removeSCLicenses(long pk,
                      long[] scLicensePKs)
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

removeSCLicenses

void removeSCLicenses(long pk,
                      List<SCLicense> scLicenses)
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

setSCLicenses

void setSCLicenses(long pk,
                   long[] scLicensePKs)
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
scLicensePKs - the primary keys of the s c licenses to be associated with the s c product entry

setSCLicenses

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. 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 to be associated with the s c product entry

getBadColumnNames

Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<SCProductEntry>

Liferay 7.0-ce-a3