1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="BlogsEntryPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface BlogsEntryPersistence {
32      public com.liferay.portlet.blogs.model.BlogsEntry create(long entryId);
33  
34      public com.liferay.portlet.blogs.model.BlogsEntry remove(long entryId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.blogs.NoSuchEntryException;
37  
38      public com.liferay.portlet.blogs.model.BlogsEntry remove(
39          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.blogs.model.BlogsEntry update(
43          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.blogs.model.BlogsEntry update(
47          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
51          long entryId)
52          throws com.liferay.portal.SystemException, 
53              com.liferay.portlet.blogs.NoSuchEntryException;
54  
55      public com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
56          long entryId) throws com.liferay.portal.SystemException;
57  
58      public java.util.List findByGroupId(long groupId)
59          throws com.liferay.portal.SystemException;
60  
61      public java.util.List findByGroupId(long groupId, int begin, int end)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByGroupId(long groupId, int begin, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
69          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.blogs.NoSuchEntryException;
72  
73      public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
74          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException, 
76              com.liferay.portlet.blogs.NoSuchEntryException;
77  
78      public com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
79          long entryId, long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portlet.blogs.NoSuchEntryException;
83  
84      public java.util.List findByCompanyId(long companyId)
85          throws com.liferay.portal.SystemException;
86  
87      public java.util.List findByCompanyId(long companyId, int begin, int end)
88          throws com.liferay.portal.SystemException;
89  
90      public java.util.List findByCompanyId(long companyId, int begin, int end,
91          com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
95          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException, 
97              com.liferay.portlet.blogs.NoSuchEntryException;
98  
99      public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
100         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portlet.blogs.NoSuchEntryException;
103 
104     public com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
105         long entryId, long companyId,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.blogs.NoSuchEntryException;
109 
110     public java.util.List findByCategoryId(long categoryId)
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List findByCategoryId(long categoryId, int begin, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List findByCategoryId(long categoryId, int begin, int end,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.blogs.model.BlogsEntry findByCategoryId_First(
121         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.blogs.NoSuchEntryException;
124 
125     public com.liferay.portlet.blogs.model.BlogsEntry findByCategoryId_Last(
126         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException, 
128             com.liferay.portlet.blogs.NoSuchEntryException;
129 
130     public com.liferay.portlet.blogs.model.BlogsEntry[] findByCategoryId_PrevAndNext(
131         long entryId, long categoryId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portlet.blogs.NoSuchEntryException;
135 
136     public java.util.List findByG_U(long groupId, long userId)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List findByG_U(long groupId, long userId, int begin,
140         int end) throws com.liferay.portal.SystemException;
141 
142     public java.util.List findByG_U(long groupId, long userId, int begin,
143         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException;
145 
146     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
147         long groupId, long userId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portlet.blogs.NoSuchEntryException;
151 
152     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
153         long groupId, long userId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException, 
156             com.liferay.portlet.blogs.NoSuchEntryException;
157 
158     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
159         long entryId, long groupId, long userId,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException, 
162             com.liferay.portlet.blogs.NoSuchEntryException;
163 
164     public com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(long groupId,
165         java.lang.String urlTitle)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portlet.blogs.NoSuchEntryException;
168 
169     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
170         long groupId, java.lang.String urlTitle)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List findByC_U(long companyId, long userId)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List findByC_U(long companyId, long userId, int begin,
177         int end) throws com.liferay.portal.SystemException;
178 
179     public java.util.List findByC_U(long companyId, long userId, int begin,
180         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.blogs.model.BlogsEntry findByC_U_First(
184         long companyId, long userId,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException, 
187             com.liferay.portlet.blogs.NoSuchEntryException;
188 
189     public com.liferay.portlet.blogs.model.BlogsEntry findByC_U_Last(
190         long companyId, long userId,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException, 
193             com.liferay.portlet.blogs.NoSuchEntryException;
194 
195     public com.liferay.portlet.blogs.model.BlogsEntry[] findByC_U_PrevAndNext(
196         long entryId, long companyId, long userId,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException, 
199             com.liferay.portlet.blogs.NoSuchEntryException;
200 
201     public java.util.List findWithDynamicQuery(
202         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
203         throws com.liferay.portal.SystemException;
204 
205     public java.util.List findWithDynamicQuery(
206         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
207         int begin, int end) throws com.liferay.portal.SystemException;
208 
209     public java.util.List findAll() throws com.liferay.portal.SystemException;
210 
211     public java.util.List findAll(int begin, int end)
212         throws com.liferay.portal.SystemException;
213 
214     public java.util.List findAll(int begin, int end,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeByGroupId(long groupId)
219         throws com.liferay.portal.SystemException;
220 
221     public void removeByCompanyId(long companyId)
222         throws com.liferay.portal.SystemException;
223 
224     public void removeByCategoryId(long categoryId)
225         throws com.liferay.portal.SystemException;
226 
227     public void removeByG_U(long groupId, long userId)
228         throws com.liferay.portal.SystemException;
229 
230     public void removeByG_UT(long groupId, java.lang.String urlTitle)
231         throws com.liferay.portal.SystemException, 
232             com.liferay.portlet.blogs.NoSuchEntryException;
233 
234     public void removeByC_U(long companyId, long userId)
235         throws com.liferay.portal.SystemException;
236 
237     public void removeAll() throws com.liferay.portal.SystemException;
238 
239     public int countByGroupId(long groupId)
240         throws com.liferay.portal.SystemException;
241 
242     public int countByCompanyId(long companyId)
243         throws com.liferay.portal.SystemException;
244 
245     public int countByCategoryId(long categoryId)
246         throws com.liferay.portal.SystemException;
247 
248     public int countByG_U(long groupId, long userId)
249         throws com.liferay.portal.SystemException;
250 
251     public int countByG_UT(long groupId, java.lang.String urlTitle)
252         throws com.liferay.portal.SystemException;
253 
254     public int countByC_U(long companyId, long userId)
255         throws com.liferay.portal.SystemException;
256 
257     public int countAll() throws com.liferay.portal.SystemException;
258 }