1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service.persistence;
24  
25  /**
26   * <a href="BookmarksEntryPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface BookmarksEntryPersistence {
32      public com.liferay.portlet.bookmarks.model.BookmarksEntry create(
33          long entryId);
34  
35      public com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
36          long entryId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.bookmarks.NoSuchEntryException;
39  
40      public com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
41          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
42          throws com.liferay.portal.SystemException;
43  
44      public com.liferay.portlet.bookmarks.model.BookmarksEntry update(
45          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portlet.bookmarks.model.BookmarksEntry update(
49          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
53          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
54          boolean merge) throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
57          long entryId)
58          throws com.liferay.portal.SystemException, 
59              com.liferay.portlet.bookmarks.NoSuchEntryException;
60  
61      public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
62          long entryId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByUuid(java.lang.String uuid)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException, 
78              com.liferay.portlet.bookmarks.NoSuchEntryException;
79  
80      public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
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_PrevAndNext(
87          long entryId, 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 java.util.List findByFolderId(long folderId)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List findByFolderId(long folderId, int begin, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List findByFolderId(long folderId, int begin, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
103         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException, 
105             com.liferay.portlet.bookmarks.NoSuchEntryException;
106 
107     public com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
108         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException, 
110             com.liferay.portlet.bookmarks.NoSuchEntryException;
111 
112     public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
113         long entryId, long folderId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.bookmarks.NoSuchEntryException;
117 
118     public java.util.List findWithDynamicQuery(
119         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List findWithDynamicQuery(
123         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
124         int begin, int end) throws com.liferay.portal.SystemException;
125 
126     public java.util.List findAll() throws com.liferay.portal.SystemException;
127 
128     public java.util.List findAll(int begin, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List findAll(int begin, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public void removeByUuid(java.lang.String uuid)
136         throws com.liferay.portal.SystemException;
137 
138     public void removeByFolderId(long folderId)
139         throws com.liferay.portal.SystemException;
140 
141     public void removeAll() throws com.liferay.portal.SystemException;
142 
143     public int countByUuid(java.lang.String uuid)
144         throws com.liferay.portal.SystemException;
145 
146     public int countByFolderId(long folderId)
147         throws com.liferay.portal.SystemException;
148 
149     public int countAll() throws com.liferay.portal.SystemException;
150 }