1
22
23 package com.liferay.portlet.bookmarks.service.persistence;
24
25
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
53 public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
54 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(bookmarksEntry);
57 }
58
59
72 public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
73 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(bookmarksEntry, merge);
76 }
77
78 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
79 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(bookmarksEntry, merge);
82 }
83
84 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
85 long entryId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.bookmarks.NoSuchEntryException {
88 return getPersistence().findByPrimaryKey(entryId);
89 }
90
91 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
92 long entryId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(entryId);
94 }
95
96 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
97 java.lang.String uuid) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUuid(uuid);
99 }
100
101 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
102 java.lang.String uuid, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUuid(uuid, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
108 java.lang.String uuid, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUuid(uuid, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
115 java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.bookmarks.NoSuchEntryException {
119 return getPersistence().findByUuid_First(uuid, obc);
120 }
121
122 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
123 java.lang.String uuid,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.bookmarks.NoSuchEntryException {
127 return getPersistence().findByUuid_Last(uuid, obc);
128 }
129
130 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
131 long entryId, java.lang.String uuid,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.bookmarks.NoSuchEntryException {
135 return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
136 }
137
138 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
139 long folderId) throws com.liferay.portal.SystemException {
140 return getPersistence().findByFolderId(folderId);
141 }
142
143 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
144 long folderId, int begin, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByFolderId(folderId, begin, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
150 long folderId, int begin, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByFolderId(folderId, begin, end, obc);
154 }
155
156 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
157 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.bookmarks.NoSuchEntryException {
160 return getPersistence().findByFolderId_First(folderId, obc);
161 }
162
163 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
164 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.bookmarks.NoSuchEntryException {
167 return getPersistence().findByFolderId_Last(folderId, obc);
168 }
169
170 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
171 long entryId, long folderId,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.bookmarks.NoSuchEntryException {
175 return getPersistence()
176 .findByFolderId_PrevAndNext(entryId, folderId, obc);
177 }
178
179 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findWithDynamicQuery(
180 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().findWithDynamicQuery(queryInitializer);
183 }
184
185 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findWithDynamicQuery(
186 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
187 int begin, int end) throws com.liferay.portal.SystemException {
188 return getPersistence()
189 .findWithDynamicQuery(queryInitializer, begin, end);
190 }
191
192 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findAll();
195 }
196
197 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
198 int begin, int end) throws com.liferay.portal.SystemException {
199 return getPersistence().findAll(begin, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
203 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
204 throws com.liferay.portal.SystemException {
205 return getPersistence().findAll(begin, end, obc);
206 }
207
208 public static void removeByUuid(java.lang.String uuid)
209 throws com.liferay.portal.SystemException {
210 getPersistence().removeByUuid(uuid);
211 }
212
213 public static void removeByFolderId(long folderId)
214 throws com.liferay.portal.SystemException {
215 getPersistence().removeByFolderId(folderId);
216 }
217
218 public static void removeAll() throws com.liferay.portal.SystemException {
219 getPersistence().removeAll();
220 }
221
222 public static int countByUuid(java.lang.String uuid)
223 throws com.liferay.portal.SystemException {
224 return getPersistence().countByUuid(uuid);
225 }
226
227 public static int countByFolderId(long folderId)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().countByFolderId(folderId);
230 }
231
232 public static int countAll() throws com.liferay.portal.SystemException {
233 return getPersistence().countAll();
234 }
235
236 public static BookmarksEntryPersistence getPersistence() {
237 return _getUtil()._persistence;
238 }
239
240 public void setPersistence(BookmarksEntryPersistence persistence) {
241 _persistence = persistence;
242 }
243
244 private static BookmarksEntryUtil _getUtil() {
245 if (_util == null) {
246 _util = (BookmarksEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
247 }
248
249 return _util;
250 }
251
252 private static final String _UTIL = BookmarksEntryUtil.class.getName();
253 private static BookmarksEntryUtil _util;
254 private BookmarksEntryPersistence _persistence;
255 }