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