1
22
23 package com.liferay.portlet.calendar.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 CalEventPersistence {
39 public com.liferay.portlet.calendar.model.CalEvent create(long eventId);
40
41 public com.liferay.portlet.calendar.model.CalEvent remove(long eventId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.calendar.NoSuchEventException;
44
45 public com.liferay.portlet.calendar.model.CalEvent remove(
46 com.liferay.portlet.calendar.model.CalEvent calEvent)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.calendar.model.CalEvent update(
53 com.liferay.portlet.calendar.model.CalEvent calEvent)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.calendar.model.CalEvent update(
70 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.calendar.model.CalEvent updateImpl(
74 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
79 long eventId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.calendar.NoSuchEventException;
82
83 public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
84 long eventId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
88 java.lang.String uuid) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
92 java.lang.String uuid, int start, int end)
93 throws com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
97 java.lang.String uuid, int start, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
103 java.lang.String uuid,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.calendar.NoSuchEventException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
110 java.lang.String uuid,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.calendar.NoSuchEventException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
117 long eventId, java.lang.String uuid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.calendar.NoSuchEventException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
124 java.lang.String uuid, long groupId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.calendar.NoSuchEventException;
127
128 public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
129 java.lang.String uuid, long groupId)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
134 long groupId) throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
138 long groupId, int start, int end)
139 throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
143 long groupId, int start, int end,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
149 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.calendar.NoSuchEventException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
155 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.calendar.NoSuchEventException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
161 long eventId, long groupId,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.calendar.NoSuchEventException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
168 long groupId, java.lang.String type)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
173 long groupId, java.lang.String type, int start, int end)
174 throws com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
178 long groupId, java.lang.String type, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
184 long groupId, java.lang.String type,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.calendar.NoSuchEventException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
191 long groupId, java.lang.String type,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.calendar.NoSuchEventException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
198 long eventId, long groupId, java.lang.String type,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.calendar.NoSuchEventException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
205 long groupId, boolean repeating)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
210 long groupId, boolean repeating, int start, int end)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
215 long groupId, boolean repeating, int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
221 long groupId, boolean repeating,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.calendar.NoSuchEventException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
228 long groupId, boolean repeating,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.calendar.NoSuchEventException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
235 long eventId, long groupId, boolean repeating,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.SystemException,
238 com.liferay.portlet.calendar.NoSuchEventException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<Object> findWithDynamicQuery(
242 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
243 throws com.liferay.portal.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public java.util.List<Object> findWithDynamicQuery(
247 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
248 int end) throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
256 int start, int end) throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
260 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException;
262
263 public void removeByUuid(java.lang.String uuid)
264 throws com.liferay.portal.SystemException;
265
266 public void removeByUUID_G(java.lang.String uuid, long groupId)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.calendar.NoSuchEventException;
269
270 public void removeByGroupId(long groupId)
271 throws com.liferay.portal.SystemException;
272
273 public void removeByG_T(long groupId, java.lang.String type)
274 throws com.liferay.portal.SystemException;
275
276 public void removeByG_R(long groupId, boolean repeating)
277 throws com.liferay.portal.SystemException;
278
279 public void removeAll() throws com.liferay.portal.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int countByUuid(java.lang.String uuid)
283 throws com.liferay.portal.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int countByUUID_G(java.lang.String uuid, long groupId)
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int countByGroupId(long groupId)
291 throws com.liferay.portal.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int countByG_T(long groupId, java.lang.String type)
295 throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int countByG_R(long groupId, boolean repeating)
299 throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int countAll() throws com.liferay.portal.SystemException;
303
304 public void registerListener(
305 com.liferay.portal.model.ModelListener listener);
306
307 public void unregisterListener(
308 com.liferay.portal.model.ModelListener listener);
309 }