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  /**
28   * <a href="BlogsStatsUserPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       BlogsStatsUserPersistenceImpl
37   * @see       BlogsStatsUserUtil
38   * @generated
39   */
40  public interface BlogsStatsUserPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers);
46  
47      public void clearCache();
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      public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
58          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(BlogsStatsUser, boolean merge)}.
63       */
64      public com.liferay.portlet.blogs.model.BlogsStatsUser update(
65          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  blogsStatsUser the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when blogsStatsUser is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.blogs.model.BlogsStatsUser update(
81          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
85          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
89          long statsUserId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.blogs.NoSuchStatsUserException;
92  
93      public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
94          long statsUserId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
100         long groupId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
104         long groupId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
109         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.blogs.NoSuchStatsUserException;
112 
113     public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
114         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.blogs.NoSuchStatsUserException;
117 
118     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
119         long statsUserId, long groupId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.blogs.NoSuchStatsUserException;
123 
124     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
125         long userId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
128         long userId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
132         long userId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
137         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.blogs.NoSuchStatsUserException;
140 
141     public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
142         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.blogs.NoSuchStatsUserException;
145 
146     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
147         long statsUserId, long userId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.blogs.NoSuchStatsUserException;
151 
152     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
153         long groupId, long userId)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.blogs.NoSuchStatsUserException;
156 
157     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
158         long groupId, long userId) throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
161         long groupId, long userId, boolean retrieveFromCache)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
165         long groupId, int entryCount) throws com.liferay.portal.SystemException;
166 
167     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
168         long groupId, int entryCount, int start, int end)
169         throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
172         long groupId, int entryCount, int start, int end,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException;
175 
176     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
177         long groupId, int entryCount,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.blogs.NoSuchStatsUserException;
181 
182     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
183         long groupId, int entryCount,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.blogs.NoSuchStatsUserException;
187 
188     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
189         long statsUserId, long groupId, int entryCount,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.blogs.NoSuchStatsUserException;
193 
194     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
195         long companyId, int entryCount)
196         throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
199         long companyId, int entryCount, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
203         long companyId, int entryCount, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
208         long companyId, int entryCount,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.blogs.NoSuchStatsUserException;
212 
213     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
214         long companyId, int entryCount,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.blogs.NoSuchStatsUserException;
218 
219     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
220         long statsUserId, long companyId, int entryCount,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.blogs.NoSuchStatsUserException;
224 
225     public java.util.List<Object> findWithDynamicQuery(
226         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
227         throws com.liferay.portal.SystemException;
228 
229     public java.util.List<Object> findWithDynamicQuery(
230         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
231         int end) throws com.liferay.portal.SystemException;
232 
233     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
234         throws com.liferay.portal.SystemException;
235 
236     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
237         int start, int end) throws com.liferay.portal.SystemException;
238 
239     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
240         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException;
242 
243     public void removeByGroupId(long groupId)
244         throws com.liferay.portal.SystemException;
245 
246     public void removeByUserId(long userId)
247         throws com.liferay.portal.SystemException;
248 
249     public void removeByG_U(long groupId, long userId)
250         throws com.liferay.portal.SystemException,
251             com.liferay.portlet.blogs.NoSuchStatsUserException;
252 
253     public void removeByG_E(long groupId, int entryCount)
254         throws com.liferay.portal.SystemException;
255 
256     public void removeByC_E(long companyId, int entryCount)
257         throws com.liferay.portal.SystemException;
258 
259     public void removeAll() throws com.liferay.portal.SystemException;
260 
261     public int countByGroupId(long groupId)
262         throws com.liferay.portal.SystemException;
263 
264     public int countByUserId(long userId)
265         throws com.liferay.portal.SystemException;
266 
267     public int countByG_U(long groupId, long userId)
268         throws com.liferay.portal.SystemException;
269 
270     public int countByG_E(long groupId, int entryCount)
271         throws com.liferay.portal.SystemException;
272 
273     public int countByC_E(long companyId, int entryCount)
274         throws com.liferay.portal.SystemException;
275 
276     public int countAll() throws com.liferay.portal.SystemException;
277 }