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