1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="PortletPreferencesPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       PortletPreferencesPersistenceImpl
36   * @see       PortletPreferencesUtil
37   * @generated
38   */
39  public interface PortletPreferencesPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.PortletPreferences portletPreferences);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.PortletPreferences create(
49          long portletPreferencesId);
50  
51      public com.liferay.portal.model.PortletPreferences remove(
52          long portletPreferencesId)
53          throws com.liferay.portal.NoSuchPortletPreferencesException,
54              com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.PortletPreferences remove(
57          com.liferay.portal.model.PortletPreferences portletPreferences)
58          throws com.liferay.portal.SystemException;
59  
60      /**
61       * @deprecated Use {@link #update(PortletPreferences, boolean merge)}.
62       */
63      public com.liferay.portal.model.PortletPreferences update(
64          com.liferay.portal.model.PortletPreferences portletPreferences)
65          throws com.liferay.portal.SystemException;
66  
67      /**
68       * Add, update, or merge, the entity. This method also calls the model
69       * listeners to trigger the proper events associated with adding, deleting,
70       * or updating an entity.
71       *
72       * @param  portletPreferences the entity to add, update, or merge
73       * @param  merge boolean value for whether to merge the entity. The default
74       *         value is false. Setting merge to true is more expensive and
75       *         should only be true when portletPreferences is transient. See
76       *         LEP-5473 for a detailed discussion of this method.
77       * @return the entity that was added, updated, or merged
78       */
79      public com.liferay.portal.model.PortletPreferences update(
80          com.liferay.portal.model.PortletPreferences portletPreferences,
81          boolean merge) throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.PortletPreferences updateImpl(
84          com.liferay.portal.model.PortletPreferences portletPreferences,
85          boolean merge) throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
88          long portletPreferencesId)
89          throws com.liferay.portal.NoSuchPortletPreferencesException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
93          long portletPreferencesId) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
96          long plid) throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
99          long plid, int start, int end)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
103         long plid, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.PortletPreferences findByPlid_First(
108         long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchPortletPreferencesException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.PortletPreferences findByPlid_Last(
113         long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchPortletPreferencesException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
118         long portletPreferencesId, long plid,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.NoSuchPortletPreferencesException,
121             com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
124         long plid, java.lang.String portletId)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
128         long plid, java.lang.String portletId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
132         long plid, java.lang.String portletId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.PortletPreferences findByP_P_First(
137         long plid, java.lang.String portletId,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.NoSuchPortletPreferencesException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portal.model.PortletPreferences findByP_P_Last(
143         long plid, java.lang.String portletId,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchPortletPreferencesException,
146             com.liferay.portal.SystemException;
147 
148     public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
149         long portletPreferencesId, long plid, java.lang.String portletId,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.NoSuchPortletPreferencesException,
152             com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
155         long ownerId, int ownerType, long plid)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
159         long ownerId, int ownerType, long plid, int start, int end)
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
163         long ownerId, int ownerType, long plid, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException;
166 
167     public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
168         long ownerId, int ownerType, long plid,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.NoSuchPortletPreferencesException,
171             com.liferay.portal.SystemException;
172 
173     public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
174         long ownerId, int ownerType, long plid,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.NoSuchPortletPreferencesException,
177             com.liferay.portal.SystemException;
178 
179     public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
180         long portletPreferencesId, long ownerId, int ownerType, long plid,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.NoSuchPortletPreferencesException,
183             com.liferay.portal.SystemException;
184 
185     public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
186         long ownerId, int ownerType, long plid, java.lang.String portletId)
187         throws com.liferay.portal.NoSuchPortletPreferencesException,
188             com.liferay.portal.SystemException;
189 
190     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
191         long ownerId, int ownerType, long plid, java.lang.String portletId)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
195         long ownerId, int ownerType, long plid, java.lang.String portletId,
196         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<Object> findWithDynamicQuery(
199         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<Object> findWithDynamicQuery(
203         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
204         int end) throws com.liferay.portal.SystemException;
205 
206     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
207         throws com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
210         int start, int end) throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
213         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeByPlid(long plid)
217         throws com.liferay.portal.SystemException;
218 
219     public void removeByP_P(long plid, java.lang.String portletId)
220         throws com.liferay.portal.SystemException;
221 
222     public void removeByO_O_P(long ownerId, int ownerType, long plid)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
226         java.lang.String portletId)
227         throws com.liferay.portal.NoSuchPortletPreferencesException,
228             com.liferay.portal.SystemException;
229 
230     public void removeAll() throws com.liferay.portal.SystemException;
231 
232     public int countByPlid(long plid) throws com.liferay.portal.SystemException;
233 
234     public int countByP_P(long plid, java.lang.String portletId)
235         throws com.liferay.portal.SystemException;
236 
237     public int countByO_O_P(long ownerId, int ownerType, long plid)
238         throws com.liferay.portal.SystemException;
239 
240     public int countByO_O_P_P(long ownerId, int ownerType, long plid,
241         java.lang.String portletId) throws com.liferay.portal.SystemException;
242 
243     public int countAll() throws com.liferay.portal.SystemException;
244 }