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 orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.PortletPreferences findByPlid_First(
79          long plid,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchPortletPreferencesException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.PortletPreferences findByPlid_Last(
85          long plid,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.NoSuchPortletPreferencesException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
91          long portletPreferencesId, long plid,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.NoSuchPortletPreferencesException,
94              com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
97          long plid, java.lang.String portletId)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
101         long plid, java.lang.String portletId, int start, int end)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
105         long plid, java.lang.String portletId, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.PortletPreferences findByP_P_First(
110         long plid, java.lang.String portletId,
111         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112         throws com.liferay.portal.NoSuchPortletPreferencesException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.PortletPreferences findByP_P_Last(
116         long plid, java.lang.String portletId,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.NoSuchPortletPreferencesException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
122         long portletPreferencesId, long plid, java.lang.String portletId,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.NoSuchPortletPreferencesException,
125             com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
128         long ownerId, int ownerType, long plid)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
132         long ownerId, int ownerType, long plid, int start, int end)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
136         long ownerId, int ownerType, long plid, int start, int end,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
141         long ownerId, int ownerType, long plid,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.NoSuchPortletPreferencesException,
144             com.liferay.portal.SystemException;
145 
146     public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
147         long ownerId, int ownerType, long plid,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.NoSuchPortletPreferencesException,
150             com.liferay.portal.SystemException;
151 
152     public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
153         long portletPreferencesId, long ownerId, int ownerType, long plid,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.NoSuchPortletPreferencesException,
156             com.liferay.portal.SystemException;
157 
158     public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
159         long ownerId, int ownerType, long plid, java.lang.String portletId)
160         throws com.liferay.portal.NoSuchPortletPreferencesException,
161             com.liferay.portal.SystemException;
162 
163     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
164         long ownerId, int ownerType, long plid, java.lang.String portletId)
165         throws com.liferay.portal.SystemException;
166 
167     public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
168         long ownerId, int ownerType, long plid, java.lang.String portletId,
169         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
175         int start, int end) throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
178         int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.SystemException;
181 
182     public void removeByPlid(long plid)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeByP_P(long plid, java.lang.String portletId)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByO_O_P(long ownerId, int ownerType, long plid)
189         throws com.liferay.portal.SystemException;
190 
191     public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
192         java.lang.String portletId)
193         throws com.liferay.portal.NoSuchPortletPreferencesException,
194             com.liferay.portal.SystemException;
195 
196     public void removeAll() throws com.liferay.portal.SystemException;
197 
198     public int countByPlid(long plid) throws com.liferay.portal.SystemException;
199 
200     public int countByP_P(long plid, java.lang.String portletId)
201         throws com.liferay.portal.SystemException;
202 
203     public int countByO_O_P(long ownerId, int ownerType, long plid)
204         throws com.liferay.portal.SystemException;
205 
206     public int countByO_O_P_P(long ownerId, int ownerType, long plid,
207         java.lang.String portletId) throws com.liferay.portal.SystemException;
208 
209     public int countAll() throws com.liferay.portal.SystemException;
210 }