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


public interface SCProductEntryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addSCLicense(long pk, long scLicensePK)
           
 void addSCLicense(long pk, SCLicense scLicense)
           
 void addSCLicenses(long pk, java.util.List scLicenses)
           
 void addSCLicenses(long pk, long[] scLicensePKs)
           
 void clearSCLicenses(long pk)
           
 boolean containsSCLicense(long pk, long scLicensePK)
           
 boolean containsSCLicenses(long pk)
           
 int countAll()
           
 int countByCompanyId(long companyId)
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 int countByRG_RA(java.lang.String repoGroupId, java.lang.String repoArtifactId)
           
 SCProductEntry create(long productEntryId)
           
 SCProductEntry fetchByPrimaryKey(long productEntryId)
           
 SCProductEntry fetchByRG_RA(java.lang.String repoGroupId, java.lang.String repoArtifactId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByCompanyId(long companyId)
           
 java.util.List findByCompanyId(long companyId, int begin, int end)
           
 java.util.List findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry[] findByG_U_PrevAndNext(long productEntryId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByG_U(long groupId, long userId)
           
 java.util.List findByG_U(long groupId, long userId, int begin, int end)
           
 java.util.List findByG_U(long groupId, long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByGroupId(long groupId)
           
 java.util.List findByGroupId(long groupId, int begin, int end)
           
 java.util.List findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductEntry findByPrimaryKey(long productEntryId)
           
 SCProductEntry findByRG_RA(java.lang.String repoGroupId, java.lang.String repoArtifactId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 java.util.List getSCLicenses(long pk)
           
 java.util.List getSCLicenses(long pk, int begin, int end)
           
 java.util.List getSCLicenses(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getSCLicensesSize(long pk)
           
 SCProductEntry remove(long productEntryId)
           
 SCProductEntry remove(SCProductEntry scProductEntry)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 void removeByG_U(long groupId, long userId)
           
 void removeByGroupId(long groupId)
           
 void removeByRG_RA(java.lang.String repoGroupId, java.lang.String repoArtifactId)
           
 void removeSCLicense(long pk, long scLicensePK)
           
 void removeSCLicense(long pk, SCLicense scLicense)
           
 void removeSCLicenses(long pk, java.util.List scLicenses)
           
 void removeSCLicenses(long pk, long[] scLicensePKs)
           
 void setSCLicenses(long pk, java.util.List scLicenses)
           
 void setSCLicenses(long pk, long[] scLicensePKs)
           
 SCProductEntry update(SCProductEntry scProductEntry)
           
 SCProductEntry update(SCProductEntry scProductEntry, boolean merge)
           
 SCProductEntry updateImpl(SCProductEntry scProductEntry, boolean merge)
           
 

Method Detail

create

public SCProductEntry create(long productEntryId)

remove

public SCProductEntry remove(long productEntryId)
                      throws com.liferay.portal.SystemException,
                             NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

remove

public SCProductEntry remove(SCProductEntry scProductEntry)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public SCProductEntry update(SCProductEntry scProductEntry)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public SCProductEntry update(SCProductEntry scProductEntry,
                             boolean merge)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public SCProductEntry updateImpl(SCProductEntry scProductEntry,
                                 boolean merge)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public SCProductEntry findByPrimaryKey(long productEntryId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

fetchByPrimaryKey

public SCProductEntry fetchByPrimaryKey(long productEntryId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List findByGroupId(long groupId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List findByGroupId(long groupId,
                                    int begin,
                                    int end)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List findByGroupId(long groupId,
                                    int begin,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public SCProductEntry findByGroupId_First(long groupId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByGroupId_Last

public SCProductEntry findByGroupId_Last(long groupId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByGroupId_PrevAndNext

public SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
                                                  long groupId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByCompanyId

public java.util.List findByCompanyId(long companyId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public SCProductEntry findByCompanyId_First(long companyId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByCompanyId_Last

public SCProductEntry findByCompanyId_Last(long companyId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByCompanyId_PrevAndNext

public SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
                                                    long companyId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByG_U

public java.util.List findByG_U(long groupId,
                                long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U

public java.util.List findByG_U(long groupId,
                                long userId,
                                int begin,
                                int end)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U

public java.util.List findByG_U(long groupId,
                                long userId,
                                int begin,
                                int end,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_First

public SCProductEntry findByG_U_First(long groupId,
                                      long userId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByG_U_Last

public SCProductEntry findByG_U_Last(long groupId,
                                     long userId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByG_U_PrevAndNext

public SCProductEntry[] findByG_U_PrevAndNext(long productEntryId,
                                              long groupId,
                                              long userId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

findByRG_RA

public SCProductEntry findByRG_RA(java.lang.String repoGroupId,
                                  java.lang.String repoArtifactId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

fetchByRG_RA

public SCProductEntry fetchByRG_RA(java.lang.String repoGroupId,
                                   java.lang.String repoArtifactId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_U

public void removeByG_U(long groupId,
                        long userId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByRG_RA

public void removeByRG_RA(java.lang.String repoGroupId,
                          java.lang.String repoArtifactId)
                   throws com.liferay.portal.SystemException,
                          NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_U

public int countByG_U(long groupId,
                      long userId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByRG_RA

public int countByRG_RA(java.lang.String repoGroupId,
                        java.lang.String repoArtifactId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSCLicenses

public java.util.List getSCLicenses(long pk)
                             throws com.liferay.portal.SystemException,
                                    NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

getSCLicenses

public java.util.List getSCLicenses(long pk,
                                    int begin,
                                    int end)
                             throws com.liferay.portal.SystemException,
                                    NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

getSCLicenses

public java.util.List getSCLicenses(long pk,
                                    int begin,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

getSCLicensesSize

public int getSCLicensesSize(long pk)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsSCLicense

public boolean containsSCLicense(long pk,
                                 long scLicensePK)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsSCLicenses

public boolean containsSCLicenses(long pk)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addSCLicense

public void addSCLicense(long pk,
                         long scLicensePK)
                  throws com.liferay.portal.SystemException,
                         NoSuchProductEntryException,
                         NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

addSCLicense

public void addSCLicense(long pk,
                         SCLicense scLicense)
                  throws com.liferay.portal.SystemException,
                         NoSuchProductEntryException,
                         NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

addSCLicenses

public void addSCLicenses(long pk,
                          long[] scLicensePKs)
                   throws com.liferay.portal.SystemException,
                          NoSuchProductEntryException,
                          NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

addSCLicenses

public void addSCLicenses(long pk,
                          java.util.List scLicenses)
                   throws com.liferay.portal.SystemException,
                          NoSuchProductEntryException,
                          NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

clearSCLicenses

public void clearSCLicenses(long pk)
                     throws com.liferay.portal.SystemException,
                            NoSuchProductEntryException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException

removeSCLicense

public void removeSCLicense(long pk,
                            long scLicensePK)
                     throws com.liferay.portal.SystemException,
                            NoSuchProductEntryException,
                            NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

removeSCLicense

public void removeSCLicense(long pk,
                            SCLicense scLicense)
                     throws com.liferay.portal.SystemException,
                            NoSuchProductEntryException,
                            NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

removeSCLicenses

public void removeSCLicenses(long pk,
                             long[] scLicensePKs)
                      throws com.liferay.portal.SystemException,
                             NoSuchProductEntryException,
                             NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

removeSCLicenses

public void removeSCLicenses(long pk,
                             java.util.List scLicenses)
                      throws com.liferay.portal.SystemException,
                             NoSuchProductEntryException,
                             NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

setSCLicenses

public void setSCLicenses(long pk,
                          long[] scLicensePKs)
                   throws com.liferay.portal.SystemException,
                          NoSuchProductEntryException,
                          NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException

setSCLicenses

public void setSCLicenses(long pk,
                          java.util.List scLicenses)
                   throws com.liferay.portal.SystemException,
                          NoSuchProductEntryException,
                          NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
NoSuchLicenseException