1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.messageboards.model.MBCategory;
28  
29  /**
30   * <a href="MBCategoryPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       MBCategoryPersistenceImpl
39   * @see       MBCategoryUtil
40   * @generated
41   */
42  public interface MBCategoryPersistence extends BasePersistence<MBCategory> {
43      public void cacheResult(
44          com.liferay.portlet.messageboards.model.MBCategory mbCategory);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories);
48  
49      public com.liferay.portlet.messageboards.model.MBCategory create(
50          long categoryId);
51  
52      public com.liferay.portlet.messageboards.model.MBCategory remove(
53          long categoryId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.messageboards.NoSuchCategoryException;
56  
57      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.messageboards.model.MBCategory update(
61          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
65          com.liferay.portlet.messageboards.model.MBCategory mbCategory,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
69          long categoryId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.messageboards.NoSuchCategoryException;
72  
73      public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
74          long categoryId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
77          java.lang.String uuid) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
80          java.lang.String uuid, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
84          java.lang.String uuid, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
89          java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.messageboards.NoSuchCategoryException;
93  
94      public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
95          java.lang.String uuid,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.messageboards.NoSuchCategoryException;
99  
100     public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
101         long categoryId, java.lang.String uuid,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.messageboards.NoSuchCategoryException;
105 
106     public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
107         java.lang.String uuid, long groupId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.messageboards.NoSuchCategoryException;
110 
111     public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
112         java.lang.String uuid, long groupId)
113         throws com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
116         java.lang.String uuid, long groupId, boolean retrieveFromCache)
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
120         long groupId) throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
123         long groupId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
127         long groupId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
132         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.messageboards.NoSuchCategoryException;
135 
136     public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
137         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.messageboards.NoSuchCategoryException;
140 
141     public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
142         long categoryId, long groupId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.messageboards.NoSuchCategoryException;
146 
147     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
148         long companyId) throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
151         long companyId, int start, int end)
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
155         long companyId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
160         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.messageboards.NoSuchCategoryException;
163 
164     public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
165         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.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 obc)
172         throws com.liferay.portal.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.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.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 obc)
186         throws com.liferay.portal.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 obc)
191         throws com.liferay.portal.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 obc)
197         throws com.liferay.portal.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 obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.messageboards.NoSuchCategoryException;
205 
206     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
207         throws com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
210         int start, int end) throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
213         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeByUuid(java.lang.String uuid)
217         throws com.liferay.portal.SystemException;
218 
219     public void removeByUUID_G(java.lang.String uuid, long groupId)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.messageboards.NoSuchCategoryException;
222 
223     public void removeByGroupId(long groupId)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeByCompanyId(long companyId)
227         throws com.liferay.portal.SystemException;
228 
229     public void removeByG_P(long groupId, long parentCategoryId)
230         throws com.liferay.portal.SystemException;
231 
232     public void removeAll() throws com.liferay.portal.SystemException;
233 
234     public int countByUuid(java.lang.String uuid)
235         throws com.liferay.portal.SystemException;
236 
237     public int countByUUID_G(java.lang.String uuid, long groupId)
238         throws com.liferay.portal.SystemException;
239 
240     public int countByGroupId(long groupId)
241         throws com.liferay.portal.SystemException;
242 
243     public int countByCompanyId(long companyId)
244         throws com.liferay.portal.SystemException;
245 
246     public int countByG_P(long groupId, long parentCategoryId)
247         throws com.liferay.portal.SystemException;
248 
249     public int countAll() throws com.liferay.portal.SystemException;
250 }