1
22
23 package com.liferay.portlet.blogs.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 BlogsStatsUserPersistence {
39 public com.liferay.portlet.blogs.model.BlogsStatsUser create(
40 long statsUserId);
41
42 public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
43 long statsUserId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.blogs.NoSuchStatsUserException;
46
47 public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
48 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.blogs.model.BlogsStatsUser update(
55 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.blogs.model.BlogsStatsUser update(
72 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
76 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
81 long statsUserId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.blogs.NoSuchStatsUserException;
84
85 public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
86 long statsUserId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
90 long groupId) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
94 long groupId, 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.blogs.model.BlogsStatsUser> findByGroupId(
99 long groupId, 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.blogs.model.BlogsStatsUser findByGroupId_First(
105 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.blogs.NoSuchStatsUserException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
111 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.blogs.NoSuchStatsUserException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
117 long statsUserId, long groupId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.blogs.NoSuchStatsUserException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
124 long userId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
128 long userId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
133 long userId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
139 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.blogs.NoSuchStatsUserException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
145 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.blogs.NoSuchStatsUserException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
151 long statsUserId, long userId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.blogs.NoSuchStatsUserException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
158 long groupId, long userId)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.blogs.NoSuchStatsUserException;
161
162 public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
163 long groupId, long userId) throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
167 long groupId, int entryCount) throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
171 long groupId, int entryCount, 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.blogs.model.BlogsStatsUser> findByG_E(
176 long groupId, int entryCount, 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.blogs.model.BlogsStatsUser findByG_E_First(
182 long groupId, int entryCount,
183 com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.blogs.NoSuchStatsUserException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
189 long groupId, int entryCount,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.blogs.NoSuchStatsUserException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
196 long statsUserId, long groupId, int entryCount,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.SystemException,
199 com.liferay.portlet.blogs.NoSuchStatsUserException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
203 long companyId, int entryCount)
204 throws com.liferay.portal.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
208 long companyId, int entryCount, 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.blogs.model.BlogsStatsUser> findByC_E(
213 long companyId, int entryCount, 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.blogs.model.BlogsStatsUser findByC_E_First(
219 long companyId, int entryCount,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.blogs.NoSuchStatsUserException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
226 long companyId, int entryCount,
227 com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.SystemException,
229 com.liferay.portlet.blogs.NoSuchStatsUserException;
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
233 long statsUserId, long companyId, int entryCount,
234 com.liferay.portal.kernel.util.OrderByComparator obc)
235 throws com.liferay.portal.SystemException,
236 com.liferay.portlet.blogs.NoSuchStatsUserException;
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.blogs.model.BlogsStatsUser> findAll()
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser> findAll(
258 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.SystemException;
260
261 public void removeByGroupId(long groupId)
262 throws com.liferay.portal.SystemException;
263
264 public void removeByUserId(long userId)
265 throws com.liferay.portal.SystemException;
266
267 public void removeByG_U(long groupId, long userId)
268 throws com.liferay.portal.SystemException,
269 com.liferay.portlet.blogs.NoSuchStatsUserException;
270
271 public void removeByG_E(long groupId, int entryCount)
272 throws com.liferay.portal.SystemException;
273
274 public void removeByC_E(long companyId, int entryCount)
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 countByGroupId(long groupId)
281 throws com.liferay.portal.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public int countByUserId(long userId)
285 throws com.liferay.portal.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public int countByG_U(long groupId, long userId)
289 throws com.liferay.portal.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int countByG_E(long groupId, int entryCount)
293 throws com.liferay.portal.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int countByC_E(long companyId, int entryCount)
297 throws com.liferay.portal.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public int countAll() throws com.liferay.portal.SystemException;
301
302 public void registerListener(
303 com.liferay.portal.model.ModelListener listener);
304
305 public void unregisterListener(
306 com.liferay.portal.model.ModelListener listener);
307 }