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.bookmarks.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.bookmarks.model.BookmarksEntry;
28  
29  /**
30   * <a href="BookmarksEntryPersistence.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       BookmarksEntryPersistenceImpl
39   * @see       BookmarksEntryUtil
40   * @generated
41   */
42  public interface BookmarksEntryPersistence extends BasePersistence<BookmarksEntry> {
43      public void cacheResult(
44          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries);
48  
49      public com.liferay.portlet.bookmarks.model.BookmarksEntry create(
50          long entryId);
51  
52      public com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
53          long entryId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.bookmarks.NoSuchEntryException;
56  
57      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.bookmarks.model.BookmarksEntry update(
61          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
65          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
69          long entryId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.bookmarks.NoSuchEntryException;
72  
73      public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
74          long entryId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
77          java.lang.String uuid) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
80          java.lang.String uuid, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
84          java.lang.String uuid, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
89          java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.bookmarks.NoSuchEntryException;
93  
94      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
95          java.lang.String uuid,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.bookmarks.NoSuchEntryException;
99  
100     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
101         long entryId, java.lang.String uuid,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.bookmarks.NoSuchEntryException;
105 
106     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
107         java.lang.String uuid, long groupId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.bookmarks.NoSuchEntryException;
110 
111     public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
112         java.lang.String uuid, long groupId)
113         throws com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
116         java.lang.String uuid, long groupId, boolean retrieveFromCache)
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
120         long groupId) throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
123         long groupId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
127         long groupId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
132         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.bookmarks.NoSuchEntryException;
135 
136     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
137         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.bookmarks.NoSuchEntryException;
140 
141     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
142         long entryId, long groupId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.bookmarks.NoSuchEntryException;
146 
147     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
148         long folderId) throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
151         long folderId, int start, int end)
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
155         long folderId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
160         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.bookmarks.NoSuchEntryException;
163 
164     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
165         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.bookmarks.NoSuchEntryException;
168 
169     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
170         long entryId, long folderId,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.bookmarks.NoSuchEntryException;
174 
175     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
176         long groupId, long userId) throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
179         long groupId, long userId, int start, int end)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
183         long groupId, long userId, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException;
186 
187     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
188         long groupId, long userId,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.bookmarks.NoSuchEntryException;
192 
193     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
194         long groupId, long userId,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.bookmarks.NoSuchEntryException;
198 
199     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
200         long entryId, long groupId, long userId,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.bookmarks.NoSuchEntryException;
204 
205     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
206         throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
209         int start, int end) throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
212         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     public void removeByUuid(java.lang.String uuid)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeByUUID_G(java.lang.String uuid, long groupId)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.bookmarks.NoSuchEntryException;
221 
222     public void removeByGroupId(long groupId)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeByFolderId(long folderId)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeByG_U(long groupId, long userId)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeAll() throws com.liferay.portal.SystemException;
232 
233     public int countByUuid(java.lang.String uuid)
234         throws com.liferay.portal.SystemException;
235 
236     public int countByUUID_G(java.lang.String uuid, long groupId)
237         throws com.liferay.portal.SystemException;
238 
239     public int countByGroupId(long groupId)
240         throws com.liferay.portal.SystemException;
241 
242     public int countByFolderId(long folderId)
243         throws com.liferay.portal.SystemException;
244 
245     public int countByG_U(long groupId, long userId)
246         throws com.liferay.portal.SystemException;
247 
248     public int countAll() throws com.liferay.portal.SystemException;
249 }