001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBCategory;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       MBCategoryPersistenceImpl
024     * @see       MBCategoryUtil
025     * @generated
026     */
027    public interface MBCategoryPersistence extends BasePersistence<MBCategory> {
028            public void cacheResult(
029                    com.liferay.portlet.messageboards.model.MBCategory mbCategory);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories);
033    
034            public com.liferay.portlet.messageboards.model.MBCategory create(
035                    long categoryId);
036    
037            public com.liferay.portlet.messageboards.model.MBCategory remove(
038                    long categoryId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.messageboards.NoSuchCategoryException;
041    
042            public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
043                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
048                    long categoryId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.messageboards.NoSuchCategoryException;
051    
052            public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
053                    long categoryId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
065                    java.lang.String uuid, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.messageboards.NoSuchCategoryException;
074    
075            public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.messageboards.NoSuchCategoryException;
080    
081            public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
082                    long categoryId, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.messageboards.NoSuchCategoryException;
086    
087            public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
088                    java.lang.String uuid, long groupId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.messageboards.NoSuchCategoryException;
091    
092            public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
093                    java.lang.String uuid, long groupId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
097                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
101                    long groupId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
105                    long groupId, int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
109                    long groupId, int start, int end,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.messageboards.NoSuchCategoryException;
118    
119            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
120                    long groupId,
121                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122                    throws com.liferay.portal.kernel.exception.SystemException,
123                            com.liferay.portlet.messageboards.NoSuchCategoryException;
124    
125            public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
126                    long categoryId, long groupId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.messageboards.NoSuchCategoryException;
130    
131            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
132                    long groupId)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
136                    long groupId, int start, int end)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
140                    long groupId, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
145                    long companyId)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
149                    long companyId, int start, int end)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
153                    long companyId, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
158                    long companyId,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException,
161                            com.liferay.portlet.messageboards.NoSuchCategoryException;
162    
163            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
164                    long companyId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.messageboards.NoSuchCategoryException;
168    
169            public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
170                    long categoryId, long companyId,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.messageboards.NoSuchCategoryException;
174    
175            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
176                    long groupId, long parentCategoryId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
180                    long groupId, long parentCategoryId, int start, int end)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
184                    long groupId, long parentCategoryId, int start, int end,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
189                    long groupId, long parentCategoryId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.messageboards.NoSuchCategoryException;
193    
194            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
195                    long groupId, long parentCategoryId,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException,
198                            com.liferay.portlet.messageboards.NoSuchCategoryException;
199    
200            public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
201                    long categoryId, long groupId, long parentCategoryId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.messageboards.NoSuchCategoryException;
205    
206            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
207                    long groupId, long[] parentCategoryIds)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
211                    long groupId, long[] parentCategoryIds, int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
215                    long groupId, long[] parentCategoryIds, int start, int end,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
220                    long groupId, long parentCategoryId)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
224                    long groupId, long parentCategoryId, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException;
226    
227            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
228                    long groupId, long parentCategoryId, int start, int end,
229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
233                    long groupId, long[] parentCategoryIds)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
237                    long groupId, long[] parentCategoryIds, int start, int end)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
241                    long groupId, long[] parentCategoryIds, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
249                    int start, int end)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
253                    int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            public void removeByUuid(java.lang.String uuid)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            public void removeByUUID_G(java.lang.String uuid, long groupId)
261                    throws com.liferay.portal.kernel.exception.SystemException,
262                            com.liferay.portlet.messageboards.NoSuchCategoryException;
263    
264            public void removeByGroupId(long groupId)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            public void removeByCompanyId(long companyId)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            public void removeByG_P(long groupId, long parentCategoryId)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            public void removeAll()
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            public int countByUuid(java.lang.String uuid)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            public int countByUUID_G(java.lang.String uuid, long groupId)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            public int countByGroupId(long groupId)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public int filterCountByGroupId(long groupId)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            public int countByCompanyId(long companyId)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            public int countByG_P(long groupId, long parentCategoryId)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            public int countByG_P(long groupId, long[] parentCategoryIds)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            public int filterCountByG_P(long groupId, long parentCategoryId)
298                    throws com.liferay.portal.kernel.exception.SystemException;
299    
300            public int filterCountByG_P(long groupId, long[] parentCategoryIds)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            public int countAll()
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    }