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.blogs.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.blogs.model.BlogsStatsUser;
28  
29  /**
30   * <a href="BlogsStatsUserPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       BlogsStatsUserPersistenceImpl
39   * @see       BlogsStatsUserUtil
40   * @generated
41   */
42  public interface BlogsStatsUserPersistence extends BasePersistence<BlogsStatsUser> {
43      public void cacheResult(
44          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers);
48  
49      public com.liferay.portlet.blogs.model.BlogsStatsUser create(
50          long statsUserId);
51  
52      public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
53          long statsUserId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.blogs.NoSuchStatsUserException;
56  
57      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.blogs.model.BlogsStatsUser update(
61          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
65          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
69          long statsUserId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.blogs.NoSuchStatsUserException;
72  
73      public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
74          long statsUserId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
77          long groupId) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
80          long groupId, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
84          long groupId, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
89          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.blogs.NoSuchStatsUserException;
92  
93      public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
94          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.blogs.NoSuchStatsUserException;
97  
98      public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
99          long statsUserId, long groupId,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.blogs.NoSuchStatsUserException;
103 
104     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
105         long userId) throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
108         long userId, int start, int end)
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
112         long userId, int start, int end,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
117         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.blogs.NoSuchStatsUserException;
120 
121     public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
122         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.blogs.NoSuchStatsUserException;
125 
126     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
127         long statsUserId, long userId,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.blogs.NoSuchStatsUserException;
131 
132     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
133         long groupId, long userId)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.blogs.NoSuchStatsUserException;
136 
137     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
138         long groupId, long userId) throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
141         long groupId, long userId, boolean retrieveFromCache)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
145         long groupId, int entryCount) throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
148         long groupId, int entryCount, int start, int end)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
152         long groupId, int entryCount, int start, int end,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException;
155 
156     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
157         long groupId, int entryCount,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.blogs.NoSuchStatsUserException;
161 
162     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
163         long groupId, int entryCount,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.blogs.NoSuchStatsUserException;
167 
168     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
169         long statsUserId, long groupId, int entryCount,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.blogs.NoSuchStatsUserException;
173 
174     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
175         long companyId, int entryCount)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
179         long companyId, int entryCount, int start, int end)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
183         long companyId, int entryCount, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException;
186 
187     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
188         long companyId, int entryCount,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.blogs.NoSuchStatsUserException;
192 
193     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
194         long companyId, int entryCount,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.blogs.NoSuchStatsUserException;
198 
199     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
200         long statsUserId, long companyId, int entryCount,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.blogs.NoSuchStatsUserException;
204 
205     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
206         throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
209         int start, int end) throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
212         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     public void removeByGroupId(long groupId)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeByUserId(long userId)
219         throws com.liferay.portal.SystemException;
220 
221     public void removeByG_U(long groupId, long userId)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.blogs.NoSuchStatsUserException;
224 
225     public void removeByG_E(long groupId, int entryCount)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeByC_E(long companyId, int entryCount)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeAll() throws com.liferay.portal.SystemException;
232 
233     public int countByGroupId(long groupId)
234         throws com.liferay.portal.SystemException;
235 
236     public int countByUserId(long userId)
237         throws com.liferay.portal.SystemException;
238 
239     public int countByG_U(long groupId, long userId)
240         throws com.liferay.portal.SystemException;
241 
242     public int countByG_E(long groupId, int entryCount)
243         throws com.liferay.portal.SystemException;
244 
245     public int countByC_E(long companyId, int entryCount)
246         throws com.liferay.portal.SystemException;
247 
248     public int countAll() throws com.liferay.portal.SystemException;
249 }