1
22
23 package com.liferay.portlet.announcements.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 AnnouncementsEntryPersistence {
39 public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
40 long entryId);
41
42 public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
43 long entryId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.announcements.NoSuchEntryException;
46
47 public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
48 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.announcements.model.AnnouncementsEntry update(
55 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.announcements.model.AnnouncementsEntry update(
72 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
76 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
81 long entryId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.announcements.NoSuchEntryException;
84
85 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
86 long entryId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
90 java.lang.String uuid) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
94 java.lang.String uuid, 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.portlet.announcements.model.AnnouncementsEntry> findByUuid(
99 java.lang.String uuid, 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.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
105 java.lang.String uuid,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.announcements.NoSuchEntryException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
112 java.lang.String uuid,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.announcements.NoSuchEntryException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
119 long entryId, java.lang.String uuid,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.announcements.NoSuchEntryException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
126 long userId) throws com.liferay.portal.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
130 long userId, int start, int end)
131 throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
135 long userId, int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
141 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.announcements.NoSuchEntryException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
147 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.announcements.NoSuchEntryException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
153 long entryId, long userId,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.announcements.NoSuchEntryException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
160 long classNameId, long classPK)
161 throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
165 long classNameId, long classPK, int start, int end)
166 throws com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
170 long classNameId, long classPK, int start, int end,
171 com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
176 long classNameId, long classPK,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.announcements.NoSuchEntryException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
183 long classNameId, long classPK,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.announcements.NoSuchEntryException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
190 long entryId, long classNameId, long classPK,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.announcements.NoSuchEntryException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
197 long classNameId, long classPK, boolean alert)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
202 long classNameId, long classPK, boolean alert, int start, int end)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
207 long classNameId, long classPK, boolean alert, int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator obc)
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
213 long classNameId, long classPK, boolean alert,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.announcements.NoSuchEntryException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
220 long classNameId, long classPK, boolean alert,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.announcements.NoSuchEntryException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
227 long entryId, long classNameId, long classPK, boolean alert,
228 com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.announcements.NoSuchEntryException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<Object> findWithDynamicQuery(
234 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
235 throws com.liferay.portal.SystemException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<Object> findWithDynamicQuery(
239 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
240 int end) throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
244 throws com.liferay.portal.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
248 int start, int end) throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
252 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException;
254
255 public void removeByUuid(java.lang.String uuid)
256 throws com.liferay.portal.SystemException;
257
258 public void removeByUserId(long userId)
259 throws com.liferay.portal.SystemException;
260
261 public void removeByC_C(long classNameId, long classPK)
262 throws com.liferay.portal.SystemException;
263
264 public void removeByC_C_A(long classNameId, long classPK, boolean alert)
265 throws com.liferay.portal.SystemException;
266
267 public void removeAll() throws com.liferay.portal.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public int countByUuid(java.lang.String uuid)
271 throws com.liferay.portal.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public int countByUserId(long userId)
275 throws com.liferay.portal.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public int countByC_C(long classNameId, long classPK)
279 throws com.liferay.portal.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int countByC_C_A(long classNameId, long classPK, boolean alert)
283 throws com.liferay.portal.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int countAll() throws com.liferay.portal.SystemException;
287
288 public void registerListener(
289 com.liferay.portal.model.ModelListener listener);
290
291 public void unregisterListener(
292 com.liferay.portal.model.ModelListener listener);
293 }