Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SCProductEntry>
      extended by com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SCProductEntry>, SCProductEntryPersistence

public class SCProductEntryPersistenceImpl
extends BasePersistenceImpl<SCProductEntry>
implements SCProductEntryPersistence

The persistence implementation for the s c product entry service.

Never modify or reference this class directly. Always use SCProductEntryUtil to access the s c product entry persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Nested Class Summary
protected  class SCProductEntryPersistenceImpl.AddSCLicense
           
protected  class SCProductEntryPersistenceImpl.ClearSCLicenses
           
protected  class SCProductEntryPersistenceImpl.ContainsSCLicense
           
protected  class SCProductEntryPersistenceImpl.RemoveSCLicense
           
 
Field Summary
protected  SCProductEntryPersistenceImpl.AddSCLicense addSCLicense
           
protected  SCProductEntryPersistenceImpl.ClearSCLicenses clearSCLicenses
           
protected  SCProductEntryPersistenceImpl.ContainsSCLicense containsSCLicense
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_SCLICENSE
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_RG_RA
           
static FinderPath FINDER_PATH_FETCH_BY_RG_RA
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_G_U
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_GET_SCLICENSES
           
static FinderPath FINDER_PATH_GET_SCLICENSES_SIZE
           
protected  GroupPersistence groupPersistence
           
protected  ImagePersistence imagePersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  RatingsStatsPersistence ratingsStatsPersistence
           
protected  SCProductEntryPersistenceImpl.RemoveSCLicense removeSCLicense
           
protected  ResourcePersistence resourcePersistence
           
protected  SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  SCLicensePersistence scLicensePersistence
           
protected  SCProductEntryPersistence scProductEntryPersistence
           
protected  SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  SCProductVersionPersistence scProductVersionPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SCProductEntryPersistenceImpl()
           
 
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 afterPropertiesSet()
          Initializes the s c product entry persistence.
 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 clearCache()
          Clears the cache for all s c product entries.
 void clearCache(SCProductEntry scProductEntry)
          Clears the cache for the s c product entry.
 void clearSCLicenses(long pk)
          Clears all associations between the s c product entry and its s c licenses.
 boolean containsSCLicense(long pk, long scLicensePK)
          Determines whether the s c license is associated with the s c product entry.
 boolean containsSCLicenses(long pk)
          Determines whether the s c product entry has any s c licenses associated with it.
 int countAll()
          Counts all the s c product entries.
 int countByCompanyId(long companyId)
          Counts all the s c product entries where companyId = ?.
 int countByG_U(long groupId, long userId)
          Counts all the s c product entries where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Counts all the s c product entries where groupId = ?.
 int countByRG_RA(String repoGroupId, String repoArtifactId)
          Counts all the s c product entries where repoGroupId = ? and repoArtifactId = ?.
 SCProductEntry create(long productEntryId)
          Creates a new s c product entry with the primary key.
 SCProductEntry fetchByPrimaryKey(long productEntryId)
          Finds the s c product entry with the primary key or returns null if it could not be found.
 SCProductEntry fetchByPrimaryKey(Serializable primaryKey)
          Finds the s c product entry with the primary key or returns null if it could not be found.
 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.
 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.
 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 = ?.
 int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the s c product entries where groupId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<SCProductEntry> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the s c product entries where groupId = ?.
 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 = ?.
 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 = ?.
 List<SCProductEntry> findAll()
          Finds all the s c product entries.
 List<SCProductEntry> findAll(int start, int end)
          Finds a range of all the s c product entries.
 List<SCProductEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries.
 SCProductEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first s c product entry in the ordered set where companyId = ?.
 SCProductEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last s c product entry in the ordered set where companyId = ?.
 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 = ?.
 List<SCProductEntry> findByCompanyId(long companyId)
          Finds all the s c product entries where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the s c product entries where companyId = ?.
 List<SCProductEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries where companyId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<SCProductEntry> findByG_U(long groupId, long userId)
          Finds all the s c product entries where groupId = ? and userId = ?.
 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 = ?.
 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 = ?.
 SCProductEntry findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first s c product entry in the ordered set where groupId = ?.
 SCProductEntry findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last s c product entry in the ordered set where groupId = ?.
 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 = ?.
 List<SCProductEntry> findByGroupId(long groupId)
          Finds all the s c product entries where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId, int start, int end)
          Finds a range of all the s c product entries where groupId = ?.
 List<SCProductEntry> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product entries where groupId = ?.
 SCProductEntry findByPrimaryKey(long productEntryId)
          Finds the s c product entry with the primary key or throws a NoSuchProductEntryException if it could not be found.
 SCProductEntry findByPrimaryKey(Serializable primaryKey)
          Finds the s c product entry with the primary key or throws a NoSuchModelException if it could not be found.
 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.
protected  SCProductEntry getByCompanyId_PrevAndNext(Session session, SCProductEntry scProductEntry, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  SCProductEntry getByG_U_PrevAndNext(Session session, SCProductEntry scProductEntry, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  SCProductEntry getByGroupId_PrevAndNext(Session session, SCProductEntry scProductEntry, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 List<SCLicense> getSCLicenses(long pk)
          Gets all the s c licenses associated with the s c product entry.
 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.
 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.
 int getSCLicensesSize(long pk)
          Gets 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.
 SCProductEntry remove(Serializable primaryKey)
          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.
 void removeByRG_RA(String repoGroupId, String repoArtifactId)
          Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database.
protected  SCProductEntry removeImpl(SCProductEntry scProductEntry)
          Removes the model instance 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.
protected  SCProductEntry toUnwrappedModel(SCProductEntry scProductEntry)
           
 SCProductEntry updateImpl(SCProductEntry scProductEntry, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FIND_BY_G_U

public static final FinderPath FINDER_PATH_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_FETCH_BY_RG_RA

public static final FinderPath FINDER_PATH_FETCH_BY_RG_RA

FINDER_PATH_COUNT_BY_RG_RA

public static final FinderPath FINDER_PATH_COUNT_BY_RG_RA

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_SCLICENSES

public static final FinderPath FINDER_PATH_GET_SCLICENSES

FINDER_PATH_GET_SCLICENSES_SIZE

public static final FinderPath FINDER_PATH_GET_SCLICENSES_SIZE

FINDER_PATH_CONTAINS_SCLICENSE

public static final FinderPath FINDER_PATH_CONTAINS_SCLICENSE

scLicensePersistence

@BeanReference(type=SCLicensePersistence.class)
protected SCLicensePersistence scLicensePersistence

scFrameworkVersionPersistence

@BeanReference(type=SCFrameworkVersionPersistence.class)
protected SCFrameworkVersionPersistence scFrameworkVersionPersistence

scProductEntryPersistence

@BeanReference(type=SCProductEntryPersistence.class)
protected SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(type=SCProductScreenshotPersistence.class)
protected SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(type=SCProductVersionPersistence.class)
protected SCProductVersionPersistence scProductVersionPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

ratingsStatsPersistence

@BeanReference(type=RatingsStatsPersistence.class)
protected RatingsStatsPersistence ratingsStatsPersistence

containsSCLicense

protected SCProductEntryPersistenceImpl.ContainsSCLicense containsSCLicense

addSCLicense

protected SCProductEntryPersistenceImpl.AddSCLicense addSCLicense

clearSCLicenses

protected SCProductEntryPersistenceImpl.ClearSCLicenses clearSCLicenses

removeSCLicense

protected SCProductEntryPersistenceImpl.RemoveSCLicense removeSCLicense
Constructor Detail

SCProductEntryPersistenceImpl

public SCProductEntryPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface SCProductEntryPersistence
Parameters:
scProductEntry - the s c product entry to cache

cacheResult

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

Specified by:
cacheResult in interface SCProductEntryPersistence
Parameters:
scProductEntries - the s c product entries to cache

clearCache

public void clearCache()
Clears the cache for all s c product entries.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductEntry>
Overrides:
clearCache in class BasePersistenceImpl<SCProductEntry>

clearCache

public void clearCache(SCProductEntry scProductEntry)
Clears the cache for the s c product entry.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductEntry>
Overrides:
clearCache in class BasePersistenceImpl<SCProductEntry>
Parameters:
scProductEntry - the instance of this model to clear the cache for

create

public 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.

Specified by:
create in interface SCProductEntryPersistence
Parameters:
productEntryId - the primary key for the new s c product entry
Returns:
the new s c product entry

remove

public SCProductEntry remove(Serializable primaryKey)
                      throws NoSuchModelException,
                             SystemException
Removes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SCProductEntry>
Overrides:
remove in class BasePersistenceImpl<SCProductEntry>
Parameters:
primaryKey - the primary key of the s c product entry to remove
Returns:
the s c product entry that was removed
Throws:
NoSuchModelException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface SCProductEntryPersistence
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

removeImpl

protected SCProductEntry removeImpl(SCProductEntry scProductEntry)
                             throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SCProductEntry>
Parameters:
scProductEntry - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SCProductEntry updateImpl(SCProductEntry scProductEntry,
                                 boolean merge)
                          throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SCProductEntryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SCProductEntry>
Parameters:
scProductEntry - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SCProductEntry toUnwrappedModel(SCProductEntry scProductEntry)

findByPrimaryKey

public SCProductEntry findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchModelException,
                                       SystemException
Finds the s c product entry with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SCProductEntry>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SCProductEntry>
Parameters:
primaryKey - the primary key of the s c product entry to find
Returns:
the s c product entry
Throws:
NoSuchModelException - if a s c product entry with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface SCProductEntryPersistence
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 SCProductEntry fetchByPrimaryKey(Serializable primaryKey)
                                 throws SystemException
Finds the s c product entry with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SCProductEntry>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SCProductEntry>
Parameters:
primaryKey - 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

fetchByPrimaryKey

public 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.

Specified by:
fetchByPrimaryKey in interface SCProductEntryPersistence
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 List<SCProductEntry> findByGroupId(long groupId)
                                   throws SystemException
Finds all the s c product entries where groupId = ?.

Specified by:
findByGroupId in interface SCProductEntryPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching s c product entries
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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.

Specified by:
findByGroupId in interface SCProductEntryPersistence
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 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.

Specified by:
findByGroupId in interface SCProductEntryPersistence
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 SCProductEntry findByGroupId_First(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchProductEntryException,
                                          SystemException
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.

Specified by:
findByGroupId_First in interface SCProductEntryPersistence
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 SCProductEntry findByGroupId_Last(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchProductEntryException,
                                         SystemException
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.

Specified by:
findByGroupId_Last in interface SCProductEntryPersistence
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 SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
                                                  long groupId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchProductEntryException,
                                                  SystemException
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.

Specified by:
findByGroupId_PrevAndNext in interface SCProductEntryPersistence
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

getByGroupId_PrevAndNext

protected SCProductEntry getByGroupId_PrevAndNext(Session session,
                                                  SCProductEntry scProductEntry,
                                                  long groupId,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface SCProductEntryPersistence
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 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.

Specified by:
filterFindByGroupId in interface SCProductEntryPersistence
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 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.

Specified by:
filterFindByGroupId in interface SCProductEntryPersistence
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 List<SCProductEntry> findByCompanyId(long companyId)
                                     throws SystemException
Finds all the s c product entries where companyId = ?.

Specified by:
findByCompanyId in interface SCProductEntryPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching s c product entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

public 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.

Specified by:
findByCompanyId in interface SCProductEntryPersistence
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 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.

Specified by:
findByCompanyId in interface SCProductEntryPersistence
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 SCProductEntry findByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchProductEntryException,
                                            SystemException
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.

Specified by:
findByCompanyId_First in interface SCProductEntryPersistence
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 SCProductEntry findByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchProductEntryException,
                                           SystemException
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.

Specified by:
findByCompanyId_Last in interface SCProductEntryPersistence
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 SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchProductEntryException,
                                                    SystemException
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.

Specified by:
findByCompanyId_PrevAndNext in interface SCProductEntryPersistence
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

getByCompanyId_PrevAndNext

protected SCProductEntry getByCompanyId_PrevAndNext(Session session,
                                                    SCProductEntry scProductEntry,
                                                    long companyId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findByG_U

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

Specified by:
findByG_U in interface SCProductEntryPersistence
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 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.

Specified by:
findByG_U in interface SCProductEntryPersistence
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 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.

Specified by:
findByG_U in interface SCProductEntryPersistence
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 SCProductEntry findByG_U_First(long groupId,
                                      long userId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchProductEntryException,
                                      SystemException
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.

Specified by:
findByG_U_First in interface SCProductEntryPersistence
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 SCProductEntry findByG_U_Last(long groupId,
                                     long userId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchProductEntryException,
                                     SystemException
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.

Specified by:
findByG_U_Last in interface SCProductEntryPersistence
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 SCProductEntry[] findByG_U_PrevAndNext(long productEntryId,
                                              long groupId,
                                              long userId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchProductEntryException,
                                              SystemException
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.

Specified by:
findByG_U_PrevAndNext in interface SCProductEntryPersistence
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

getByG_U_PrevAndNext

protected SCProductEntry getByG_U_PrevAndNext(Session session,
                                              SCProductEntry scProductEntry,
                                              long groupId,
                                              long userId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

filterFindByG_U

public 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 = ?.

Specified by:
filterFindByG_U in interface SCProductEntryPersistence
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 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.

Specified by:
filterFindByG_U in interface SCProductEntryPersistence
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 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.

Specified by:
filterFindByG_U in interface SCProductEntryPersistence
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 SCProductEntry findByRG_RA(String repoGroupId,
                                  String repoArtifactId)
                           throws NoSuchProductEntryException,
                                  SystemException
Finds the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a NoSuchProductEntryException if it could not be found.

Specified by:
findByRG_RA in interface SCProductEntryPersistence
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 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.

Specified by:
fetchByRG_RA in interface SCProductEntryPersistence
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 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.

Specified by:
fetchByRG_RA in interface SCProductEntryPersistence
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 List<SCProductEntry> findAll()
                             throws SystemException
Finds all the s c product entries.

Specified by:
findAll in interface SCProductEntryPersistence
Returns:
the s c product entries
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface SCProductEntryPersistence
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 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.

Specified by:
findAll in interface SCProductEntryPersistence
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 void removeByGroupId(long groupId)
                     throws SystemException
Removes all the s c product entries where groupId = ? from the database.

Specified by:
removeByGroupId in interface SCProductEntryPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Specified by:
removeByCompanyId in interface SCProductEntryPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByG_U

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

Specified by:
removeByG_U in interface SCProductEntryPersistence
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 void removeByRG_RA(String repoGroupId,
                          String repoArtifactId)
                   throws NoSuchProductEntryException,
                          SystemException
Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database.

Specified by:
removeByRG_RA in interface SCProductEntryPersistence
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 void removeAll()
               throws SystemException
Removes all the s c product entries from the database.

Specified by:
removeAll in interface SCProductEntryPersistence
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface SCProductEntryPersistence
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 int filterCountByGroupId(long groupId)
                         throws SystemException
Filters by the user's permissions and counts all the s c product entries where groupId = ?.

Specified by:
filterCountByGroupId in interface SCProductEntryPersistence
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 int countByCompanyId(long companyId)
                     throws SystemException
Counts all the s c product entries where companyId = ?.

Specified by:
countByCompanyId in interface SCProductEntryPersistence
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 int countByG_U(long groupId,
                      long userId)
               throws SystemException
Counts all the s c product entries where groupId = ? and userId = ?.

Specified by:
countByG_U in interface SCProductEntryPersistence
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 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 = ?.

Specified by:
filterCountByG_U in interface SCProductEntryPersistence
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 int countByRG_RA(String repoGroupId,
                        String repoArtifactId)
                 throws SystemException
Counts all the s c product entries where repoGroupId = ? and repoArtifactId = ?.

Specified by:
countByRG_RA in interface SCProductEntryPersistence
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 int countAll()
             throws SystemException
Counts all the s c product entries.

Specified by:
countAll in interface SCProductEntryPersistence
Returns:
the number of s c product entries
Throws:
SystemException - if a system exception occurred

getSCLicenses

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

Specified by:
getSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
getSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
getSCLicenses in interface SCProductEntryPersistence
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 int getSCLicensesSize(long pk)
                      throws SystemException
Gets the number of s c licenses associated with the s c product entry.

Specified by:
getSCLicensesSize in interface SCProductEntryPersistence
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 boolean containsSCLicense(long pk,
                                 long scLicensePK)
                          throws SystemException
Determines whether the s c license is associated with the s c product entry.

Specified by:
containsSCLicense in interface SCProductEntryPersistence
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 boolean containsSCLicenses(long pk)
                           throws SystemException
Determines whether the s c product entry has any s c licenses associated with it.

Specified by:
containsSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
addSCLicense in interface SCProductEntryPersistence
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 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.

Specified by:
addSCLicense in interface SCProductEntryPersistence
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 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.

Specified by:
addSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
addSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
clearSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
removeSCLicense in interface SCProductEntryPersistence
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 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.

Specified by:
removeSCLicense in interface SCProductEntryPersistence
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 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.

Specified by:
removeSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
removeSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
setSCLicenses in interface SCProductEntryPersistence
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 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.

Specified by:
setSCLicenses in interface SCProductEntryPersistence
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

afterPropertiesSet

public void afterPropertiesSet()
Initializes the s c product entry persistence.


Liferay 6.0.5