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