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  /**
28   * <a href="MBBanPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       MBBanPersistenceImpl
37   * @see       MBBanUtil
38   * @generated
39   */
40  public interface MBBanPersistence extends BasePersistence {
41      public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
45  
46      public void clearCache();
47  
48      public com.liferay.portlet.messageboards.model.MBBan create(long banId);
49  
50      public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.messageboards.NoSuchBanException;
53  
54      public com.liferay.portlet.messageboards.model.MBBan remove(
55          com.liferay.portlet.messageboards.model.MBBan mbBan)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(MBBan, boolean merge)}.
60       */
61      public com.liferay.portlet.messageboards.model.MBBan update(
62          com.liferay.portlet.messageboards.model.MBBan mbBan)
63          throws com.liferay.portal.SystemException;
64  
65      /**
66       * Add, update, or merge, the entity. This method also calls the model
67       * listeners to trigger the proper events associated with adding, deleting,
68       * or updating an entity.
69       *
70       * @param  mbBan the entity to add, update, or merge
71       * @param  merge boolean value for whether to merge the entity. The default
72       *         value is false. Setting merge to true is more expensive and
73       *         should only be true when mbBan is transient. See
74       *         LEP-5473 for a detailed discussion of this method.
75       * @return the entity that was added, updated, or merged
76       */
77      public com.liferay.portlet.messageboards.model.MBBan update(
78          com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.messageboards.model.MBBan updateImpl(
82          com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
86          long banId)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.messageboards.NoSuchBanException;
89  
90      public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
91          long banId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
94          long groupId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
97          long groupId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
101         long groupId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
106         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.messageboards.NoSuchBanException;
109 
110     public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
111         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.messageboards.NoSuchBanException;
114 
115     public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
116         long banId, long groupId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.messageboards.NoSuchBanException;
120 
121     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
122         long userId) throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
125         long userId, int start, int end)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
129         long userId, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
134         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException,
136             com.liferay.portlet.messageboards.NoSuchBanException;
137 
138     public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
139         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.messageboards.NoSuchBanException;
142 
143     public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
144         long banId, long userId,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.messageboards.NoSuchBanException;
148 
149     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
150         long banUserId) throws com.liferay.portal.SystemException;
151 
152     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
153         long banUserId, int start, int end)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
157         long banUserId, int start, int end,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException;
160 
161     public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
162         long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.messageboards.NoSuchBanException;
165 
166     public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
167         long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.messageboards.NoSuchBanException;
170 
171     public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
172         long banId, long banUserId,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.messageboards.NoSuchBanException;
176 
177     public com.liferay.portlet.messageboards.model.MBBan findByG_B(
178         long groupId, long banUserId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.messageboards.NoSuchBanException;
181 
182     public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
183         long groupId, long banUserId) throws com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
186         long groupId, long banUserId, boolean retrieveFromCache)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<Object> findWithDynamicQuery(
190         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List<Object> findWithDynamicQuery(
194         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
195         int end) throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
201         int start, int end) throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public void removeByGroupId(long groupId)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeByUserId(long userId)
211         throws com.liferay.portal.SystemException;
212 
213     public void removeByBanUserId(long banUserId)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeByG_B(long groupId, long banUserId)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.messageboards.NoSuchBanException;
219 
220     public void removeAll() throws com.liferay.portal.SystemException;
221 
222     public int countByGroupId(long groupId)
223         throws com.liferay.portal.SystemException;
224 
225     public int countByUserId(long userId)
226         throws com.liferay.portal.SystemException;
227 
228     public int countByBanUserId(long banUserId)
229         throws com.liferay.portal.SystemException;
230 
231     public int countByG_B(long groupId, long banUserId)
232         throws com.liferay.portal.SystemException;
233 
234     public int countAll() throws com.liferay.portal.SystemException;
235 }