Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Interface PortletPreferencesPersistence

All Superinterfaces:
BasePersistence<PortletPreferences>
All Known Implementing Classes:
PortletPreferencesPersistenceImpl

public interface PortletPreferencesPersistence
extends BasePersistence<PortletPreferences>

The persistence interface for the portlet preferences service.

Caching information and settings can be found in portal.properties

See Also:
PortletPreferencesPersistenceImpl, PortletPreferencesUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<PortletPreferences> portletPreferenceses)
          Caches the portlet preferenceses in the entity cache if it is enabled.
 void cacheResult(PortletPreferences portletPreferences)
          Caches the portlet preferences in the entity cache if it is enabled.
 int countAll()
          Returns the number of portlet preferenceses.
 int countByO_O_P_P(long ownerId, int ownerType, long plid, String portletId)
          Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?.
 int countByO_O_P(long ownerId, int ownerType, long plid)
          Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
 int countByO_P_P(int ownerType, long plid, String portletId)
          Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
 int countByP_P(long plid, String portletId)
          Returns the number of portlet preferenceses where plid = ? and portletId = ?.
 int countByPlid(long plid)
          Returns the number of portlet preferenceses where plid = ?.
 int countByPortletId(String portletId)
          Returns the number of portlet preferenceses where portletId = ?.
 PortletPreferences create(long portletPreferencesId)
          Creates a new portlet preferences with the primary key.
 PortletPreferences fetchByO_O_P_First(long ownerId, int ownerType, long plid, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
 PortletPreferences fetchByO_O_P_Last(long ownerId, int ownerType, long plid, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
 PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, String portletId)
          Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns null if it could not be found.
 PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, String portletId, boolean retrieveFromCache)
          Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns null if it could not be found, optionally using the finder cache.
 PortletPreferences fetchByO_P_P_First(int ownerType, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
 PortletPreferences fetchByO_P_P_Last(int ownerType, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
 PortletPreferences fetchByP_P_First(long plid, String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.
 PortletPreferences fetchByP_P_Last(long plid, String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.
 PortletPreferences fetchByPlid_First(long plid, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ?.
 PortletPreferences fetchByPlid_Last(long plid, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ?.
 PortletPreferences fetchByPortletId_First(String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where portletId = ?.
 PortletPreferences fetchByPortletId_Last(String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where portletId = ?.
 PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
          Returns the portlet preferences with the primary key or returns null if it could not be found.
 List<PortletPreferences> findAll()
          Returns all the portlet preferenceses.
 List<PortletPreferences> findAll(int start, int end)
          Returns a range of all the portlet preferenceses.
 List<PortletPreferences> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses.
 PortletPreferences findByO_O_P_First(long ownerId, int ownerType, long plid, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
 PortletPreferences findByO_O_P_Last(long ownerId, int ownerType, long plid, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
 PortletPreferences findByO_O_P_P(long ownerId, int ownerType, long plid, String portletId)
          Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or throws a NoSuchPortletPreferencesException if it could not be found.
 PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId, long ownerId, int ownerType, long plid, OrderByComparator orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
 List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid)
          Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
 List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end)
          Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
 List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
 PortletPreferences findByO_P_P_First(int ownerType, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
 PortletPreferences findByO_P_P_Last(int ownerType, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
 PortletPreferences[] findByO_P_P_PrevAndNext(long portletPreferencesId, int ownerType, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
 List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId)
          Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
 List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
 List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
 PortletPreferences findByP_P_First(long plid, String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.
 PortletPreferences findByP_P_Last(long plid, String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.
 PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId, long plid, String portletId, OrderByComparator orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?.
 List<PortletPreferences> findByP_P(long plid, String portletId)
          Returns all the portlet preferenceses where plid = ? and portletId = ?.
 List<PortletPreferences> findByP_P(long plid, String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where plid = ? and portletId = ?.
 List<PortletPreferences> findByP_P(long plid, String portletId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?.
 PortletPreferences findByPlid_First(long plid, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ?.
 PortletPreferences findByPlid_Last(long plid, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ?.
 PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId, long plid, OrderByComparator orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?.
 List<PortletPreferences> findByPlid(long plid)
          Returns all the portlet preferenceses where plid = ?.
 List<PortletPreferences> findByPlid(long plid, int start, int end)
          Returns a range of all the portlet preferenceses where plid = ?.
 List<PortletPreferences> findByPlid(long plid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses where plid = ?.
 PortletPreferences findByPortletId_First(String portletId, OrderByComparator orderByComparator)
          Returns the first portlet preferences in the ordered set where portletId = ?.
 PortletPreferences findByPortletId_Last(String portletId, OrderByComparator orderByComparator)
          Returns the last portlet preferences in the ordered set where portletId = ?.
 PortletPreferences[] findByPortletId_PrevAndNext(long portletPreferencesId, String portletId, OrderByComparator orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?.
 List<PortletPreferences> findByPortletId(String portletId)
          Returns all the portlet preferenceses where portletId = ?.
 List<PortletPreferences> findByPortletId(String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where portletId = ?.
 List<PortletPreferences> findByPortletId(String portletId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the portlet preferenceses where portletId = ?.
 PortletPreferences findByPrimaryKey(long portletPreferencesId)
          Returns the portlet preferences with the primary key or throws a NoSuchPortletPreferencesException if it could not be found.
 PortletPreferences remove(long portletPreferencesId)
          Removes the portlet preferences with the primary key from the database.
 void removeAll()
          Removes all the portlet preferenceses from the database.
 PortletPreferences removeByO_O_P_P(long ownerId, int ownerType, long plid, String portletId)
          Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database.
 void removeByO_O_P(long ownerId, int ownerType, long plid)
          Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database.
 void removeByO_P_P(int ownerType, long plid, String portletId)
          Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database.
 void removeByP_P(long plid, String portletId)
          Removes all the portlet preferenceses where plid = ? and portletId = ? from the database.
 void removeByPlid(long plid)
          Removes all the portlet preferenceses where plid = ? from the database.
 void removeByPortletId(String portletId)
          Removes all the portlet preferenceses where portletId = ? from the database.
 PortletPreferences updateImpl(PortletPreferences portletPreferences, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(PortletPreferences portletPreferences)
Caches the portlet preferences in the entity cache if it is enabled.

Parameters:
portletPreferences - the portlet preferences

cacheResult

void cacheResult(List<PortletPreferences> portletPreferenceses)
Caches the portlet preferenceses in the entity cache if it is enabled.

Parameters:
portletPreferenceses - the portlet preferenceses

create

PortletPreferences create(long portletPreferencesId)
Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.

Parameters:
portletPreferencesId - the primary key for the new portlet preferences
Returns:
the new portlet preferences

remove

PortletPreferences remove(long portletPreferencesId)
                          throws NoSuchPortletPreferencesException,
                                 SystemException
Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
portletPreferencesId - the primary key of the portlet preferences
Returns:
the portlet preferences that was removed
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

PortletPreferences updateImpl(PortletPreferences portletPreferences,
                              boolean merge)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

PortletPreferences findByPrimaryKey(long portletPreferencesId)
                                    throws NoSuchPortletPreferencesException,
                                           SystemException
Returns the portlet preferences with the primary key or throws a NoSuchPortletPreferencesException if it could not be found.

Parameters:
portletPreferencesId - the primary key of the portlet preferences
Returns:
the portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
                                     throws SystemException
Returns the portlet preferences with the primary key or returns null if it could not be found.

Parameters:
portletPreferencesId - the primary key of the portlet preferences
Returns:
the portlet preferences, or null if a portlet preferences with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByPlid

List<PortletPreferences> findByPlid(long plid)
                                    throws SystemException
Returns all the portlet preferenceses where plid = ?.

Parameters:
plid - the plid
Returns:
the matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPlid

List<PortletPreferences> findByPlid(long plid,
                                    int start,
                                    int end)
                                    throws SystemException
Returns a range of all the portlet preferenceses where plid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
plid - the plid
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPlid

List<PortletPreferences> findByPlid(long plid,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the portlet preferenceses where plid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
plid - the plid
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPlid_First

PortletPreferences findByPlid_First(long plid,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchPortletPreferencesException,
                                           SystemException
Returns the first portlet preferences in the ordered set where plid = ?.

Parameters:
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByPlid_First

PortletPreferences fetchByPlid_First(long plid,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first portlet preferences in the ordered set where plid = ?.

Parameters:
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByPlid_Last

PortletPreferences findByPlid_Last(long plid,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchPortletPreferencesException,
                                          SystemException
Returns the last portlet preferences in the ordered set where plid = ?.

Parameters:
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByPlid_Last

PortletPreferences fetchByPlid_Last(long plid,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last portlet preferences in the ordered set where plid = ?.

Parameters:
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByPlid_PrevAndNext

PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
                                            long plid,
                                            OrderByComparator orderByComparator)
                                            throws NoSuchPortletPreferencesException,
                                                   SystemException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

findByPortletId

List<PortletPreferences> findByPortletId(String portletId)
                                         throws SystemException
Returns all the portlet preferenceses where portletId = ?.

Parameters:
portletId - the portlet ID
Returns:
the matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPortletId

List<PortletPreferences> findByPortletId(String portletId,
                                         int start,
                                         int end)
                                         throws SystemException
Returns a range of all the portlet preferenceses where portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPortletId

List<PortletPreferences> findByPortletId(String portletId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the portlet preferenceses where portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByPortletId_First

PortletPreferences findByPortletId_First(String portletId,
                                         OrderByComparator orderByComparator)
                                         throws NoSuchPortletPreferencesException,
                                                SystemException
Returns the first portlet preferences in the ordered set where portletId = ?.

Parameters:
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByPortletId_First

PortletPreferences fetchByPortletId_First(String portletId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns the first portlet preferences in the ordered set where portletId = ?.

Parameters:
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByPortletId_Last

PortletPreferences findByPortletId_Last(String portletId,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchPortletPreferencesException,
                                               SystemException
Returns the last portlet preferences in the ordered set where portletId = ?.

Parameters:
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByPortletId_Last

PortletPreferences fetchByPortletId_Last(String portletId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Returns the last portlet preferences in the ordered set where portletId = ?.

Parameters:
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByPortletId_PrevAndNext

PortletPreferences[] findByPortletId_PrevAndNext(long portletPreferencesId,
                                                 String portletId,
                                                 OrderByComparator orderByComparator)
                                                 throws NoSuchPortletPreferencesException,
                                                        SystemException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

findByP_P

List<PortletPreferences> findByP_P(long plid,
                                   String portletId)
                                   throws SystemException
Returns all the portlet preferenceses where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
Returns:
the matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByP_P

List<PortletPreferences> findByP_P(long plid,
                                   String portletId,
                                   int start,
                                   int end)
                                   throws SystemException
Returns a range of all the portlet preferenceses where plid = ? and portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
plid - the plid
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByP_P

List<PortletPreferences> findByP_P(long plid,
                                   String portletId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
plid - the plid
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByP_P_First

PortletPreferences findByP_P_First(long plid,
                                   String portletId,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchPortletPreferencesException,
                                          SystemException
Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByP_P_First

PortletPreferences fetchByP_P_First(long plid,
                                    String portletId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByP_P_Last

PortletPreferences findByP_P_Last(long plid,
                                  String portletId,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchPortletPreferencesException,
                                         SystemException
Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByP_P_Last

PortletPreferences fetchByP_P_Last(long plid,
                                   String portletId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByP_P_PrevAndNext

PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId,
                                           long plid,
                                           String portletId,
                                           OrderByComparator orderByComparator)
                                           throws NoSuchPortletPreferencesException,
                                                  SystemException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

findByO_O_P

List<PortletPreferences> findByO_O_P(long ownerId,
                                     int ownerType,
                                     long plid)
                                     throws SystemException
Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
Returns:
the matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_O_P

List<PortletPreferences> findByO_O_P(long ownerId,
                                     int ownerType,
                                     long plid,
                                     int start,
                                     int end)
                                     throws SystemException
Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_O_P

List<PortletPreferences> findByO_O_P(long ownerId,
                                     int ownerType,
                                     long plid,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_O_P_First

PortletPreferences findByO_O_P_First(long ownerId,
                                     int ownerType,
                                     long plid,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchPortletPreferencesException,
                                            SystemException
Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByO_O_P_First

PortletPreferences fetchByO_O_P_First(long ownerId,
                                      int ownerType,
                                      long plid,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByO_O_P_Last

PortletPreferences findByO_O_P_Last(long ownerId,
                                    int ownerType,
                                    long plid,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchPortletPreferencesException,
                                           SystemException
Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByO_O_P_Last

PortletPreferences fetchByO_O_P_Last(long ownerId,
                                     int ownerType,
                                     long plid,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByO_O_P_PrevAndNext

PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
                                             long ownerId,
                                             int ownerType,
                                             long plid,
                                             OrderByComparator orderByComparator)
                                             throws NoSuchPortletPreferencesException,
                                                    SystemException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
ownerId - the owner ID
ownerType - the owner type
plid - the plid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

findByO_P_P

List<PortletPreferences> findByO_P_P(int ownerType,
                                     long plid,
                                     String portletId)
                                     throws SystemException
Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_P_P

List<PortletPreferences> findByO_P_P(int ownerType,
                                     long plid,
                                     String portletId,
                                     int start,
                                     int end)
                                     throws SystemException
Returns a range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_P_P

List<PortletPreferences> findByO_P_P(int ownerType,
                                     long plid,
                                     String portletId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

findByO_P_P_First

PortletPreferences findByO_P_P_First(int ownerType,
                                     long plid,
                                     String portletId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchPortletPreferencesException,
                                            SystemException
Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByO_P_P_First

PortletPreferences fetchByO_P_P_First(int ownerType,
                                      long plid,
                                      String portletId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByO_P_P_Last

PortletPreferences findByO_P_P_Last(int ownerType,
                                    long plid,
                                    String portletId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchPortletPreferencesException,
                                           SystemException
Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByO_P_P_Last

PortletPreferences fetchByO_P_P_Last(int ownerType,
                                     long plid,
                                     String portletId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findByO_P_P_PrevAndNext

PortletPreferences[] findByO_P_P_PrevAndNext(long portletPreferencesId,
                                             int ownerType,
                                             long plid,
                                             String portletId,
                                             OrderByComparator orderByComparator)
                                             throws NoSuchPortletPreferencesException,
                                                    SystemException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
ownerType - the owner type
plid - the plid
portletId - the portlet ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet preferences
Throws:
NoSuchPortletPreferencesException - if a portlet preferences with the primary key could not be found
SystemException - if a system exception occurred

findByO_O_P_P

PortletPreferences findByO_O_P_P(long ownerId,
                                 int ownerType,
                                 long plid,
                                 String portletId)
                                 throws NoSuchPortletPreferencesException,
                                        SystemException
Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or throws a NoSuchPortletPreferencesException if it could not be found.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the matching portlet preferences
Throws:
NoSuchPortletPreferencesException - if a matching portlet preferences could not be found
SystemException - if a system exception occurred

fetchByO_O_P_P

PortletPreferences fetchByO_O_P_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  String portletId)
                                  throws SystemException
Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

fetchByO_O_P_P

PortletPreferences fetchByO_O_P_P(long ownerId,
                                  int ownerType,
                                  long plid,
                                  String portletId,
                                  boolean retrieveFromCache)
                                  throws SystemException
Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching portlet preferences, or null if a matching portlet preferences could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<PortletPreferences> findAll()
                                 throws SystemException
Returns all the portlet preferenceses.

Returns:
the portlet preferenceses
Throws:
SystemException - if a system exception occurred

findAll

List<PortletPreferences> findAll(int start,
                                 int end)
                                 throws SystemException
Returns a range of all the portlet preferenceses.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
Returns:
the range of portlet preferenceses
Throws:
SystemException - if a system exception occurred

findAll

List<PortletPreferences> findAll(int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the portlet preferenceses.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of portlet preferenceses
end - the upper bound of the range of portlet preferenceses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of portlet preferenceses
Throws:
SystemException - if a system exception occurred

removeByPlid

void removeByPlid(long plid)
                  throws SystemException
Removes all the portlet preferenceses where plid = ? from the database.

Parameters:
plid - the plid
Throws:
SystemException - if a system exception occurred

removeByPortletId

void removeByPortletId(String portletId)
                       throws SystemException
Removes all the portlet preferenceses where portletId = ? from the database.

Parameters:
portletId - the portlet ID
Throws:
SystemException - if a system exception occurred

removeByP_P

void removeByP_P(long plid,
                 String portletId)
                 throws SystemException
Removes all the portlet preferenceses where plid = ? and portletId = ? from the database.

Parameters:
plid - the plid
portletId - the portlet ID
Throws:
SystemException - if a system exception occurred

removeByO_O_P

void removeByO_O_P(long ownerId,
                   int ownerType,
                   long plid)
                   throws SystemException
Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
Throws:
SystemException - if a system exception occurred

removeByO_P_P

void removeByO_P_P(int ownerType,
                   long plid,
                   String portletId)
                   throws SystemException
Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Throws:
SystemException - if a system exception occurred

removeByO_O_P_P

PortletPreferences removeByO_O_P_P(long ownerId,
                                   int ownerType,
                                   long plid,
                                   String portletId)
                                   throws NoSuchPortletPreferencesException,
                                          SystemException
Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the portlet preferences that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPortletPreferencesException

removeAll

void removeAll()
               throws SystemException
Removes all the portlet preferenceses from the database.

Throws:
SystemException - if a system exception occurred

countByPlid

int countByPlid(long plid)
                throws SystemException
Returns the number of portlet preferenceses where plid = ?.

Parameters:
plid - the plid
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countByPortletId

int countByPortletId(String portletId)
                     throws SystemException
Returns the number of portlet preferenceses where portletId = ?.

Parameters:
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countByP_P

int countByP_P(long plid,
               String portletId)
               throws SystemException
Returns the number of portlet preferenceses where plid = ? and portletId = ?.

Parameters:
plid - the plid
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countByO_O_P

int countByO_O_P(long ownerId,
                 int ownerType,
                 long plid)
                 throws SystemException
Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countByO_P_P

int countByO_P_P(int ownerType,
                 long plid,
                 String portletId)
                 throws SystemException
Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countByO_O_P_P

int countByO_O_P_P(long ownerId,
                   int ownerType,
                   long plid,
                   String portletId)
                   throws SystemException
Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of portlet preferenceses.

Returns:
the number of portlet preferenceses
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3