/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portal.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.exception.NoSuchPortletPreferencesException; import com.liferay.portal.kernel.model.PortletPreferences; /** * The persistence interface for the portlet preferences service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portal.service.persistence.impl.PortletPreferencesPersistenceImpl * @see PortletPreferencesUtil * @generated */ @ProviderType public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link PortletPreferencesUtil} to access the portlet preferences persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the portlet preferenceses where plid = ?. * * @param plid the plid * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPlid(long plid); /** * Returns a range of all the portlet preferenceses where plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPlid(long plid, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPlid(long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where plid = ?. * * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where plid = ?. * * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByPlid_First(long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where plid = ?. * * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where plid = ?. * * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByPlid_Last(long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByPlid_PrevAndNext( long portletPreferencesId, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where plid = ? from the database. * * @param plid the plid */ public void removeByPlid(long plid); /** * Returns the number of portlet preferenceses where plid = ?. * * @param plid the plid * @return the number of matching portlet preferenceses */ public int countByPlid(long plid); /** * Returns all the portlet preferenceses where portletId = ?. * * @param portletId the portlet ID * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPortletId( java.lang.String portletId); /** * Returns a range of all the portlet preferenceses where portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPortletId( java.lang.String portletId, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPortletId( java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByPortletId( java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where portletId = ?. * * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByPortletId_First( java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where portletId = ?. * * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByPortletId_First( java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where portletId = ?. * * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByPortletId_Last(java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where portletId = ?. * * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByPortletId_Last( java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByPortletId_PrevAndNext( long portletPreferencesId, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where portletId = ? from the database. * * @param portletId the portlet ID */ public void removeByPortletId(java.lang.String portletId); /** * Returns the number of portlet preferenceses where portletId = ?. * * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByPortletId(java.lang.String portletId); /** * Returns all the portlet preferenceses where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P(int ownerType, java.lang.String portletId); /** * Returns a range of all the portlet preferenceses where ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P(int ownerType, java.lang.String portletId, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P(int ownerType, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P(int ownerType, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_P_First(int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_P_First(int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_P_Last(int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_P_Last(int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and portletId = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByO_P_PrevAndNext( long portletPreferencesId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where ownerType = ? and portletId = ? from the database. * * @param ownerType the owner type * @param portletId the portlet ID */ public void removeByO_P(int ownerType, java.lang.String portletId); /** * Returns the number of portlet preferenceses where ownerType = ? and portletId = ?. * * @param ownerType the owner type * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByO_P(int ownerType, java.lang.String portletId); /** * Returns all the portlet preferenceses where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId); /** * Returns a range of all the portlet preferenceses where plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByP_P(long plid, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByP_P_First(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByP_P_First(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByP_P_Last(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByP_P_Last(long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = ? and portletId = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByP_P_PrevAndNext( long portletPreferencesId, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where plid = ? and portletId = ? from the database. * * @param plid the plid * @param portletId the portlet ID */ public void removeByP_P(long plid, java.lang.String portletId); /** * Returns the number of portlet preferenceses where plid = ? and portletId = ?. * * @param plid the plid * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByP_P(long plid, java.lang.String portletId); /** * Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid); /** * Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_P(long ownerId, int ownerType, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_O_P_First(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_P_First(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_O_P_Last(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_P_Last(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and plid = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByO_O_P_PrevAndNext( long portletPreferencesId, long ownerId, int ownerType, long plid, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? from the database. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid */ public void removeByO_O_P(long ownerId, int ownerType, long plid); /** * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @return the number of matching portlet preferenceses */ public int countByO_O_P(long ownerId, int ownerType, long plid); /** * Returns all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, java.lang.String portletId); /** * Returns a range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, java.lang.String portletId, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_O_PI(long ownerId, int ownerType, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_O_PI_First(long ownerId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_PI_First(long ownerId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_O_PI_Last(long ownerId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_PI_Last(long ownerId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = ? and ownerType = ? and portletId = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByO_O_PI_PrevAndNext( long portletPreferencesId, long ownerId, int ownerType, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ? from the database. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID */ public void removeByO_O_PI(long ownerId, int ownerType, java.lang.String portletId); /** * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByO_O_PI(long ownerId, int ownerType, java.lang.String portletId); /** * Returns all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P_P(int ownerType, long plid, java.lang.String portletId); /** * Returns a range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P_P(int ownerType, long plid, java.lang.String portletId, int start, int end); /** * Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P_P(int ownerType, long plid, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching portlet preferenceses */ public java.util.List<PortletPreferences> findByO_P_P(int ownerType, long plid, java.lang.String portletId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_P_P_First(int ownerType, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the first portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_P_P_First(int ownerType, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_P_P_Last(int ownerType, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Returns the last portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_P_P_Last(int ownerType, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = ? and plid = ? and portletId = ?. * * @param portletPreferencesId the primary key of the current portlet preferences * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences[] findByO_P_P_PrevAndNext( long portletPreferencesId, int ownerType, long plid, java.lang.String portletId, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator) throws NoSuchPortletPreferencesException; /** * Removes all the portlet preferenceses where ownerType = ? and plid = ? and portletId = ? from the database. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID */ public void removeByO_P_P(int ownerType, long plid, java.lang.String portletId); /** * Returns the number of portlet preferenceses where ownerType = ? and plid = ? and portletId = ?. * * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByO_P_P(int ownerType, long plid, java.lang.String portletId); /** * Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or throws a {@link NoSuchPortletPreferencesException} if it could not be found. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the matching portlet preferences * @throws NoSuchPortletPreferencesException if a matching portlet preferences could not be found */ public PortletPreferences findByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId) throws NoSuchPortletPreferencesException; /** * Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId); /** * Returns the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found */ public PortletPreferences fetchByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId, boolean retrieveFromCache); /** * Removes the portlet preferences where ownerId = ? and ownerType = ? and plid = ? and portletId = ? from the database. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the portlet preferences that was removed */ public PortletPreferences removeByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId) throws NoSuchPortletPreferencesException; /** * Returns the number of portlet preferenceses where ownerId = ? and ownerType = ? and plid = ? and portletId = ?. * * @param ownerId the owner ID * @param ownerType the owner type * @param plid the plid * @param portletId the portlet ID * @return the number of matching portlet preferenceses */ public int countByO_O_P_P(long ownerId, int ownerType, long plid, java.lang.String portletId); /** * Caches the portlet preferences in the entity cache if it is enabled. * * @param portletPreferences the portlet preferences */ public void cacheResult(PortletPreferences portletPreferences); /** * Caches the portlet preferenceses in the entity cache if it is enabled. * * @param portletPreferenceses the portlet preferenceses */ public void cacheResult( java.util.List<PortletPreferences> portletPreferenceses); /** * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database. * * @param portletPreferencesId the primary key for the new portlet preferences * @return the new portlet preferences */ public PortletPreferences create(long portletPreferencesId); /** * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners. * * @param portletPreferencesId the primary key of the portlet preferences * @return the portlet preferences that was removed * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences remove(long portletPreferencesId) throws NoSuchPortletPreferencesException; public PortletPreferences updateImpl(PortletPreferences portletPreferences); /** * Returns the portlet preferences with the primary key or throws a {@link NoSuchPortletPreferencesException} if it could not be found. * * @param portletPreferencesId the primary key of the portlet preferences * @return the portlet preferences * @throws NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found */ public PortletPreferences findByPrimaryKey(long portletPreferencesId) throws NoSuchPortletPreferencesException; /** * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found. * * @param portletPreferencesId the primary key of the portlet preferences * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found */ public PortletPreferences fetchByPrimaryKey(long portletPreferencesId); @Override public java.util.Map<java.io.Serializable, PortletPreferences> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the portlet preferenceses. * * @return the portlet preferenceses */ public java.util.List<PortletPreferences> findAll(); /** * Returns a range of all the portlet preferenceses. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @return the range of portlet preferenceses */ public java.util.List<PortletPreferences> findAll(int start, int end); /** * Returns an ordered range of all the portlet preferenceses. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of portlet preferenceses */ public java.util.List<PortletPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator); /** * Returns an ordered range of all the portlet preferenceses. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link PortletPreferencesModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of portlet preferenceses * @param end the upper bound of the range of portlet preferenceses (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of portlet preferenceses */ public java.util.List<PortletPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PortletPreferences> orderByComparator, boolean retrieveFromCache); /** * Removes all the portlet preferenceses from the database. */ public void removeAll(); /** * Returns the number of portlet preferenceses. * * @return the number of portlet preferenceses */ public int countAll(); }