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