1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException,
47              com.liferay.portlet.messageboards.NoSuchThreadException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.messageboards.model.MBThread update(
53          com.liferay.portlet.messageboards.model.MBThread mbThread)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.messageboards.model.MBThread updateImpl(
57          com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
58          throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
61          long threadId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.messageboards.NoSuchThreadException;
64  
65      public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
66          long threadId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
72          long groupId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
76          long groupId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.messageboards.NoSuchThreadException;
84  
85      public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
86          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.messageboards.NoSuchThreadException;
89  
90      public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
91          long threadId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.messageboards.NoSuchThreadException;
95  
96      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
97          long categoryId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
100         long categoryId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
104         long categoryId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
109         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.messageboards.NoSuchThreadException;
112 
113     public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
114         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.messageboards.NoSuchThreadException;
117 
118     public com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
119         long threadId, long categoryId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.messageboards.NoSuchThreadException;
123 
124     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
125         long categoryId, java.util.Date lastPostDate)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
129         long categoryId, java.util.Date lastPostDate, int start, int end)
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
133         long categoryId, java.util.Date lastPostDate, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
138         long categoryId, java.util.Date lastPostDate,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.messageboards.NoSuchThreadException;
142 
143     public com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
144         long categoryId, java.util.Date lastPostDate,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.messageboards.NoSuchThreadException;
148 
149     public com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
150         long threadId, long categoryId, java.util.Date lastPostDate,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.messageboards.NoSuchThreadException;
154 
155     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
156         long categoryId, double priority)
157         throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
160         long categoryId, double priority, int start, int end)
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
164         long categoryId, double priority, int start, int end,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException;
167 
168     public com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
169         long categoryId, double priority,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.messageboards.NoSuchThreadException;
173 
174     public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
175         long categoryId, double priority,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.messageboards.NoSuchThreadException;
179 
180     public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
181         long threadId, long categoryId, double priority,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.messageboards.NoSuchThreadException;
185 
186     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
190         int start, int end) throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
193         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByGroupId(long groupId)
197         throws com.liferay.portal.SystemException;
198 
199     public void removeByCategoryId(long categoryId)
200         throws com.liferay.portal.SystemException;
201 
202     public void removeByC_L(long categoryId, java.util.Date lastPostDate)
203         throws com.liferay.portal.SystemException;
204 
205     public void removeByC_P(long categoryId, double priority)
206         throws com.liferay.portal.SystemException;
207 
208     public void removeAll() throws com.liferay.portal.SystemException;
209 
210     public int countByGroupId(long groupId)
211         throws com.liferay.portal.SystemException;
212 
213     public int countByCategoryId(long categoryId)
214         throws com.liferay.portal.SystemException;
215 
216     public int countByC_L(long categoryId, java.util.Date lastPostDate)
217         throws com.liferay.portal.SystemException;
218 
219     public int countByC_P(long categoryId, double priority)
220         throws com.liferay.portal.SystemException;
221 
222     public int countAll() throws com.liferay.portal.SystemException;
223 }