001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBBan;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       MBBanPersistenceImpl
024     * @see       MBBanUtil
025     * @generated
026     */
027    public interface MBBanPersistence extends BasePersistence<MBBan> {
028            public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
029    
030            public void cacheResult(
031                    java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
032    
033            public com.liferay.portlet.messageboards.model.MBBan create(long banId);
034    
035            public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
036                    throws com.liferay.portal.kernel.exception.SystemException,
037                            com.liferay.portlet.messageboards.NoSuchBanException;
038    
039            public com.liferay.portlet.messageboards.model.MBBan updateImpl(
040                    com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
044                    long banId)
045                    throws com.liferay.portal.kernel.exception.SystemException,
046                            com.liferay.portlet.messageboards.NoSuchBanException;
047    
048            public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
049                    long banId) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
052                    long groupId)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
056                    long groupId, int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
060                    long groupId, int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
065                    long groupId,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.messageboards.NoSuchBanException;
069    
070            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
071                    long groupId,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.messageboards.NoSuchBanException;
075    
076            public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
077                    long banId, long groupId,
078                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
079                    throws com.liferay.portal.kernel.exception.SystemException,
080                            com.liferay.portlet.messageboards.NoSuchBanException;
081    
082            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
083                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
086                    long userId, int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
090                    long userId, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
095                    long userId,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.kernel.exception.SystemException,
098                            com.liferay.portlet.messageboards.NoSuchBanException;
099    
100            public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
101                    long userId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.messageboards.NoSuchBanException;
105    
106            public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
107                    long banId, long userId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.messageboards.NoSuchBanException;
111    
112            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
113                    long banUserId)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
117                    long banUserId, int start, int end)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
121                    long banUserId, int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
126                    long banUserId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.messageboards.NoSuchBanException;
130    
131            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
132                    long banUserId,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException,
135                            com.liferay.portlet.messageboards.NoSuchBanException;
136    
137            public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
138                    long banId, long banUserId,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException,
141                            com.liferay.portlet.messageboards.NoSuchBanException;
142    
143            public com.liferay.portlet.messageboards.model.MBBan findByG_B(
144                    long groupId, long banUserId)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.messageboards.NoSuchBanException;
147    
148            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
149                    long groupId, long banUserId)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
153                    long groupId, long banUserId, boolean retrieveFromCache)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
160                    int start, int end)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
164                    int start, int end,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public void removeByGroupId(long groupId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public void removeByUserId(long userId)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            public void removeByBanUserId(long banUserId)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            public void removeByG_B(long groupId, long banUserId)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.messageboards.NoSuchBanException;
180    
181            public void removeAll()
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            public int countByGroupId(long groupId)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            public int countByUserId(long userId)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            public int countByBanUserId(long banUserId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public int countByG_B(long groupId, long banUserId)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public int countAll()
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    }