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="BookmarksEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class BookmarksEntryUtil {
32      public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
33          long entryId) {
34          return getPersistence().create(entryId);
35      }
36  
37      public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
38          long entryId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.bookmarks.NoSuchEntryException {
41          return getPersistence().remove(entryId);
42      }
43  
44      public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
45          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(bookmarksEntry);
48      }
49  
50      public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
51          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(bookmarksEntry);
54      }
55  
56      public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
57          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(bookmarksEntry, merge);
60      }
61  
62      public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
63          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(bookmarksEntry, merge);
66      }
67  
68      public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
69          long entryId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.bookmarks.NoSuchEntryException {
72          return getPersistence().findByPrimaryKey(entryId);
73      }
74  
75      public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
76          long entryId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(entryId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.bookmarks.NoSuchEntryException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.bookmarks.NoSuchEntryException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
113         long entryId, java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.bookmarks.NoSuchEntryException {
117         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
118     }
119 
120     public static java.util.List findByFolderId(long folderId)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().findByFolderId(folderId);
123     }
124 
125     public static java.util.List findByFolderId(long folderId, int begin,
126         int end) throws com.liferay.portal.SystemException {
127         return getPersistence().findByFolderId(folderId, begin, end);
128     }
129 
130     public static java.util.List findByFolderId(long folderId, int begin,
131         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByFolderId(folderId, begin, end, obc);
134     }
135 
136     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
137         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portlet.bookmarks.NoSuchEntryException {
140         return getPersistence().findByFolderId_First(folderId, obc);
141     }
142 
143     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
144         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portlet.bookmarks.NoSuchEntryException {
147         return getPersistence().findByFolderId_Last(folderId, obc);
148     }
149 
150     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
151         long entryId, long folderId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portlet.bookmarks.NoSuchEntryException {
155         return getPersistence().findByFolderId_PrevAndNext(entryId, folderId,
156             obc);
157     }
158 
159     public static java.util.List findWithDynamicQuery(
160         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().findWithDynamicQuery(queryInitializer);
163     }
164 
165     public static java.util.List findWithDynamicQuery(
166         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
167         int begin, int end) throws com.liferay.portal.SystemException {
168         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
169             end);
170     }
171 
172     public static java.util.List findAll()
173         throws com.liferay.portal.SystemException {
174         return getPersistence().findAll();
175     }
176 
177     public static java.util.List findAll(int begin, int end)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().findAll(begin, end);
180     }
181 
182     public static java.util.List findAll(int begin, int end,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().findAll(begin, end, obc);
186     }
187 
188     public static void removeByUuid(java.lang.String uuid)
189         throws com.liferay.portal.SystemException {
190         getPersistence().removeByUuid(uuid);
191     }
192 
193     public static void removeByFolderId(long folderId)
194         throws com.liferay.portal.SystemException {
195         getPersistence().removeByFolderId(folderId);
196     }
197 
198     public static void removeAll() throws com.liferay.portal.SystemException {
199         getPersistence().removeAll();
200     }
201 
202     public static int countByUuid(java.lang.String uuid)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().countByUuid(uuid);
205     }
206 
207     public static int countByFolderId(long folderId)
208         throws com.liferay.portal.SystemException {
209         return getPersistence().countByFolderId(folderId);
210     }
211 
212     public static int countAll() throws com.liferay.portal.SystemException {
213         return getPersistence().countAll();
214     }
215 
216     public static BookmarksEntryPersistence getPersistence() {
217         return _getUtil()._persistence;
218     }
219 
220     public void setPersistence(BookmarksEntryPersistence persistence) {
221         _persistence = persistence;
222     }
223 
224     private static BookmarksEntryUtil _getUtil() {
225         if (_util == null) {
226             _util = (BookmarksEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
227         }
228 
229         return _util;
230     }
231 
232     private static final String _UTIL = BookmarksEntryUtil.class.getName();
233     private static BookmarksEntryUtil _util;
234     private BookmarksEntryPersistence _persistence;
235 }