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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface SCLicensePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addSCProductEntries(long pk, java.util.List<SCProductEntry> scProductEntries)
           
 void addSCProductEntries(long pk, long[] scProductEntryPKs)
           
 void addSCProductEntry(long pk, long scProductEntryPK)
           
 void addSCProductEntry(long pk, SCProductEntry scProductEntry)
           
 void clearSCProductEntries(long pk)
           
 boolean containsSCProductEntries(long pk)
           
 boolean containsSCProductEntry(long pk, long scProductEntryPK)
           
 int countAll()
           
 int countByA_R(boolean active, boolean recommended)
           
 int countByActive(boolean active)
           
 SCLicense create(long licenseId)
           
 SCLicense fetchByPrimaryKey(long licenseId)
           
 java.util.List<SCLicense> findAll()
           
 java.util.List<SCLicense> findAll(int start, int end)
           
 java.util.List<SCLicense> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense findByA_R_First(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense findByA_R_Last(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense[] findByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SCLicense> findByA_R(boolean active, boolean recommended)
           
 java.util.List<SCLicense> findByA_R(boolean active, boolean recommended, int start, int end)
           
 java.util.List<SCLicense> findByA_R(boolean active, boolean recommended, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense[] findByActive_PrevAndNext(long licenseId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SCLicense> findByActive(boolean active)
           
 java.util.List<SCLicense> findByActive(boolean active, int start, int end)
           
 java.util.List<SCLicense> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCLicense findByPrimaryKey(long licenseId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<SCProductEntry> getSCProductEntries(long pk)
           
 java.util.List<SCProductEntry> getSCProductEntries(long pk, int start, int end)
           
 java.util.List<SCProductEntry> getSCProductEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getSCProductEntriesSize(long pk)
           
 SCLicense remove(long licenseId)
           
 SCLicense remove(SCLicense scLicense)
           
 void removeAll()
           
 void removeByA_R(boolean active, boolean recommended)
           
 void removeByActive(boolean active)
           
 void removeSCProductEntries(long pk, java.util.List<SCProductEntry> scProductEntries)
           
 void removeSCProductEntries(long pk, long[] scProductEntryPKs)
           
 void removeSCProductEntry(long pk, long scProductEntryPK)
           
 void removeSCProductEntry(long pk, SCProductEntry scProductEntry)
           
 void setSCProductEntries(long pk, java.util.List<SCProductEntry> scProductEntries)
           
 void setSCProductEntries(long pk, long[] scProductEntryPKs)
           
 SCLicense update(SCLicense scLicense)
          Deprecated. Use update(SCLicense scLicense, boolean merge).
 SCLicense update(SCLicense scLicense, boolean merge)
          Add, update, or merge, the entity.
 SCLicense updateImpl(SCLicense scLicense, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

SCLicense create(long licenseId)

remove

SCLicense remove(long licenseId)
                 throws com.liferay.portal.SystemException,
                        NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

remove

SCLicense remove(SCLicense scLicense)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

SCLicense update(SCLicense scLicense)
                 throws com.liferay.portal.SystemException
Deprecated. Use update(SCLicense scLicense, boolean merge).

Throws:
com.liferay.portal.SystemException

update

SCLicense update(SCLicense scLicense,
                 boolean merge)
                 throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
scLicense - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when scLicense is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

SCLicense updateImpl(SCLicense scLicense,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense findByPrimaryKey(long licenseId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

fetchByPrimaryKey

SCLicense fetchByPrimaryKey(long licenseId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByActive(boolean active)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByActive(boolean active,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByActive(boolean active,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense findByActive_First(boolean active,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findByActive_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense findByActive_Last(boolean active,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findByActive_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense[] findByActive_PrevAndNext(long licenseId,
                                                   boolean active,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findByA_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByA_R(boolean active,
                                                  boolean recommended)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByA_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByA_R(boolean active,
                                                  boolean recommended,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByA_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findByA_R(boolean active,
                                                  boolean recommended,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByA_R_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense findByA_R_First(boolean active,
                                        boolean recommended,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findByA_R_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense findByA_R_Last(boolean active,
                                       boolean recommended,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findByA_R_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCLicense[] findByA_R_PrevAndNext(long licenseId,
                                                boolean active,
                                                boolean recommended,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchLicenseException
Throws:
com.liferay.portal.SystemException
NoSuchLicenseException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findAll()
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findAll(int start,
                                                int end)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCLicense> findAll(int start,
                                                int end,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByActive

void removeByActive(boolean active)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByA_R

void removeByA_R(boolean active,
                 boolean recommended)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByActive(boolean active)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByA_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByA_R(boolean active,
                             boolean recommended)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductEntry> getSCProductEntries(long pk)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductEntry> getSCProductEntries(long pk,
                                                                 int start,
                                                                 int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductEntry> getSCProductEntries(long pk,
                                                                 int start,
                                                                 int end,
                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSCProductEntriesSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSCProductEntriesSize(long pk)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsSCProductEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsSCProductEntry(long pk,
                                             long scProductEntryPK)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsSCProductEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsSCProductEntries(long pk)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addSCProductEntry

void addSCProductEntry(long pk,
                       long scProductEntryPK)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addSCProductEntry

void addSCProductEntry(long pk,
                       SCProductEntry scProductEntry)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addSCProductEntries

void addSCProductEntries(long pk,
                         long[] scProductEntryPKs)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addSCProductEntries

void addSCProductEntries(long pk,
                         java.util.List<SCProductEntry> scProductEntries)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

clearSCProductEntries

void clearSCProductEntries(long pk)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeSCProductEntry

void removeSCProductEntry(long pk,
                          long scProductEntryPK)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeSCProductEntry

void removeSCProductEntry(long pk,
                          SCProductEntry scProductEntry)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeSCProductEntries

void removeSCProductEntries(long pk,
                            long[] scProductEntryPKs)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeSCProductEntries

void removeSCProductEntries(long pk,
                            java.util.List<SCProductEntry> scProductEntries)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setSCProductEntries

void setSCProductEntries(long pk,
                         long[] scProductEntryPKs)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setSCProductEntries

void setSCProductEntries(long pk,
                         java.util.List<SCProductEntry> scProductEntries)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException