1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface PortletPreferencesPersistence extends BasePersistence {
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 public com.liferay.portal.model.PortletPreferences remove(
48 com.liferay.portal.model.PortletPreferences portletPreferences)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portal.model.PortletPreferences update(
55 com.liferay.portal.model.PortletPreferences portletPreferences)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portal.model.PortletPreferences update(
72 com.liferay.portal.model.PortletPreferences portletPreferences,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portal.model.PortletPreferences updateImpl(
76 com.liferay.portal.model.PortletPreferences portletPreferences,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
81 long portletPreferencesId)
82 throws com.liferay.portal.NoSuchPortletPreferencesException,
83 com.liferay.portal.SystemException;
84
85 public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
86 long portletPreferencesId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
90 long plid) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
94 long plid, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
99 long plid, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portal.model.PortletPreferences findByPlid_First(
105 long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.NoSuchPortletPreferencesException,
107 com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portal.model.PortletPreferences findByPlid_Last(
111 long plid, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.NoSuchPortletPreferencesException,
113 com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
117 long portletPreferencesId, long plid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchPortletPreferencesException,
120 com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
129 long plid, java.lang.String portletId, int start, int end)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
134 long plid, java.lang.String portletId, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portal.model.PortletPreferences findByP_P_First(
140 long plid, java.lang.String portletId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchPortletPreferencesException,
143 com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portal.model.PortletPreferences findByP_P_Last(
147 long plid, java.lang.String portletId,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.NoSuchPortletPreferencesException,
150 com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
154 long portletPreferencesId, long plid, java.lang.String portletId,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.NoSuchPortletPreferencesException,
157 com.liferay.portal.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
161 long ownerId, int ownerType, long plid)
162 throws com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
166 long ownerId, int ownerType, long plid, int start, int end)
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
171 long ownerId, int ownerType, long plid, int start, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
177 long ownerId, int ownerType, long plid,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.NoSuchPortletPreferencesException,
180 com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
184 long ownerId, int ownerType, long plid,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.NoSuchPortletPreferencesException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
191 long portletPreferencesId, long ownerId, int ownerType, long plid,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.NoSuchPortletPreferencesException,
194 com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
198 long ownerId, int ownerType, long plid, java.lang.String portletId)
199 throws com.liferay.portal.NoSuchPortletPreferencesException,
200 com.liferay.portal.SystemException;
201
202 public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
203 long ownerId, int ownerType, long plid, java.lang.String portletId)
204 throws com.liferay.portal.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<Object> findWithDynamicQuery(
208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<Object> findWithDynamicQuery(
213 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
214 int end) throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
218 throws com.liferay.portal.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
222 int start, int end) throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
226 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException;
228
229 public void removeByPlid(long plid)
230 throws com.liferay.portal.SystemException;
231
232 public void removeByP_P(long plid, java.lang.String portletId)
233 throws com.liferay.portal.SystemException;
234
235 public void removeByO_O_P(long ownerId, int ownerType, long plid)
236 throws com.liferay.portal.SystemException;
237
238 public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
239 java.lang.String portletId)
240 throws com.liferay.portal.NoSuchPortletPreferencesException,
241 com.liferay.portal.SystemException;
242
243 public void removeAll() throws com.liferay.portal.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public int countByPlid(long plid) throws com.liferay.portal.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public int countByP_P(long plid, java.lang.String portletId)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public int countByO_O_P(long ownerId, int ownerType, long plid)
254 throws com.liferay.portal.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public int countByO_O_P_P(long ownerId, int ownerType, long plid,
258 java.lang.String portletId) throws com.liferay.portal.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public int countAll() throws com.liferay.portal.SystemException;
262 }