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.BookmarksFolder;
20  
21  /**
22   * <a href="BookmarksFolderPersistence.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       BookmarksFolderPersistenceImpl
31   * @see       BookmarksFolderUtil
32   * @generated
33   */
34  public interface BookmarksFolderPersistence extends BasePersistence<BookmarksFolder> {
35      public void cacheResult(
36          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders);
40  
41      public com.liferay.portlet.bookmarks.model.BookmarksFolder create(
42          long folderId);
43  
44      public com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
45          long folderId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.bookmarks.NoSuchFolderException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.bookmarks.model.BookmarksFolder update(
53          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
57          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
61          long folderId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.bookmarks.NoSuchFolderException;
64  
65      public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
66          long folderId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
69          java.lang.String uuid) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder 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.NoSuchFolderException;
85  
86      public com.liferay.portlet.bookmarks.model.BookmarksFolder 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.NoSuchFolderException;
91  
92      public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
93          long folderId, java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.bookmarks.NoSuchFolderException;
97  
98      public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
99          java.lang.String uuid, long groupId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.bookmarks.NoSuchFolderException;
102 
103     public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
104         java.lang.String uuid, long groupId)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.bookmarks.model.BookmarksFolder 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.BookmarksFolder> findByGroupId(
112         long groupId) throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder findByGroupId_First(
124         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.bookmarks.NoSuchFolderException;
127 
128     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
129         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.bookmarks.NoSuchFolderException;
132 
133     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
134         long folderId, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.bookmarks.NoSuchFolderException;
138 
139     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
140         long companyId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
147         long companyId, 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.BookmarksFolder findByCompanyId_First(
152         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.bookmarks.NoSuchFolderException;
155 
156     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
157         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.bookmarks.NoSuchFolderException;
160 
161     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
162         long folderId, long companyId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.bookmarks.NoSuchFolderException;
166 
167     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
168         long groupId, long parentFolderId)
169         throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
172         long groupId, long parentFolderId, int start, int end)
173         throws com.liferay.portal.SystemException;
174 
175     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
176         long groupId, long parentFolderId, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
181         long groupId, long parentFolderId,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.bookmarks.NoSuchFolderException;
185 
186     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
187         long groupId, long parentFolderId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.bookmarks.NoSuchFolderException;
191 
192     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
193         long folderId, long groupId, long parentFolderId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.bookmarks.NoSuchFolderException;
197 
198     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
199         throws com.liferay.portal.SystemException;
200 
201     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
202         int start, int end) throws com.liferay.portal.SystemException;
203 
204     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
205         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException;
207 
208     public void removeByUuid(java.lang.String uuid)
209         throws com.liferay.portal.SystemException;
210 
211     public void removeByUUID_G(java.lang.String uuid, long groupId)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.bookmarks.NoSuchFolderException;
214 
215     public void removeByGroupId(long groupId)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeByCompanyId(long companyId)
219         throws com.liferay.portal.SystemException;
220 
221     public void removeByG_P(long groupId, long parentFolderId)
222         throws com.liferay.portal.SystemException;
223 
224     public void removeAll() throws com.liferay.portal.SystemException;
225 
226     public int countByUuid(java.lang.String uuid)
227         throws com.liferay.portal.SystemException;
228 
229     public int countByUUID_G(java.lang.String uuid, long groupId)
230         throws com.liferay.portal.SystemException;
231 
232     public int countByGroupId(long groupId)
233         throws com.liferay.portal.SystemException;
234 
235     public int countByCompanyId(long companyId)
236         throws com.liferay.portal.SystemException;
237 
238     public int countByG_P(long groupId, long parentFolderId)
239         throws com.liferay.portal.SystemException;
240 
241     public int countAll() throws com.liferay.portal.SystemException;
242 }