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.MBBan;
20  
21  /**
22   * <a href="MBBanPersistence.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       MBBanPersistenceImpl
31   * @see       MBBanUtil
32   * @generated
33   */
34  public interface MBBanPersistence extends BasePersistence<MBBan> {
35      public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
39  
40      public com.liferay.portlet.messageboards.model.MBBan create(long banId);
41  
42      public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
43          throws com.liferay.portal.kernel.exception.SystemException,
44              com.liferay.portlet.messageboards.NoSuchBanException;
45  
46      public com.liferay.portlet.messageboards.model.MBBan updateImpl(
47          com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
51          long banId)
52          throws com.liferay.portal.kernel.exception.SystemException,
53              com.liferay.portlet.messageboards.NoSuchBanException;
54  
55      public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
56          long banId) throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
59          long groupId)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
63          long groupId, int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
67          long groupId, int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
72          long groupId,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException,
75              com.liferay.portlet.messageboards.NoSuchBanException;
76  
77      public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
78          long groupId,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException,
81              com.liferay.portlet.messageboards.NoSuchBanException;
82  
83      public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
84          long banId, long groupId,
85          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.messageboards.NoSuchBanException;
88  
89      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
90          long userId) throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
93          long userId, int start, int end)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
97          long userId, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
102         long userId,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.kernel.exception.SystemException,
105             com.liferay.portlet.messageboards.NoSuchBanException;
106 
107     public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
108         long userId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.messageboards.NoSuchBanException;
112 
113     public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
114         long banId, long userId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.messageboards.NoSuchBanException;
118 
119     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
120         long banUserId)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
124         long banUserId, int start, int end)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
128         long banUserId, int start, int end,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
133         long banUserId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.messageboards.NoSuchBanException;
137 
138     public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
139         long banUserId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.messageboards.NoSuchBanException;
143 
144     public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
145         long banId, long banUserId,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.messageboards.NoSuchBanException;
149 
150     public com.liferay.portlet.messageboards.model.MBBan findByG_B(
151         long groupId, long banUserId)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.messageboards.NoSuchBanException;
154 
155     public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
156         long groupId, long banUserId)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
160         long groupId, long banUserId, boolean retrieveFromCache)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
167         int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
171         int start, int end,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public void removeByGroupId(long groupId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeByUserId(long userId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByBanUserId(long banUserId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByG_B(long groupId, long banUserId)
185         throws com.liferay.portal.kernel.exception.SystemException,
186             com.liferay.portlet.messageboards.NoSuchBanException;
187 
188     public void removeAll()
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public int countByGroupId(long groupId)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public int countByUserId(long userId)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public int countByBanUserId(long banUserId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public int countByG_B(long groupId, long banUserId)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public int countAll()
204         throws com.liferay.portal.kernel.exception.SystemException;
205 }