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 MBCategoryPersistence extends BasePersistence {
40 public com.liferay.portlet.messageboards.model.MBCategory create(
41 long categoryId);
42
43 public com.liferay.portlet.messageboards.model.MBCategory remove(
44 long categoryId)
45 throws com.liferay.portal.SystemException,
46 com.liferay.portlet.messageboards.NoSuchCategoryException;
47
48 public com.liferay.portlet.messageboards.model.MBCategory remove(
49 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
50 throws com.liferay.portal.SystemException;
51
52
55 public com.liferay.portlet.messageboards.model.MBCategory update(
56 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
57 throws com.liferay.portal.SystemException;
58
59
72 public com.liferay.portlet.messageboards.model.MBCategory update(
73 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
74 boolean merge) throws com.liferay.portal.SystemException;
75
76 public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
77 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
78 boolean merge) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
82 long categoryId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.messageboards.NoSuchCategoryException;
85
86 public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
87 long categoryId) throws com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
91 java.lang.String uuid) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
95 java.lang.String uuid, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
100 java.lang.String uuid, int start, int end,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
106 java.lang.String uuid,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.messageboards.NoSuchCategoryException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
113 java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.messageboards.NoSuchCategoryException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
120 long categoryId, java.lang.String uuid,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.messageboards.NoSuchCategoryException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
127 java.lang.String uuid, long groupId)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.messageboards.NoSuchCategoryException;
130
131 public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
132 java.lang.String uuid, long groupId)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
137 long groupId) throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
146 long groupId, int start, int end,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
152 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.messageboards.NoSuchCategoryException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
158 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.messageboards.NoSuchCategoryException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
164 long categoryId, long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.messageboards.NoSuchCategoryException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
171 long companyId) throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
175 long companyId, int start, int end)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
180 long companyId, int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
186 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.messageboards.NoSuchCategoryException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
192 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.messageboards.NoSuchCategoryException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
198 long categoryId, long companyId,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.messageboards.NoSuchCategoryException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
205 long groupId, long parentCategoryId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
210 long groupId, long parentCategoryId, int start, int end)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
215 long groupId, long parentCategoryId, int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
221 long groupId, long parentCategoryId,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.messageboards.NoSuchCategoryException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
228 long groupId, long parentCategoryId,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchCategoryException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
235 long categoryId, long groupId, long parentCategoryId,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.SystemException,
238 com.liferay.portlet.messageboards.NoSuchCategoryException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<Object> findWithDynamicQuery(
242 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
243 throws com.liferay.portal.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public java.util.List<Object> findWithDynamicQuery(
247 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
248 int end) throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
256 int start, int end) throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
260 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException;
262
263 public void removeByUuid(java.lang.String uuid)
264 throws com.liferay.portal.SystemException;
265
266 public void removeByUUID_G(java.lang.String uuid, long groupId)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.messageboards.NoSuchCategoryException;
269
270 public void removeByGroupId(long groupId)
271 throws com.liferay.portal.SystemException;
272
273 public void removeByCompanyId(long companyId)
274 throws com.liferay.portal.SystemException;
275
276 public void removeByG_P(long groupId, long parentCategoryId)
277 throws com.liferay.portal.SystemException;
278
279 public void removeAll() throws com.liferay.portal.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int countByUuid(java.lang.String uuid)
283 throws com.liferay.portal.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int countByUUID_G(java.lang.String uuid, long groupId)
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int countByGroupId(long groupId)
291 throws com.liferay.portal.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int countByCompanyId(long companyId)
295 throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int countByG_P(long groupId, long parentCategoryId)
299 throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int countAll() throws com.liferay.portal.SystemException;
303 }