1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.messageboards.model.MBCategory;
20  
21  /**
22   * <a href="MBCategoryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       MBCategoryPersistenceImpl
31   * @see       MBCategoryUtil
32   * @generated
33   */
34  public interface MBCategoryPersistence extends BasePersistence<MBCategory> {
35      public void cacheResult(
36          com.liferay.portlet.messageboards.model.MBCategory mbCategory);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories);
40  
41      public com.liferay.portlet.messageboards.model.MBCategory create(
42          long categoryId);
43  
44      public com.liferay.portlet.messageboards.model.MBCategory remove(
45          long categoryId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.messageboards.NoSuchCategoryException;
48  
49      public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
50          com.liferay.portlet.messageboards.model.MBCategory mbCategory,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
55          long categoryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.messageboards.NoSuchCategoryException;
58  
59      public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
60          long categoryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.messageboards.NoSuchCategoryException;
81  
82      public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.messageboards.NoSuchCategoryException;
87  
88      public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
89          long categoryId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.messageboards.NoSuchCategoryException;
93  
94      public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.messageboards.NoSuchCategoryException;
98  
99      public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
104         java.lang.String uuid, long groupId, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
108         long groupId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
112         long groupId, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
116         long groupId, int start, int end,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
121         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.messageboards.NoSuchCategoryException;
124 
125     public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
126         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.messageboards.NoSuchCategoryException;
129 
130     public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
131         long categoryId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.messageboards.NoSuchCategoryException;
135 
136     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
137         long companyId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
150         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.messageboards.NoSuchCategoryException;
153 
154     public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
155         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.messageboards.NoSuchCategoryException;
158 
159     public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
160         long categoryId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.messageboards.NoSuchCategoryException;
164 
165     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
166         long groupId, long parentCategoryId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
170         long groupId, long parentCategoryId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
174         long groupId, long parentCategoryId, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
179         long groupId, long parentCategoryId,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.messageboards.NoSuchCategoryException;
183 
184     public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
185         long groupId, long parentCategoryId,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.messageboards.NoSuchCategoryException;
189 
190     public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
191         long categoryId, long groupId, long parentCategoryId,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.messageboards.NoSuchCategoryException;
195 
196     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
200         int start, int end)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public void removeByUuid(java.lang.String uuid)
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public void removeByUUID_G(java.lang.String uuid, long groupId)
211         throws com.liferay.portal.kernel.exception.SystemException,
212             com.liferay.portlet.messageboards.NoSuchCategoryException;
213 
214     public void removeByGroupId(long groupId)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public void removeByCompanyId(long companyId)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public void removeByG_P(long groupId, long parentCategoryId)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public void removeAll()
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public int countByUuid(java.lang.String uuid)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public int countByUUID_G(java.lang.String uuid, long groupId)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public int countByGroupId(long groupId)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public int countByCompanyId(long companyId)
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public int countByG_P(long groupId, long parentCategoryId)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public int countAll()
242         throws com.liferay.portal.kernel.exception.SystemException;
243 }