Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Class PortletPreferencesUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.PortletPreferencesUtil

@ProviderType
public class PortletPreferencesUtil
extends Object

The persistence utility for the portlet preferences service. This utility wraps PortletPreferencesPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
PortletPreferencesUtil()
           
 
Method Summary
static void cacheResult(List<PortletPreferences> portletPreferenceses)
          Caches the portlet preferenceses in the entity cache if it is enabled.
static void cacheResult(PortletPreferences portletPreferences)
          Caches the portlet preferences in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(PortletPreferences portletPreferences)
           
static int countAll()
          Returns the number of portlet preferenceses.
static 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 = ?.
static int countByO_O_P(long ownerId, int ownerType, long plid)
          Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
static int countByO_O_PI(long ownerId, int ownerType, String portletId)
          Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.
static int countByO_P_P(int ownerType, long plid, String portletId)
          Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
static int countByO_P(int ownerType, String portletId)
          Returns the number of portlet preferenceses where ownerType = ? and portletId = ?.
static int countByP_P(long plid, String portletId)
          Returns the number of portlet preferenceses where plid = ? and portletId = ?.
static int countByPlid(long plid)
          Returns the number of portlet preferenceses where plid = ?.
static int countByPortletId(String portletId)
          Returns the number of portlet preferenceses where portletId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static PortletPreferences create(long portletPreferencesId)
          Creates a new portlet preferences with the primary key.
static PortletPreferences fetchByO_O_P_First(long ownerId, int ownerType, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
static PortletPreferences fetchByO_O_P_Last(long ownerId, int ownerType, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
static 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.
static 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.
static PortletPreferences fetchByO_O_PI_First(long ownerId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.
static PortletPreferences fetchByO_O_PI_Last(long ownerId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.
static PortletPreferences fetchByO_P_First(int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?.
static PortletPreferences fetchByO_P_Last(int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?.
static PortletPreferences fetchByO_P_P_First(int ownerType, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
static PortletPreferences fetchByO_P_P_Last(int ownerType, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
static PortletPreferences fetchByP_P_First(long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.
static PortletPreferences fetchByP_P_Last(long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.
static PortletPreferences fetchByPlid_First(long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ?.
static PortletPreferences fetchByPlid_Last(long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ?.
static PortletPreferences fetchByPortletId_First(String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where portletId = ?.
static PortletPreferences fetchByPortletId_Last(String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where portletId = ?.
static PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
          Returns the portlet preferences with the primary key or returns null if it could not be found.
static Map<Serializable,PortletPreferences> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static List<PortletPreferences> findAll()
          Returns all the portlet preferenceses.
static List<PortletPreferences> findAll(int start, int end)
          Returns a range of all the portlet preferenceses.
static List<PortletPreferences> findAll(int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses.
static List<PortletPreferences> findAll(int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses.
static PortletPreferences findByO_O_P_First(long ownerId, int ownerType, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
static PortletPreferences findByO_O_P_Last(long ownerId, int ownerType, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
static 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.
static PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId, long ownerId, int ownerType, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?.
static List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid)
          Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
static 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 = ?.
static List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
static List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?.
static PortletPreferences findByO_O_PI_First(long ownerId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.
static PortletPreferences findByO_O_PI_Last(long ownerId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.
static PortletPreferences[] findByO_O_PI_PrevAndNext(long portletPreferencesId, long ownerId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, String portletId)
          Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.
static PortletPreferences findByO_P_First(int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?.
static PortletPreferences findByO_P_Last(int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?.
static PortletPreferences findByO_P_P_First(int ownerType, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
static PortletPreferences findByO_P_P_Last(int ownerType, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
static PortletPreferences[] findByO_P_P_PrevAndNext(long portletPreferencesId, int ownerType, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?.
static List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId)
          Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
static 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 = ?.
static List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
static List<PortletPreferences> findByO_P_P(int ownerType, long plid, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?.
static PortletPreferences[] findByO_P_PrevAndNext(long portletPreferencesId, int ownerType, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_P(int ownerType, String portletId)
          Returns all the portlet preferenceses where ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_P(int ownerType, String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_P(int ownerType, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where ownerType = ? and portletId = ?.
static List<PortletPreferences> findByO_P(int ownerType, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where ownerType = ? and portletId = ?.
static PortletPreferences findByP_P_First(long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?.
static PortletPreferences findByP_P_Last(long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?.
static PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId, long plid, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?.
static List<PortletPreferences> findByP_P(long plid, String portletId)
          Returns all the portlet preferenceses where plid = ? and portletId = ?.
static List<PortletPreferences> findByP_P(long plid, String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where plid = ? and portletId = ?.
static List<PortletPreferences> findByP_P(long plid, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?.
static List<PortletPreferences> findByP_P(long plid, String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?.
static PortletPreferences findByPlid_First(long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where plid = ?.
static PortletPreferences findByPlid_Last(long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where plid = ?.
static PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId, long plid, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?.
static List<PortletPreferences> findByPlid(long plid)
          Returns all the portlet preferenceses where plid = ?.
static List<PortletPreferences> findByPlid(long plid, int start, int end)
          Returns a range of all the portlet preferenceses where plid = ?.
static List<PortletPreferences> findByPlid(long plid, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where plid = ?.
static List<PortletPreferences> findByPlid(long plid, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where plid = ?.
static PortletPreferences findByPortletId_First(String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the first portlet preferences in the ordered set where portletId = ?.
static PortletPreferences findByPortletId_Last(String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the last portlet preferences in the ordered set where portletId = ?.
static PortletPreferences[] findByPortletId_PrevAndNext(long portletPreferencesId, String portletId, OrderByComparator<PortletPreferences> orderByComparator)
          Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?.
static List<PortletPreferences> findByPortletId(String portletId)
          Returns all the portlet preferenceses where portletId = ?.
static List<PortletPreferences> findByPortletId(String portletId, int start, int end)
          Returns a range of all the portlet preferenceses where portletId = ?.
static List<PortletPreferences> findByPortletId(String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
          Returns an ordered range of all the portlet preferenceses where portletId = ?.
static List<PortletPreferences> findByPortletId(String portletId, int start, int end, OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the portlet preferenceses where portletId = ?.
static PortletPreferences findByPrimaryKey(long portletPreferencesId)
          Returns the portlet preferences with the primary key or throws a NoSuchPortletPreferencesException if it could not be found.
static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PortletPreferences> orderByComparator)
           
static PortletPreferencesPersistence getPersistence()
           
static PortletPreferences remove(long portletPreferencesId)
          Removes the portlet preferences with the primary key from the database.
static void removeAll()
          Removes all the portlet preferenceses from the database.
static 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.
static void removeByO_O_P(long ownerId, int ownerType, long plid)
          Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database.
static void removeByO_O_PI(long ownerId, int ownerType, String portletId)
          Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ? from the database.
static void removeByO_P_P(int ownerType, long plid, String portletId)
          Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database.
static void removeByO_P(int ownerType, String portletId)
          Removes all the portlet preferenceses where ownerType = ? and portletId = ? from the database.
static void removeByP_P(long plid, String portletId)
          Removes all the portlet preferenceses where plid = ? and portletId = ? from the database.
static void removeByPlid(long plid)
          Removes all the portlet preferenceses where plid = ? from the database.
static void removeByPortletId(String portletId)
          Removes all the portlet preferenceses where portletId = ? from the database.
static PortletPreferences update(PortletPreferences portletPreferences)
           
static PortletPreferences update(PortletPreferences portletPreferences, ServiceContext serviceContext)
           
static PortletPreferences updateImpl(PortletPreferences portletPreferences)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletPreferencesUtil

public PortletPreferencesUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(PortletPreferences portletPreferences)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<PortletPreferences> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end,
                                                            OrderByComparator<PortletPreferences> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static PortletPreferences update(PortletPreferences portletPreferences)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static PortletPreferences update(PortletPreferences portletPreferences,
                                        ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByPlid

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

Parameters:
plid - the plid
Returns:
the matching portlet preferenceses

findByPlid

public static List<PortletPreferences> findByPlid(long plid,
                                                  int start,
                                                  int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByPlid

public static List<PortletPreferences> findByPlid(long plid,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByPlid

public static List<PortletPreferences> findByPlid(long plid,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<PortletPreferences> orderByComparator,
                                                  boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByPlid_First

public static PortletPreferences findByPlid_First(long plid,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
                                           throws NoSuchPortletPreferencesException
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

fetchByPlid_First

public static PortletPreferences fetchByPlid_First(long plid,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
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

findByPlid_Last

public static PortletPreferences findByPlid_Last(long plid,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
                                          throws NoSuchPortletPreferencesException
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

fetchByPlid_Last

public static PortletPreferences fetchByPlid_Last(long plid,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
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

findByPlid_PrevAndNext

public static PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
                                                          long plid,
                                                          OrderByComparator<PortletPreferences> orderByComparator)
                                                   throws NoSuchPortletPreferencesException
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

removeByPlid

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

Parameters:
plid - the plid

countByPlid

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

Parameters:
plid - the plid
Returns:
the number of matching portlet preferenceses

findByPortletId

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

Parameters:
portletId - the portlet ID
Returns:
the matching portlet preferenceses

findByPortletId

public static List<PortletPreferences> findByPortletId(String portletId,
                                                       int start,
                                                       int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByPortletId

public static List<PortletPreferences> findByPortletId(String portletId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByPortletId

public static List<PortletPreferences> findByPortletId(String portletId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<PortletPreferences> orderByComparator,
                                                       boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByPortletId_First

public static PortletPreferences findByPortletId_First(String portletId,
                                                       OrderByComparator<PortletPreferences> orderByComparator)
                                                throws NoSuchPortletPreferencesException
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

fetchByPortletId_First

public static PortletPreferences fetchByPortletId_First(String portletId,
                                                        OrderByComparator<PortletPreferences> orderByComparator)
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

findByPortletId_Last

public static PortletPreferences findByPortletId_Last(String portletId,
                                                      OrderByComparator<PortletPreferences> orderByComparator)
                                               throws NoSuchPortletPreferencesException
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

fetchByPortletId_Last

public static PortletPreferences fetchByPortletId_Last(String portletId,
                                                       OrderByComparator<PortletPreferences> orderByComparator)
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

findByPortletId_PrevAndNext

public static PortletPreferences[] findByPortletId_PrevAndNext(long portletPreferencesId,
                                                               String portletId,
                                                               OrderByComparator<PortletPreferences> orderByComparator)
                                                        throws NoSuchPortletPreferencesException
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

removeByPortletId

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

Parameters:
portletId - the portlet ID

countByPortletId

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

Parameters:
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses

findByO_P

public static List<PortletPreferences> findByO_P(int ownerType,
                                                 String portletId)
Returns all the portlet preferenceses where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
portletId - the portlet ID
Returns:
the matching portlet preferenceses

findByO_P

public static List<PortletPreferences> findByO_P(int ownerType,
                                                 String portletId,
                                                 int start,
                                                 int end)
Returns a range of all the portlet preferenceses where ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerType - the owner type
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

findByO_P

public static List<PortletPreferences> findByO_P(int ownerType,
                                                 String portletId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
Returns an ordered range of all the portlet preferenceses where ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerType - the owner type
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

findByO_P

public static List<PortletPreferences> findByO_P(int ownerType,
                                                 String portletId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<PortletPreferences> orderByComparator,
                                                 boolean retrieveFromCache)
Returns an ordered range of all the portlet preferenceses where ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerType - the owner type
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByO_P_First

public static PortletPreferences findByO_P_First(int ownerType,
                                                 String portletId,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
                                          throws NoSuchPortletPreferencesException
Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
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

fetchByO_P_First

public static PortletPreferences fetchByO_P_First(int ownerType,
                                                  String portletId,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
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

findByO_P_Last

public static PortletPreferences findByO_P_Last(int ownerType,
                                                String portletId,
                                                OrderByComparator<PortletPreferences> orderByComparator)
                                         throws NoSuchPortletPreferencesException
Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
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

fetchByO_P_Last

public static PortletPreferences fetchByO_P_Last(int ownerType,
                                                 String portletId,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
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

findByO_P_PrevAndNext

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

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
ownerType - the owner type
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

removeByO_P

public static void removeByO_P(int ownerType,
                               String portletId)
Removes all the portlet preferenceses where ownerType = ? and portletId = ? from the database.

Parameters:
ownerType - the owner type
portletId - the portlet ID

countByO_P

public static int countByO_P(int ownerType,
                             String portletId)
Returns the number of portlet preferenceses where ownerType = ? and portletId = ?.

Parameters:
ownerType - the owner type
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses

findByP_P

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

Parameters:
plid - the plid
portletId - the portlet ID
Returns:
the matching portlet preferenceses

findByP_P

public static List<PortletPreferences> findByP_P(long plid,
                                                 String portletId,
                                                 int start,
                                                 int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByP_P

public static List<PortletPreferences> findByP_P(long plid,
                                                 String portletId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByP_P

public static List<PortletPreferences> findByP_P(long plid,
                                                 String portletId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<PortletPreferences> orderByComparator,
                                                 boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByP_P_First

public static PortletPreferences findByP_P_First(long plid,
                                                 String portletId,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
                                          throws NoSuchPortletPreferencesException
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

fetchByP_P_First

public static PortletPreferences fetchByP_P_First(long plid,
                                                  String portletId,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
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

findByP_P_Last

public static PortletPreferences findByP_P_Last(long plid,
                                                String portletId,
                                                OrderByComparator<PortletPreferences> orderByComparator)
                                         throws NoSuchPortletPreferencesException
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

fetchByP_P_Last

public static PortletPreferences fetchByP_P_Last(long plid,
                                                 String portletId,
                                                 OrderByComparator<PortletPreferences> orderByComparator)
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

findByP_P_PrevAndNext

public static PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId,
                                                         long plid,
                                                         String portletId,
                                                         OrderByComparator<PortletPreferences> orderByComparator)
                                                  throws NoSuchPortletPreferencesException
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

removeByP_P

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

Parameters:
plid - the plid
portletId - the portlet ID

countByP_P

public static int countByP_P(long plid,
                             String portletId)
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

findByO_O_P

public static List<PortletPreferences> findByO_O_P(long ownerId,
                                                   int ownerType,
                                                   long plid)
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

findByO_O_P

public static 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 = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByO_O_P

public static List<PortletPreferences> findByO_O_P(long ownerId,
                                                   int ownerType,
                                                   long plid,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByO_O_P

public static List<PortletPreferences> findByO_O_P(long ownerId,
                                                   int ownerType,
                                                   long plid,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<PortletPreferences> orderByComparator,
                                                   boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByO_O_P_First

public static PortletPreferences findByO_O_P_First(long ownerId,
                                                   int ownerType,
                                                   long plid,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
                                            throws NoSuchPortletPreferencesException
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

fetchByO_O_P_First

public static PortletPreferences fetchByO_O_P_First(long ownerId,
                                                    int ownerType,
                                                    long plid,
                                                    OrderByComparator<PortletPreferences> orderByComparator)
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

findByO_O_P_Last

public static PortletPreferences findByO_O_P_Last(long ownerId,
                                                  int ownerType,
                                                  long plid,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
                                           throws NoSuchPortletPreferencesException
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

fetchByO_O_P_Last

public static PortletPreferences fetchByO_O_P_Last(long ownerId,
                                                   int ownerType,
                                                   long plid,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
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

findByO_O_P_PrevAndNext

public static PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
                                                           long ownerId,
                                                           int ownerType,
                                                           long plid,
                                                           OrderByComparator<PortletPreferences> orderByComparator)
                                                    throws NoSuchPortletPreferencesException
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

removeByO_O_P

public static void removeByO_O_P(long ownerId,
                                 int ownerType,
                                 long plid)
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

countByO_O_P

public static int countByO_O_P(long ownerId,
                               int ownerType,
                               long plid)
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

findByO_O_PI

public static List<PortletPreferences> findByO_O_PI(long ownerId,
                                                    int ownerType,
                                                    String portletId)
Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
portletId - the portlet ID
Returns:
the matching portlet preferenceses

findByO_O_PI

public static List<PortletPreferences> findByO_O_PI(long ownerId,
                                                    int ownerType,
                                                    String portletId,
                                                    int start,
                                                    int end)
Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

findByO_O_PI

public static List<PortletPreferences> findByO_O_PI(long ownerId,
                                                    int ownerType,
                                                    String portletId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<PortletPreferences> orderByComparator)
Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

findByO_O_PI

public static List<PortletPreferences> findByO_O_PI(long ownerId,
                                                    int ownerType,
                                                    String portletId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<PortletPreferences> orderByComparator,
                                                    boolean retrieveFromCache)
Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByO_O_PI_First

public static PortletPreferences findByO_O_PI_First(long ownerId,
                                                    int ownerType,
                                                    String portletId,
                                                    OrderByComparator<PortletPreferences> orderByComparator)
                                             throws NoSuchPortletPreferencesException
Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

fetchByO_O_PI_First

public static PortletPreferences fetchByO_O_PI_First(long ownerId,
                                                     int ownerType,
                                                     String portletId,
                                                     OrderByComparator<PortletPreferences> orderByComparator)
Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

findByO_O_PI_Last

public static PortletPreferences findByO_O_PI_Last(long ownerId,
                                                   int ownerType,
                                                   String portletId,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
                                            throws NoSuchPortletPreferencesException
Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

fetchByO_O_PI_Last

public static PortletPreferences fetchByO_O_PI_Last(long ownerId,
                                                    int ownerType,
                                                    String portletId,
                                                    OrderByComparator<PortletPreferences> orderByComparator)
Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
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

findByO_O_PI_PrevAndNext

public static PortletPreferences[] findByO_O_PI_PrevAndNext(long portletPreferencesId,
                                                            long ownerId,
                                                            int ownerType,
                                                            String portletId,
                                                            OrderByComparator<PortletPreferences> orderByComparator)
                                                     throws NoSuchPortletPreferencesException
Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
portletPreferencesId - the primary key of the current portlet preferences
ownerId - the owner ID
ownerType - the owner type
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

removeByO_O_PI

public static void removeByO_O_PI(long ownerId,
                                  int ownerType,
                                  String portletId)
Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ? from the database.

Parameters:
ownerId - the owner ID
ownerType - the owner type
portletId - the portlet ID

countByO_O_PI

public static int countByO_O_PI(long ownerId,
                                int ownerType,
                                String portletId)
Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses

findByO_P_P

public static List<PortletPreferences> findByO_P_P(int ownerType,
                                                   long plid,
                                                   String portletId)
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

findByO_P_P

public static 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 = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByO_P_P

public static List<PortletPreferences> findByO_P_P(int ownerType,
                                                   long plid,
                                                   String portletId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByO_P_P

public static List<PortletPreferences> findByO_P_P(int ownerType,
                                                   long plid,
                                                   String portletId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<PortletPreferences> orderByComparator,
                                                   boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching portlet preferenceses

findByO_P_P_First

public static PortletPreferences findByO_P_P_First(int ownerType,
                                                   long plid,
                                                   String portletId,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
                                            throws NoSuchPortletPreferencesException
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

fetchByO_P_P_First

public static PortletPreferences fetchByO_P_P_First(int ownerType,
                                                    long plid,
                                                    String portletId,
                                                    OrderByComparator<PortletPreferences> orderByComparator)
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

findByO_P_P_Last

public static PortletPreferences findByO_P_P_Last(int ownerType,
                                                  long plid,
                                                  String portletId,
                                                  OrderByComparator<PortletPreferences> orderByComparator)
                                           throws NoSuchPortletPreferencesException
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

fetchByO_P_P_Last

public static PortletPreferences fetchByO_P_P_Last(int ownerType,
                                                   long plid,
                                                   String portletId,
                                                   OrderByComparator<PortletPreferences> orderByComparator)
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

findByO_P_P_PrevAndNext

public static PortletPreferences[] findByO_P_P_PrevAndNext(long portletPreferencesId,
                                                           int ownerType,
                                                           long plid,
                                                           String portletId,
                                                           OrderByComparator<PortletPreferences> orderByComparator)
                                                    throws NoSuchPortletPreferencesException
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

removeByO_P_P

public static void removeByO_P_P(int ownerType,
                                 long plid,
                                 String portletId)
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

countByO_P_P

public static int countByO_P_P(int ownerType,
                               long plid,
                               String portletId)
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

findByO_O_P_P

public static PortletPreferences findByO_O_P_P(long ownerId,
                                               int ownerType,
                                               long plid,
                                               String portletId)
                                        throws NoSuchPortletPreferencesException
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

fetchByO_O_P_P

public static 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. 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

fetchByO_O_P_P

public static 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.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching portlet preferences, or null if a matching portlet preferences could not be found

removeByO_O_P_P

public static PortletPreferences removeByO_O_P_P(long ownerId,
                                                 int ownerType,
                                                 long plid,
                                                 String portletId)
                                          throws NoSuchPortletPreferencesException
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:
NoSuchPortletPreferencesException

countByO_O_P_P

public static 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 = ?.

Parameters:
ownerId - the owner ID
ownerType - the owner type
plid - the plid
portletId - the portlet ID
Returns:
the number of matching portlet preferenceses

cacheResult

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

Parameters:
portletPreferences - the portlet preferences

cacheResult

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

Parameters:
portletPreferenceses - the portlet preferenceses

create

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

public static PortletPreferences remove(long portletPreferencesId)
                                 throws NoSuchPortletPreferencesException
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

updateImpl

public static PortletPreferences updateImpl(PortletPreferences portletPreferences)

findByPrimaryKey

public static PortletPreferences findByPrimaryKey(long portletPreferencesId)
                                           throws NoSuchPortletPreferencesException
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

fetchByPrimaryKey

public static PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
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

fetchByPrimaryKeys

public static Map<Serializable,PortletPreferences> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<PortletPreferences> findAll()
Returns all the portlet preferenceses.

Returns:
the portlet preferenceses

findAll

public static List<PortletPreferences> findAll(int start,
                                               int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

public static List<PortletPreferences> findAll(int start,
                                               int end,
                                               OrderByComparator<PortletPreferences> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

public static List<PortletPreferences> findAll(int start,
                                               int end,
                                               OrderByComparator<PortletPreferences> orderByComparator,
                                               boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from PortletPreferencesModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of portlet preferenceses

removeAll

public static void removeAll()
Removes all the portlet preferenceses from the database.


countAll

public static int countAll()
Returns the number of portlet preferenceses.

Returns:
the number of portlet preferenceses

getPersistence

public static PortletPreferencesPersistence getPersistence()

Liferay 7.0-ce-b4