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