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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
121         throws com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
124         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.bookmarks.NoSuchEntryException;
127 
128     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
129         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.bookmarks.NoSuchEntryException;
132 
133     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
134         long entryId, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.bookmarks.NoSuchEntryException;
138 
139     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
140         long folderId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
143         long folderId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
147         long folderId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
152         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.bookmarks.NoSuchEntryException;
155 
156     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
157         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.bookmarks.NoSuchEntryException;
160 
161     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
162         long entryId, long folderId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.bookmarks.NoSuchEntryException;
166 
167     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
168         long groupId, long userId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
171         long groupId, long userId, int start, int end)
172         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         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
180         long groupId, long userId,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.bookmarks.NoSuchEntryException;
184 
185     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
186         long groupId, long userId,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.bookmarks.NoSuchEntryException;
190 
191     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
192         long entryId, long groupId, long userId,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.bookmarks.NoSuchEntryException;
196 
197     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
201         int start, int end) throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public void removeByUuid(java.lang.String uuid)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeByUUID_G(java.lang.String uuid, long groupId)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.bookmarks.NoSuchEntryException;
213 
214     public void removeByGroupId(long groupId)
215         throws com.liferay.portal.SystemException;
216 
217     public void removeByFolderId(long folderId)
218         throws com.liferay.portal.SystemException;
219 
220     public void removeByG_U(long groupId, long userId)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeAll() throws com.liferay.portal.SystemException;
224 
225     public int countByUuid(java.lang.String uuid)
226         throws com.liferay.portal.SystemException;
227 
228     public int countByUUID_G(java.lang.String uuid, long groupId)
229         throws com.liferay.portal.SystemException;
230 
231     public int countByGroupId(long groupId)
232         throws com.liferay.portal.SystemException;
233 
234     public int countByFolderId(long folderId)
235         throws com.liferay.portal.SystemException;
236 
237     public int countByG_U(long groupId, long userId)
238         throws com.liferay.portal.SystemException;
239 
240     public int countAll() throws com.liferay.portal.SystemException;
241 }