1
22
23 package com.liferay.portlet.messageboards.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 MBBanPersistence {
39 public com.liferay.portlet.messageboards.model.MBBan create(long banId);
40
41 public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.messageboards.NoSuchBanException;
44
45 public com.liferay.portlet.messageboards.model.MBBan remove(
46 com.liferay.portlet.messageboards.model.MBBan mbBan)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.messageboards.model.MBBan update(
53 com.liferay.portlet.messageboards.model.MBBan mbBan)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.messageboards.model.MBBan update(
70 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.messageboards.model.MBBan updateImpl(
74 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
79 long banId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.messageboards.NoSuchBanException;
82
83 public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
84 long banId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> 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.MBBan> 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.MBBan> 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.MBBan findByGroupId_First(
103 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.messageboards.NoSuchBanException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.messageboards.NoSuchBanException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
115 long banId, long groupId,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.messageboards.NoSuchBanException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> 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.MBBan> 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.MBBan> 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.MBBan findByUserId_First(
137 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.messageboards.NoSuchBanException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
143 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.messageboards.NoSuchBanException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
149 long banId, long userId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.messageboards.NoSuchBanException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
156 long banUserId) throws com.liferay.portal.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
160 long banUserId, int start, int end)
161 throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
165 long banUserId, int start, int end,
166 com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
171 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.messageboards.NoSuchBanException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
177 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.messageboards.NoSuchBanException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
183 long banId, long banUserId,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.messageboards.NoSuchBanException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.messageboards.model.MBBan findByG_B(
190 long groupId, long banUserId)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.messageboards.NoSuchBanException;
193
194 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
195 long groupId, long banUserId) throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<Object> findWithDynamicQuery(
199 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<Object> findWithDynamicQuery(
204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
205 int end) throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
213 int start, int end) throws com.liferay.portal.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
217 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException;
219
220 public void removeByGroupId(long groupId)
221 throws com.liferay.portal.SystemException;
222
223 public void removeByUserId(long userId)
224 throws com.liferay.portal.SystemException;
225
226 public void removeByBanUserId(long banUserId)
227 throws com.liferay.portal.SystemException;
228
229 public void removeByG_B(long groupId, long banUserId)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchBanException;
232
233 public void removeAll() throws com.liferay.portal.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public int countByGroupId(long groupId)
237 throws com.liferay.portal.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public int countByUserId(long userId)
241 throws com.liferay.portal.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public int countByBanUserId(long banUserId)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public int countByG_B(long groupId, long banUserId)
249 throws com.liferay.portal.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public int countAll() throws com.liferay.portal.SystemException;
253
254 public void registerListener(
255 com.liferay.portal.model.ModelListener listener);
256
257 public void unregisterListener(
258 com.liferay.portal.model.ModelListener listener);
259 }