com.liferay.portal.service.persistence
Interface PortletPreferencesPersistence

All Superinterfaces:
BasePersistence

public interface PortletPreferencesPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<PortletPreferences> portletPreferenceses)
           
 void cacheResult(PortletPreferences portletPreferences)
           
 void clearCache()
           
 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 countByP_P(long plid, java.lang.String portletId)
           
 int countByPlid(long plid)
           
 PortletPreferences create(long portletPreferencesId)
           
 PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId, boolean retrieveFromCache)
           
 PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
           
 java.util.List<PortletPreferences> findAll()
           
 java.util.List<PortletPreferences> findAll(int start, int end)
           
 java.util.List<PortletPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByO_O_P_First(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByO_O_P_Last(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId)
           
 PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId, long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid)
           
 java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end)
           
 java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByP_P_First(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByP_P_Last(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId)
           
 java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int start, int end)
           
 java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId, long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PortletPreferences> findByPlid(long plid)
           
 java.util.List<PortletPreferences> findByPlid(long plid, int start, int end)
           
 java.util.List<PortletPreferences> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByPrimaryKey(long portletPreferencesId)
           
 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)
           
 PortletPreferences remove(long portletPreferencesId)
           
 PortletPreferences remove(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 removeByP_P(long plid, java.lang.String portletId)
           
 void removeByPlid(long plid)
           
 PortletPreferences update(PortletPreferences portletPreferences)
          Deprecated. Use update(PortletPreferences portletPreferences, boolean merge).
 PortletPreferences update(PortletPreferences portletPreferences, boolean merge)
          Add, update, or merge, the entity.
 PortletPreferences updateImpl(PortletPreferences portletPreferences, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(PortletPreferences portletPreferences)

cacheResult

void cacheResult(java.util.List<PortletPreferences> portletPreferenceses)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

PortletPreferences create(long portletPreferencesId)

remove

PortletPreferences remove(long portletPreferencesId)
                          throws NoSuchPortletPreferencesException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

remove

PortletPreferences remove(PortletPreferences portletPreferences)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

PortletPreferences update(PortletPreferences portletPreferences)
                          throws com.liferay.portal.SystemException
Deprecated. Use update(PortletPreferences portletPreferences, boolean merge).

Throws:
com.liferay.portal.SystemException

update

PortletPreferences update(PortletPreferences portletPreferences,
                          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:
portletPreferences - 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 portletPreferences 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

PortletPreferences updateImpl(PortletPreferences portletPreferences,
                              boolean merge)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

PortletPreferences findByPrimaryKey(long portletPreferencesId)
                                    throws NoSuchPortletPreferencesException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

fetchByPrimaryKey

PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPlid

java.util.List<PortletPreferences> findByPlid(long plid)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPlid

java.util.List<PortletPreferences> findByPlid(long plid,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPlid

java.util.List<PortletPreferences> findByPlid(long plid,
                                              int start,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPlid_First

PortletPreferences findByPlid_First(long plid,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws NoSuchPortletPreferencesException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByPlid_Last

PortletPreferences findByPlid_Last(long plid,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchPortletPreferencesException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByPlid_PrevAndNext

PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
                                            long plid,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws NoSuchPortletPreferencesException,
                                                   com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByP_P

java.util.List<PortletPreferences> findByP_P(long plid,
                                             java.lang.String portletId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

java.util.List<PortletPreferences> findByP_P(long plid,
                                             java.lang.String portletId,
                                             int start,
                                             int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

java.util.List<PortletPreferences> findByP_P(long plid,
                                             java.lang.String portletId,
                                             int start,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P_First

PortletPreferences findByP_P_First(long plid,
                                   java.lang.String portletId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchPortletPreferencesException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByP_P_Last

PortletPreferences findByP_P_Last(long plid,
                                  java.lang.String portletId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws NoSuchPortletPreferencesException,
                                         com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByP_P_PrevAndNext

PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId,
                                           long plid,
                                           java.lang.String portletId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws NoSuchPortletPreferencesException,
                                                  com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P

java.util.List<PortletPreferences> findByO_O_P(long ownerId,
                                               int ownerType,
                                               long plid)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByO_O_P

java.util.List<PortletPreferences> findByO_O_P(long ownerId,
                                               int ownerType,
                                               long plid,
                                               int start,
                                               int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByO_O_P

java.util.List<PortletPreferences> findByO_O_P(long ownerId,
                                               int ownerType,
                                               long plid,
                                               int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByO_O_P_First

PortletPreferences findByO_O_P_First(long ownerId,
                                     int ownerType,
                                     long plid,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws NoSuchPortletPreferencesException,
                                            com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_Last

PortletPreferences findByO_O_P_Last(long ownerId,
                                    int ownerType,
                                    long plid,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws NoSuchPortletPreferencesException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_PrevAndNext

PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
                                             long ownerId,
                                             int ownerType,
                                             long plid,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws NoSuchPortletPreferencesException,
                                                    com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

findByO_O_P_P

PortletPreferences findByO_O_P_P(long ownerId,
                                 int ownerType,
                                 long plid,
                                 java.lang.String portletId)
                                 throws NoSuchPortletPreferencesException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

fetchByO_O_P_P

PortletPreferences fetchByO_O_P_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  java.lang.String portletId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByO_O_P_P

PortletPreferences fetchByO_O_P_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  java.lang.String portletId,
                                  boolean retrieveFromCache)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

java.util.List<PortletPreferences> findAll()
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<PortletPreferences> findAll(int start,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<PortletPreferences> findAll(int start,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByPlid

void removeByPlid(long plid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByP_P

void removeByP_P(long plid,
                 java.lang.String portletId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByO_O_P

void removeByO_O_P(long ownerId,
                   int ownerType,
                   long plid)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByO_O_P_P

void removeByO_O_P_P(long ownerId,
                     int ownerType,
                     long plid,
                     java.lang.String portletId)
                     throws NoSuchPortletPreferencesException,
                            com.liferay.portal.SystemException
Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException

removeAll

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

countByPlid

int countByPlid(long plid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_P

int countByP_P(long plid,
               java.lang.String portletId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByO_O_P

int countByO_O_P(long ownerId,
                 int ownerType,
                 long plid)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByO_O_P_P

int countByO_O_P_P(long ownerId,
                   int ownerType,
                   long plid,
                   java.lang.String portletId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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