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.MBStatsUser;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       MBStatsUserPersistenceImpl
024     * @see       MBStatsUserUtil
025     * @generated
026     */
027    public interface MBStatsUserPersistence extends BasePersistence<MBStatsUser> {
028            public void cacheResult(
029                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers);
033    
034            public com.liferay.portlet.messageboards.model.MBStatsUser create(
035                    long statsUserId);
036    
037            public com.liferay.portlet.messageboards.model.MBStatsUser remove(
038                    long statsUserId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
041    
042            public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
043                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
048                    long statsUserId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
051    
052            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
053                    long statsUserId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
061                    long groupId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
065                    long groupId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
074    
075            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
076                    long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
080    
081            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
082                    long statsUserId, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
086    
087            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
088                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
091                    long userId, int start, int end)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
095                    long userId, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
100                    long userId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
104    
105            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
106                    long userId,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.kernel.exception.SystemException,
109                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
110    
111            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
112                    long statsUserId, long userId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
116    
117            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
118                    long groupId, long userId)
119                    throws com.liferay.portal.kernel.exception.SystemException,
120                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
121    
122            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
123                    long groupId, long userId)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
127                    long groupId, long userId, boolean retrieveFromCache)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
131                    long groupId, int messageCount)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
135                    long groupId, int messageCount, int start, int end)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
139                    long groupId, int messageCount, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_First(
144                    long groupId, int messageCount,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException,
147                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
148    
149            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_Last(
150                    long groupId, int messageCount,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException,
153                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
154    
155            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotM_PrevAndNext(
156                    long statsUserId, long groupId, int messageCount,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException,
159                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
160    
161            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
165                    int start, int end)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
169                    int start, int end,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public void removeByGroupId(long groupId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public void removeByUserId(long userId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public void removeByG_U(long groupId, long userId)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
182    
183            public void removeByG_NotM(long groupId, int messageCount)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public void removeAll()
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public int countByGroupId(long groupId)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            public int countByUserId(long userId)
193                    throws com.liferay.portal.kernel.exception.SystemException;
194    
195            public int countByG_U(long groupId, long userId)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public int countByG_NotM(long groupId, int messageCount)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public int countAll()
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    }