com.liferay.portal.service.persistence
Interface PortletPreferencesPersistence


public interface PortletPreferencesPersistence

View Source

Author:
Brian Wing Shun Chan

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 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 fetchByPrimaryKey(long portletPreferencesId)
           
 java.util.List<PortletPreferences> findAll()
           
 java.util.List<PortletPreferences> findAll(int begin, int end)
           
 java.util.List<PortletPreferences> findAll(int begin, 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 begin, int end)
           
 java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int begin, 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 begin, int end)
           
 java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int begin, 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 begin, int end)
           
 java.util.List<PortletPreferences> findByPlid(long plid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PortletPreferences findByPrimaryKey(long portletPreferencesId)
           
 java.util.List<PortletPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<PortletPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, 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)
           
 

Method Detail

create

PortletPreferences create(long portletPreferencesId)

remove

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

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 com.liferay.portal.SystemException,
                                           NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

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 begin,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPlid

java.util.List<PortletPreferences> findByPlid(long plid,
                                              int begin,
                                              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 com.liferay.portal.SystemException,
                                           NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

findByPlid_Last

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

findByPlid_PrevAndNext

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

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 begin,
                                             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 begin,
                                             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 com.liferay.portal.SystemException,
                                          NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

findByP_P_Last

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

findByP_P_PrevAndNext

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

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 begin,
                                               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 begin,
                                               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 com.liferay.portal.SystemException,
                                            NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

findByO_O_P_Last

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

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 com.liferay.portal.SystemException,
                                                    NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

findByO_O_P_P

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

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

findWithDynamicQuery

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

findWithDynamicQuery

java.util.List<PortletPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                        int begin,
                                                        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 begin,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<PortletPreferences> findAll(int begin,
                                           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 com.liferay.portal.SystemException,
                            NoSuchPortletPreferencesException
Throws:
com.liferay.portal.SystemException
NoSuchPortletPreferencesException

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