1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException,
47              com.liferay.portlet.blogs.NoSuchStatsUserException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.blogs.model.BlogsStatsUser update(
53          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
57          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
61          long statsUserId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.blogs.NoSuchStatsUserException;
64  
65      public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
66          long statsUserId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
72          long groupId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
76          long groupId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.blogs.NoSuchStatsUserException;
84  
85      public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
86          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.blogs.NoSuchStatsUserException;
89  
90      public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
91          long statsUserId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.blogs.NoSuchStatsUserException;
95  
96      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
97          long userId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
100         long userId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
104         long userId, 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 findByUserId_First(
109         long userId, 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 findByUserId_Last(
114         long userId, 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[] findByUserId_PrevAndNext(
119         long statsUserId, long userId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.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.SystemException,
127             com.liferay.portlet.blogs.NoSuchStatsUserException;
128 
129     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
130         long groupId, long userId) throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
133         long groupId, long userId, boolean retrieveFromCache)
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
137         long groupId, int entryCount) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
140         long groupId, int entryCount, int start, int end)
141         throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
144         long groupId, int entryCount, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException;
147 
148     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
149         long groupId, int entryCount,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.blogs.NoSuchStatsUserException;
153 
154     public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
155         long groupId, int entryCount,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.blogs.NoSuchStatsUserException;
159 
160     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
161         long statsUserId, long groupId, int entryCount,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.blogs.NoSuchStatsUserException;
165 
166     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
167         long companyId, int entryCount)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
171         long companyId, int entryCount, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
175         long companyId, int entryCount, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
180         long companyId, int entryCount,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.blogs.NoSuchStatsUserException;
184 
185     public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
186         long companyId, int entryCount,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.blogs.NoSuchStatsUserException;
190 
191     public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
192         long statsUserId, long companyId, int entryCount,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.blogs.NoSuchStatsUserException;
196 
197     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
201         int start, int end) throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public void removeByGroupId(long groupId)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeByUserId(long userId)
211         throws com.liferay.portal.SystemException;
212 
213     public void removeByG_U(long groupId, long userId)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.blogs.NoSuchStatsUserException;
216 
217     public void removeByG_E(long groupId, int entryCount)
218         throws com.liferay.portal.SystemException;
219 
220     public void removeByC_E(long companyId, int entryCount)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeAll() throws com.liferay.portal.SystemException;
224 
225     public int countByGroupId(long groupId)
226         throws com.liferay.portal.SystemException;
227 
228     public int countByUserId(long userId)
229         throws com.liferay.portal.SystemException;
230 
231     public int countByG_U(long groupId, long userId)
232         throws com.liferay.portal.SystemException;
233 
234     public int countByG_E(long groupId, int entryCount)
235         throws com.liferay.portal.SystemException;
236 
237     public int countByC_E(long companyId, int entryCount)
238         throws com.liferay.portal.SystemException;
239 
240     public int countAll() throws com.liferay.portal.SystemException;
241 }