com.liferay.portal.service.persistence
Class PortletPreferencesPersistenceImpl

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.portal.service.persistence.PortletPreferencesPersistenceImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, PortletPreferencesPersistence

public class PortletPreferencesPersistenceImpl
extends BasePersistence
implements PortletPreferencesPersistence

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PortletPreferencesPersistenceImpl()
           
 
Method Summary
 int countAll()
           
 int countByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 int countByO_O_P(long ownerId, int ownerType, long plid)
           
 int countByPlid(long plid)
           
 com.liferay.portal.model.PortletPreferences create(long portletPreferencesId)
           
 com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
           
 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.portal.model.PortletPreferences findByO_O_P_First(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences findByO_O_P_Last(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences findByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId, long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByO_O_P(long ownerId, int ownerType, long plid)
           
 java.util.List findByO_O_P(long ownerId, int ownerType, long plid, int begin, int end)
           
 java.util.List findByO_O_P(long ownerId, int ownerType, long plid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences findByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByPlid(long plid)
           
 java.util.List findByPlid(long plid, int begin, int end)
           
 java.util.List findByPlid(long plid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PortletPreferences findByPrimaryKey(long portletPreferencesId)
           
 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.portal.model.PortletPreferences remove(long portletPreferencesId)
           
 com.liferay.portal.model.PortletPreferences remove(com.liferay.portal.model.PortletPreferences portletPreferences)
           
 void removeAll()
           
 void removeByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 void removeByO_O_P(long ownerId, int ownerType, long plid)
           
 void removeByPlid(long plid)
           
 com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.PortletPreferences portletPreferences)
           
 com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.PortletPreferences portletPreferences, 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

PortletPreferencesPersistenceImpl

public PortletPreferencesPersistenceImpl()
Method Detail

create

public com.liferay.portal.model.PortletPreferences create(long portletPreferencesId)
Specified by:
create in interface PortletPreferencesPersistence

remove

public com.liferay.portal.model.PortletPreferences remove(long portletPreferencesId)
                                                   throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                          com.liferay.portal.SystemException
Specified by:
remove in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

remove

public com.liferay.portal.model.PortletPreferences remove(com.liferay.portal.model.PortletPreferences portletPreferences)
                                                   throws com.liferay.portal.SystemException
Specified by:
remove in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.PortletPreferences portletPreferences)
                                                   throws com.liferay.portal.SystemException
Specified by:
update in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.PortletPreferences portletPreferences,
                                                          boolean merge)
                                                   throws com.liferay.portal.SystemException
Specified by:
update in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portal.model.PortletPreferences findByPrimaryKey(long portletPreferencesId)
                                                             throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                    com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
                                                              throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByPlid

public java.util.List findByPlid(long plid)
                          throws com.liferay.portal.SystemException
Specified by:
findByPlid in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByPlid

public java.util.List findByPlid(long plid,
                                 int begin,
                                 int end)
                          throws com.liferay.portal.SystemException
Specified by:
findByPlid in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByPlid

public java.util.List findByPlid(long plid,
                                 int begin,
                                 int end,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException
Specified by:
findByPlid in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByPlid_First

public com.liferay.portal.model.PortletPreferences findByPlid_First(long plid,
                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                             throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                    com.liferay.portal.SystemException
Specified by:
findByPlid_First in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByPlid_Last

public com.liferay.portal.model.PortletPreferences findByPlid_Last(long plid,
                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                            throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                   com.liferay.portal.SystemException
Specified by:
findByPlid_Last in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByPlid_PrevAndNext

public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
                                                                            long plid,
                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                     throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                            com.liferay.portal.SystemException
Specified by:
findByPlid_PrevAndNext in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P

public java.util.List findByO_O_P(long ownerId,
                                  int ownerType,
                                  long plid)
                           throws com.liferay.portal.SystemException
Specified by:
findByO_O_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByO_O_P

public java.util.List findByO_O_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  int begin,
                                  int end)
                           throws com.liferay.portal.SystemException
Specified by:
findByO_O_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByO_O_P

public java.util.List findByO_O_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  int begin,
                                  int end,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException
Specified by:
findByO_O_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findByO_O_P_First

public com.liferay.portal.model.PortletPreferences findByO_O_P_First(long ownerId,
                                                                     int ownerType,
                                                                     long plid,
                                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                                              throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                     com.liferay.portal.SystemException
Specified by:
findByO_O_P_First in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_Last

public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(long ownerId,
                                                                    int ownerType,
                                                                    long plid,
                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                             throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                    com.liferay.portal.SystemException
Specified by:
findByO_O_P_Last in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_PrevAndNext

public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
                                                                             long ownerId,
                                                                             int ownerType,
                                                                             long plid,
                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                      throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                             com.liferay.portal.SystemException
Specified by:
findByO_O_P_PrevAndNext in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_P

public com.liferay.portal.model.PortletPreferences findByO_O_P_P(long ownerId,
                                                                 int ownerType,
                                                                 long plid,
                                                                 java.lang.String portletId)
                                                          throws com.liferay.portal.NoSuchPortletPreferencesException,
                                                                 com.liferay.portal.SystemException
Specified by:
findByO_O_P_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

fetchByO_O_P_P

public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(long ownerId,
                                                                  int ownerType,
                                                                  long plid,
                                                                  java.lang.String portletId)
                                                           throws com.liferay.portal.SystemException
Specified by:
fetchByO_O_P_P in interface PortletPreferencesPersistence
Throws:
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 PortletPreferencesPersistence
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 PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

findAll

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

removeByPlid

public void removeByPlid(long plid)
                  throws com.liferay.portal.SystemException
Specified by:
removeByPlid in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

removeByO_O_P

public void removeByO_O_P(long ownerId,
                          int ownerType,
                          long plid)
                   throws com.liferay.portal.SystemException
Specified by:
removeByO_O_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

removeByO_O_P_P

public void removeByO_O_P_P(long ownerId,
                            int ownerType,
                            long plid,
                            java.lang.String portletId)
                     throws com.liferay.portal.NoSuchPortletPreferencesException,
                            com.liferay.portal.SystemException
Specified by:
removeByO_O_P_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException

removeAll

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

countByPlid

public int countByPlid(long plid)
                throws com.liferay.portal.SystemException
Specified by:
countByPlid in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

countByO_O_P

public int countByO_O_P(long ownerId,
                        int ownerType,
                        long plid)
                 throws com.liferay.portal.SystemException
Specified by:
countByO_O_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

countByO_O_P_P

public int countByO_O_P_P(long ownerId,
                          int ownerType,
                          long plid,
                          java.lang.String portletId)
                   throws com.liferay.portal.SystemException
Specified by:
countByO_O_P_P in interface PortletPreferencesPersistence
Throws:
com.liferay.portal.SystemException

countAll

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

initDao

protected void initDao()