001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.bookmarks.model.BookmarksFolder;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       BookmarksFolderPersistenceImpl
024     * @see       BookmarksFolderUtil
025     * @generated
026     */
027    public interface BookmarksFolderPersistence extends BasePersistence<BookmarksFolder> {
028            public void cacheResult(
029                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders);
033    
034            public com.liferay.portlet.bookmarks.model.BookmarksFolder create(
035                    long folderId);
036    
037            public com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
038                    long folderId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.bookmarks.NoSuchFolderException;
041    
042            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
043                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
048                    long folderId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.bookmarks.NoSuchFolderException;
051    
052            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
053                    long folderId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
065                    java.lang.String uuid, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.bookmarks.NoSuchFolderException;
074    
075            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.bookmarks.NoSuchFolderException;
080    
081            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
082                    long folderId, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.bookmarks.NoSuchFolderException;
086    
087            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
088                    java.lang.String uuid, long groupId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.bookmarks.NoSuchFolderException;
091    
092            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
093                    java.lang.String uuid, long groupId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
097                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
101                    long groupId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
105                    long groupId, int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
109                    long groupId, int start, int end,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.bookmarks.NoSuchFolderException;
118    
119            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
120                    long groupId,
121                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122                    throws com.liferay.portal.kernel.exception.SystemException,
123                            com.liferay.portlet.bookmarks.NoSuchFolderException;
124    
125            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
126                    long folderId, long groupId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.bookmarks.NoSuchFolderException;
130    
131            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
132                    long groupId)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
136                    long groupId, int start, int end)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
140                    long groupId, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
145                    long companyId)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
149                    long companyId, int start, int end)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
153                    long companyId, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
158                    long companyId,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException,
161                            com.liferay.portlet.bookmarks.NoSuchFolderException;
162    
163            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
164                    long companyId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.bookmarks.NoSuchFolderException;
168    
169            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
170                    long folderId, long companyId,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.bookmarks.NoSuchFolderException;
174    
175            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
176                    long groupId, long parentFolderId)
177                    throws com.liferay.portal.kernel.exception.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                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
184                    long groupId, long parentFolderId, int start, int end,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
189                    long groupId, long parentFolderId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.bookmarks.NoSuchFolderException;
193    
194            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
195                    long groupId, long parentFolderId,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException,
198                            com.liferay.portlet.bookmarks.NoSuchFolderException;
199    
200            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
201                    long folderId, long groupId, long parentFolderId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.bookmarks.NoSuchFolderException;
205    
206            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
207                    long groupId, long parentFolderId)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
211                    long groupId, long parentFolderId, int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
215                    long groupId, long parentFolderId, int start, int end,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
223                    int start, int end)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
227                    int start, int end,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            public void removeByUuid(java.lang.String uuid)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            public void removeByUUID_G(java.lang.String uuid, long groupId)
235                    throws com.liferay.portal.kernel.exception.SystemException,
236                            com.liferay.portlet.bookmarks.NoSuchFolderException;
237    
238            public void removeByGroupId(long groupId)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            public void removeByCompanyId(long companyId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            public void removeByG_P(long groupId, long parentFolderId)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            public void removeAll()
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            public int countByUuid(java.lang.String uuid)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            public int countByUUID_G(java.lang.String uuid, long groupId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            public int countByGroupId(long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            public int filterCountByGroupId(long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            public int countByCompanyId(long companyId)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            public int countByG_P(long groupId, long parentFolderId)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public int filterCountByG_P(long groupId, long parentFolderId)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            public int countAll()
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    }