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

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.jdbc.core.support.JdbcDaoSupport
          extended bycom.liferay.portal.service.persistence.BasePersistence
              extended bycom.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistenceImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, SCLicensePersistence

public class SCLicensePersistenceImpl
extends BasePersistence
implements SCLicensePersistence

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
SCLicensePersistenceImpl()
           
 
Method Summary
 int countAll()
           
 int countByA_R(boolean active, boolean recommended)
           
 int countByActive(boolean active)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense create(long licenseId)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(long licenseId)
           
 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)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByA_R(boolean active, boolean recommended)
           
 java.util.List findByA_R(boolean active, boolean recommended, int begin, int end)
           
 java.util.List findByA_R(boolean active, boolean recommended, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(long licenseId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByActive(boolean active)
           
 java.util.List findByActive(boolean active, int begin, int end)
           
 java.util.List findByActive(boolean active, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(long licenseId)
           
 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)
           
protected  void initDao()
           
 com.liferay.portlet.softwarecatalog.model.SCLicense remove(long licenseId)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense remove(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
           
 void removeAll()
           
 void removeByA_R(boolean active, boolean recommended)
           
 void removeByActive(boolean active)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense update(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense update(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.BasePersistence
closeSession, getDialect, getSessionFactory, openSession, openSession, setSessionFactory
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCLicensePersistenceImpl

public SCLicensePersistenceImpl()
Method Detail

create

public com.liferay.portlet.softwarecatalog.model.SCLicense create(long licenseId)
Specified by:
create in interface SCLicensePersistence

remove

public com.liferay.portlet.softwarecatalog.model.SCLicense remove(long licenseId)
                                                           throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                  com.liferay.portal.SystemException
Specified by:
remove in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

remove

public com.liferay.portlet.softwarecatalog.model.SCLicense remove(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
                                                           throws com.liferay.portal.SystemException
Specified by:
remove in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portlet.softwarecatalog.model.SCLicense update(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
                                                           throws com.liferay.portal.SystemException
Specified by:
update in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portlet.softwarecatalog.model.SCLicense update(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                  boolean merge)
                                                           throws com.liferay.portal.SystemException
Specified by:
update in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(long licenseId)
                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                            com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(long licenseId)
                                                                      throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByActive

public java.util.List findByActive(boolean active)
                            throws com.liferay.portal.SystemException
Specified by:
findByActive in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByActive

public java.util.List findByActive(boolean active,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Specified by:
findByActive in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByActive

public java.util.List findByActive(boolean active,
                                   int begin,
                                   int end,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException
Specified by:
findByActive in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByActive_First

public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(boolean active,
                                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                       throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                              com.liferay.portal.SystemException
Specified by:
findByActive_First in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findByActive_Last

public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(boolean active,
                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                      throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                             com.liferay.portal.SystemException
Specified by:
findByActive_Last in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findByActive_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(long licenseId,
                                                                                      boolean active,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                      com.liferay.portal.SystemException
Specified by:
findByActive_PrevAndNext in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findByA_R

public java.util.List findByA_R(boolean active,
                                boolean recommended)
                         throws com.liferay.portal.SystemException
Specified by:
findByA_R in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByA_R

public java.util.List findByA_R(boolean active,
                                boolean recommended,
                                int begin,
                                int end)
                         throws com.liferay.portal.SystemException
Specified by:
findByA_R in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByA_R

public java.util.List findByA_R(boolean active,
                                boolean recommended,
                                int begin,
                                int end,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException
Specified by:
findByA_R in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findByA_R_First

public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(boolean active,
                                                                           boolean recommended,
                                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                    throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                           com.liferay.portal.SystemException
Specified by:
findByA_R_First in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findByA_R_Last

public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(boolean active,
                                                                          boolean recommended,
                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                   throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                          com.liferay.portal.SystemException
Specified by:
findByA_R_Last in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findByA_R_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(long licenseId,
                                                                                   boolean active,
                                                                                   boolean recommended,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                            throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                   com.liferay.portal.SystemException
Specified by:
findByA_R_PrevAndNext in interface SCLicensePersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface SCLicensePersistence
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
Specified by:
findWithDynamicQuery in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface SCLicensePersistence
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
Specified by:
findAll in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

removeByActive

public void removeByActive(boolean active)
                    throws com.liferay.portal.SystemException
Specified by:
removeByActive in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

removeByA_R

public void removeByA_R(boolean active,
                        boolean recommended)
                 throws com.liferay.portal.SystemException
Specified by:
removeByA_R in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Specified by:
removeAll in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

countByActive

public int countByActive(boolean active)
                  throws com.liferay.portal.SystemException
Specified by:
countByActive in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

countByA_R

public int countByA_R(boolean active,
                      boolean recommended)
               throws com.liferay.portal.SystemException
Specified by:
countByA_R in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Specified by:
countAll in interface SCLicensePersistence
Throws:
com.liferay.portal.SystemException

initDao

protected void initDao()