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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
121         throws com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
124         long groupId,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.bookmarks.NoSuchFolderException;
128 
129     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
130         long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.bookmarks.NoSuchFolderException;
134 
135     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
136         long folderId, long groupId,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.bookmarks.NoSuchFolderException;
140 
141     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
142         long companyId) throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
145         long companyId, int start, int end)
146         throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
149         long companyId, 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.BookmarksFolder findByCompanyId_First(
154         long companyId,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.bookmarks.NoSuchFolderException;
158 
159     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
160         long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.bookmarks.NoSuchFolderException;
164 
165     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
166         long folderId, long companyId,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.bookmarks.NoSuchFolderException;
170 
171     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
172         long groupId, long parentFolderId)
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         throws com.liferay.portal.SystemException;
178 
179     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
180         long groupId, long parentFolderId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182         throws com.liferay.portal.SystemException;
183 
184     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
185         long groupId, long parentFolderId,
186         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187         throws com.liferay.portal.SystemException,
188             com.liferay.portlet.bookmarks.NoSuchFolderException;
189 
190     public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
191         long groupId, long parentFolderId,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portlet.bookmarks.NoSuchFolderException;
195 
196     public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
197         long folderId, long groupId, long parentFolderId,
198         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199         throws com.liferay.portal.SystemException,
200             com.liferay.portlet.bookmarks.NoSuchFolderException;
201 
202     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
203         throws com.liferay.portal.SystemException;
204 
205     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
206         int start, int end) throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
209         int start, int end,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.SystemException;
212 
213     public void removeByUuid(java.lang.String uuid)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeByUUID_G(java.lang.String uuid, long groupId)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.bookmarks.NoSuchFolderException;
219 
220     public void removeByGroupId(long groupId)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeByCompanyId(long companyId)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeByG_P(long groupId, long parentFolderId)
227         throws com.liferay.portal.SystemException;
228 
229     public void removeAll() throws com.liferay.portal.SystemException;
230 
231     public int countByUuid(java.lang.String uuid)
232         throws com.liferay.portal.SystemException;
233 
234     public int countByUUID_G(java.lang.String uuid, long groupId)
235         throws com.liferay.portal.SystemException;
236 
237     public int countByGroupId(long groupId)
238         throws com.liferay.portal.SystemException;
239 
240     public int countByCompanyId(long companyId)
241         throws com.liferay.portal.SystemException;
242 
243     public int countByG_P(long groupId, long parentFolderId)
244         throws com.liferay.portal.SystemException;
245 
246     public int countAll() throws com.liferay.portal.SystemException;
247 }