1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.PortletPreferences;
18  
19  /**
20   * <a href="PortletPreferencesPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       PortletPreferencesPersistenceImpl
29   * @see       PortletPreferencesUtil
30   * @generated
31   */
32  public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> {
33      public void cacheResult(
34          com.liferay.portal.model.PortletPreferences portletPreferences);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
38  
39      public com.liferay.portal.model.PortletPreferences create(
40          long portletPreferencesId);
41  
42      public com.liferay.portal.model.PortletPreferences remove(
43          long portletPreferencesId)
44          throws com.liferay.portal.NoSuchPortletPreferencesException,
45              com.liferay.portal.SystemException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portal.model.PortletPreferences update(
51          com.liferay.portal.model.PortletPreferences portletPreferences)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.PortletPreferences updateImpl(
55          com.liferay.portal.model.PortletPreferences portletPreferences,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
59          long portletPreferencesId)
60          throws com.liferay.portal.NoSuchPortletPreferencesException,
61              com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
64          long portletPreferencesId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
67          long plid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
70          long plid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
74          long plid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.PortletPreferences findByPlid_First(
79          long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchPortletPreferencesException,
81              com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.PortletPreferences findByPlid_Last(
84          long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchPortletPreferencesException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
89          long portletPreferencesId, long plid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.NoSuchPortletPreferencesException,
92              com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
95          long plid, java.lang.String portletId)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
99          long plid, java.lang.String portletId, int start, int end)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
103         long plid, java.lang.String portletId, 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 findByP_P_First(
108         long plid, java.lang.String portletId,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.NoSuchPortletPreferencesException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.PortletPreferences findByP_P_Last(
114         long plid, java.lang.String portletId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchPortletPreferencesException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
120         long portletPreferencesId, long plid, java.lang.String portletId,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.NoSuchPortletPreferencesException,
123             com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
126         long ownerId, int ownerType, long plid)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
130         long ownerId, int ownerType, long plid, int start, int end)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
134         long ownerId, int ownerType, long plid, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException;
137 
138     public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
139         long ownerId, int ownerType, long plid,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchPortletPreferencesException,
142             com.liferay.portal.SystemException;
143 
144     public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
145         long ownerId, int ownerType, long plid,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchPortletPreferencesException,
148             com.liferay.portal.SystemException;
149 
150     public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
151         long portletPreferencesId, long ownerId, int ownerType, long plid,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.NoSuchPortletPreferencesException,
154             com.liferay.portal.SystemException;
155 
156     public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
157         long ownerId, int ownerType, long plid, java.lang.String portletId)
158         throws com.liferay.portal.NoSuchPortletPreferencesException,
159             com.liferay.portal.SystemException;
160 
161     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
162         long ownerId, int ownerType, long plid, java.lang.String portletId)
163         throws com.liferay.portal.SystemException;
164 
165     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
166         long ownerId, int ownerType, long plid, java.lang.String portletId,
167         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
173         int start, int end) throws com.liferay.portal.SystemException;
174 
175     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
176         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public void removeByPlid(long plid)
180         throws com.liferay.portal.SystemException;
181 
182     public void removeByP_P(long plid, java.lang.String portletId)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeByO_O_P(long ownerId, int ownerType, long plid)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
189         java.lang.String portletId)
190         throws com.liferay.portal.NoSuchPortletPreferencesException,
191             com.liferay.portal.SystemException;
192 
193     public void removeAll() throws com.liferay.portal.SystemException;
194 
195     public int countByPlid(long plid) throws com.liferay.portal.SystemException;
196 
197     public int countByP_P(long plid, java.lang.String portletId)
198         throws com.liferay.portal.SystemException;
199 
200     public int countByO_O_P(long ownerId, int ownerType, long plid)
201         throws com.liferay.portal.SystemException;
202 
203     public int countByO_O_P_P(long ownerId, int ownerType, long plid,
204         java.lang.String portletId) throws com.liferay.portal.SystemException;
205 
206     public int countAll() throws com.liferay.portal.SystemException;
207 }