com.liferay.portal.service.persistence
Interface PortletPreferencesPersistence

All Superinterfaces:
BasePersistence

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

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 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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

findByPlid

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

findByPlid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PortletPreferences> findByP_P(long plid,
                                                           java.lang.String portletId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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<PortletPreferences> findAll()
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

countByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByP_P(long plid,
                             java.lang.String portletId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByO_O_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByO_O_P(long ownerId,
                               int ownerType,
                               long plid)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByO_O_P_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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