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.MBThread;
20  
21  /**
22   * <a href="MBThreadPersistence.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       MBThreadPersistenceImpl
31   * @see       MBThreadUtil
32   * @generated
33   */
34  public interface MBThreadPersistence extends BasePersistence<MBThread> {
35      public void cacheResult(
36          com.liferay.portlet.messageboards.model.MBThread mbThread);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
40  
41      public com.liferay.portlet.messageboards.model.MBThread create(
42          long threadId);
43  
44      public com.liferay.portlet.messageboards.model.MBThread remove(
45          long threadId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.messageboards.NoSuchThreadException;
48  
49      public com.liferay.portlet.messageboards.model.MBThread updateImpl(
50          com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
51          throws com.liferay.portal.kernel.exception.SystemException;
52  
53      public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
54          long threadId)
55          throws com.liferay.portal.kernel.exception.SystemException,
56              com.liferay.portlet.messageboards.NoSuchThreadException;
57  
58      public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
59          long threadId)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
63          long groupId)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
67          long groupId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
71          long groupId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
76          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.messageboards.NoSuchThreadException;
79  
80      public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.messageboards.NoSuchThreadException;
84  
85      public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
86          long threadId, long groupId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.messageboards.NoSuchThreadException;
90  
91      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
92          long groupId, long categoryId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
96          long groupId, long categoryId, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
100         long groupId, long categoryId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.messageboards.model.MBThread findByG_C_First(
105         long groupId, long categoryId,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.messageboards.NoSuchThreadException;
109 
110     public com.liferay.portlet.messageboards.model.MBThread findByG_C_Last(
111         long groupId, long categoryId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException,
114             com.liferay.portlet.messageboards.NoSuchThreadException;
115 
116     public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext(
117         long threadId, long groupId, long categoryId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.messageboards.NoSuchThreadException;
121 
122     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
123         long groupId, int status)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
127         long groupId, int status, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
131         long groupId, int status, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portlet.messageboards.model.MBThread findByG_S_First(
136         long groupId, int status,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException,
139             com.liferay.portlet.messageboards.NoSuchThreadException;
140 
141     public com.liferay.portlet.messageboards.model.MBThread findByG_S_Last(
142         long groupId, int status,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.messageboards.NoSuchThreadException;
146 
147     public com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext(
148         long threadId, long groupId, int status,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.messageboards.NoSuchThreadException;
152 
153     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
154         long categoryId, double priority)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
158         long categoryId, double priority, int start, int end)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
162         long categoryId, double priority, int start, int end,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
167         long categoryId, double priority,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.messageboards.NoSuchThreadException;
171 
172     public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
173         long categoryId, double priority,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.messageboards.NoSuchThreadException;
177 
178     public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
179         long threadId, long categoryId, double priority,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.messageboards.NoSuchThreadException;
183 
184     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
185         long groupId, long categoryId, java.util.Date lastPostDate)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
189         long groupId, long categoryId, java.util.Date lastPostDate, int start,
190         int end) throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
193         long groupId, long categoryId, java.util.Date lastPostDate, int start,
194         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First(
198         long groupId, long categoryId, java.util.Date lastPostDate,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.kernel.exception.SystemException,
201             com.liferay.portlet.messageboards.NoSuchThreadException;
202 
203     public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last(
204         long groupId, long categoryId, java.util.Date lastPostDate,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.kernel.exception.SystemException,
207             com.liferay.portlet.messageboards.NoSuchThreadException;
208 
209     public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext(
210         long threadId, long groupId, long categoryId,
211         java.util.Date lastPostDate,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.messageboards.NoSuchThreadException;
215 
216     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
217         long groupId, long categoryId, int status)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
221         long groupId, long categoryId, int status, int start, int end)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
225         long groupId, long categoryId, int status, int start, int end,
226         com.liferay.portal.kernel.util.OrderByComparator obc)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First(
230         long groupId, long categoryId, int status,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.kernel.exception.SystemException,
233             com.liferay.portlet.messageboards.NoSuchThreadException;
234 
235     public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last(
236         long groupId, long categoryId, int status,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.messageboards.NoSuchThreadException;
240 
241     public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext(
242         long threadId, long groupId, long categoryId, int status,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.messageboards.NoSuchThreadException;
246 
247     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
251         int start, int end)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
255         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public void removeByGroupId(long groupId)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public void removeByG_C(long groupId, long categoryId)
262         throws com.liferay.portal.kernel.exception.SystemException;
263 
264     public void removeByG_S(long groupId, int status)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public void removeByC_P(long categoryId, double priority)
268         throws com.liferay.portal.kernel.exception.SystemException;
269 
270     public void removeByG_C_L(long groupId, long categoryId,
271         java.util.Date lastPostDate)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public void removeByG_C_S(long groupId, long categoryId, int status)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public void removeAll()
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public int countByGroupId(long groupId)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public int countByG_C(long groupId, long categoryId)
284         throws com.liferay.portal.kernel.exception.SystemException;
285 
286     public int countByG_S(long groupId, int status)
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public int countByC_P(long categoryId, double priority)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public int countByG_C_L(long groupId, long categoryId,
293         java.util.Date lastPostDate)
294         throws com.liferay.portal.kernel.exception.SystemException;
295 
296     public int countByG_C_S(long groupId, long categoryId, int status)
297         throws com.liferay.portal.kernel.exception.SystemException;
298 
299     public int countAll()
300         throws com.liferay.portal.kernel.exception.SystemException;
301 }