1
19
20 package com.liferay.portlet.messageboards.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 MBStatsUserPersistence extends BasePersistence {
37 public com.liferay.portlet.messageboards.model.MBStatsUser create(
38 long statsUserId);
39
40 public com.liferay.portlet.messageboards.model.MBStatsUser remove(
41 long statsUserId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.messageboards.NoSuchStatsUserException;
44
45 public com.liferay.portlet.messageboards.model.MBStatsUser remove(
46 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.messageboards.model.MBStatsUser update(
53 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.messageboards.model.MBStatsUser update(
70 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
74 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
79 long statsUserId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.messageboards.NoSuchStatsUserException;
82
83 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
84 long statsUserId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
88 long groupId) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
92 long groupId, 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.messageboards.model.MBStatsUser> findByGroupId(
97 long groupId, 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.messageboards.model.MBStatsUser findByGroupId_First(
103 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.messageboards.NoSuchStatsUserException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.messageboards.NoSuchStatsUserException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
115 long statsUserId, long groupId,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.messageboards.NoSuchStatsUserException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
122 long userId) throws com.liferay.portal.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
126 long userId, int start, int end)
127 throws com.liferay.portal.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
131 long userId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
137 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.messageboards.NoSuchStatsUserException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
143 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.messageboards.NoSuchStatsUserException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
149 long statsUserId, long userId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.messageboards.NoSuchStatsUserException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
156 long groupId, long userId)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.messageboards.NoSuchStatsUserException;
159
160 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
161 long groupId, long userId) throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
165 long groupId, int messageCount)
166 throws com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
170 long groupId, int messageCount, int start, int end)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
175 long groupId, int messageCount, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_First(
181 long groupId, int messageCount,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.messageboards.NoSuchStatsUserException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(
188 long groupId, int messageCount,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.messageboards.NoSuchStatsUserException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(
195 long statsUserId, long groupId, int messageCount,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException,
198 com.liferay.portlet.messageboards.NoSuchStatsUserException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<Object> findWithDynamicQuery(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<Object> findWithDynamicQuery(
207 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
208 int end) throws com.liferay.portal.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
212 throws com.liferay.portal.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
216 int start, int end) throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
220 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException;
222
223 public void removeByGroupId(long groupId)
224 throws com.liferay.portal.SystemException;
225
226 public void removeByUserId(long userId)
227 throws com.liferay.portal.SystemException;
228
229 public void removeByG_U(long groupId, long userId)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchStatsUserException;
232
233 public void removeByG_M(long groupId, int messageCount)
234 throws com.liferay.portal.SystemException;
235
236 public void removeAll() throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public int countByGroupId(long groupId)
240 throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public int countByUserId(long userId)
244 throws com.liferay.portal.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public int countByG_U(long groupId, long userId)
248 throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public int countByG_M(long groupId, int messageCount)
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public int countAll() throws com.liferay.portal.SystemException;
256 }