1
22
23 package com.liferay.portlet.bookmarks.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.portal.PortalException;
29 import com.liferay.portal.SystemException;
30 import com.liferay.portal.kernel.annotation.BeanReference;
31 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32 import com.liferay.portal.service.ResourceLocalService;
33 import com.liferay.portal.service.ResourceService;
34 import com.liferay.portal.service.UserLocalService;
35 import com.liferay.portal.service.UserService;
36 import com.liferay.portal.service.persistence.ResourceFinder;
37 import com.liferay.portal.service.persistence.ResourcePersistence;
38 import com.liferay.portal.service.persistence.UserFinder;
39 import com.liferay.portal.service.persistence.UserPersistence;
40 import com.liferay.portal.util.PortalUtil;
41
42 import com.liferay.portlet.bookmarks.model.BookmarksEntry;
43 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
44 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
45 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
46 import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
47 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
48 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
49 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
50 import com.liferay.portlet.tags.service.TagsAssetLocalService;
51 import com.liferay.portlet.tags.service.TagsAssetService;
52 import com.liferay.portlet.tags.service.TagsEntryLocalService;
53 import com.liferay.portlet.tags.service.TagsEntryService;
54 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
55 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
56 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
57 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
58
59 import java.util.List;
60
61
67 public abstract class BookmarksEntryLocalServiceBaseImpl
68 implements BookmarksEntryLocalService {
69 public BookmarksEntry addBookmarksEntry(BookmarksEntry bookmarksEntry)
70 throws SystemException {
71 bookmarksEntry.setNew(true);
72
73 return bookmarksEntryPersistence.update(bookmarksEntry, false);
74 }
75
76 public BookmarksEntry createBookmarksEntry(long entryId) {
77 return bookmarksEntryPersistence.create(entryId);
78 }
79
80 public void deleteBookmarksEntry(long entryId)
81 throws PortalException, SystemException {
82 bookmarksEntryPersistence.remove(entryId);
83 }
84
85 public void deleteBookmarksEntry(BookmarksEntry bookmarksEntry)
86 throws SystemException {
87 bookmarksEntryPersistence.remove(bookmarksEntry);
88 }
89
90 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
91 throws SystemException {
92 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery);
93 }
94
95 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
96 int end) throws SystemException {
97 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
98 start, end);
99 }
100
101 public BookmarksEntry getBookmarksEntry(long entryId)
102 throws PortalException, SystemException {
103 return bookmarksEntryPersistence.findByPrimaryKey(entryId);
104 }
105
106 public List<BookmarksEntry> getBookmarksEntries(int start, int end)
107 throws SystemException {
108 return bookmarksEntryPersistence.findAll(start, end);
109 }
110
111 public int getBookmarksEntriesCount() throws SystemException {
112 return bookmarksEntryPersistence.countAll();
113 }
114
115 public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry)
116 throws SystemException {
117 bookmarksEntry.setNew(false);
118
119 return bookmarksEntryPersistence.update(bookmarksEntry, true);
120 }
121
122 public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry,
123 boolean merge) throws SystemException {
124 bookmarksEntry.setNew(false);
125
126 return bookmarksEntryPersistence.update(bookmarksEntry, merge);
127 }
128
129 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
130 return bookmarksEntryLocalService;
131 }
132
133 public void setBookmarksEntryLocalService(
134 BookmarksEntryLocalService bookmarksEntryLocalService) {
135 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
136 }
137
138 public BookmarksEntryService getBookmarksEntryService() {
139 return bookmarksEntryService;
140 }
141
142 public void setBookmarksEntryService(
143 BookmarksEntryService bookmarksEntryService) {
144 this.bookmarksEntryService = bookmarksEntryService;
145 }
146
147 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
148 return bookmarksEntryPersistence;
149 }
150
151 public void setBookmarksEntryPersistence(
152 BookmarksEntryPersistence bookmarksEntryPersistence) {
153 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
154 }
155
156 public BookmarksEntryFinder getBookmarksEntryFinder() {
157 return bookmarksEntryFinder;
158 }
159
160 public void setBookmarksEntryFinder(
161 BookmarksEntryFinder bookmarksEntryFinder) {
162 this.bookmarksEntryFinder = bookmarksEntryFinder;
163 }
164
165 public BookmarksFolderLocalService getBookmarksFolderLocalService() {
166 return bookmarksFolderLocalService;
167 }
168
169 public void setBookmarksFolderLocalService(
170 BookmarksFolderLocalService bookmarksFolderLocalService) {
171 this.bookmarksFolderLocalService = bookmarksFolderLocalService;
172 }
173
174 public BookmarksFolderService getBookmarksFolderService() {
175 return bookmarksFolderService;
176 }
177
178 public void setBookmarksFolderService(
179 BookmarksFolderService bookmarksFolderService) {
180 this.bookmarksFolderService = bookmarksFolderService;
181 }
182
183 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
184 return bookmarksFolderPersistence;
185 }
186
187 public void setBookmarksFolderPersistence(
188 BookmarksFolderPersistence bookmarksFolderPersistence) {
189 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
190 }
191
192 public CounterLocalService getCounterLocalService() {
193 return counterLocalService;
194 }
195
196 public void setCounterLocalService(CounterLocalService counterLocalService) {
197 this.counterLocalService = counterLocalService;
198 }
199
200 public CounterService getCounterService() {
201 return counterService;
202 }
203
204 public void setCounterService(CounterService counterService) {
205 this.counterService = counterService;
206 }
207
208 public ResourceLocalService getResourceLocalService() {
209 return resourceLocalService;
210 }
211
212 public void setResourceLocalService(
213 ResourceLocalService resourceLocalService) {
214 this.resourceLocalService = resourceLocalService;
215 }
216
217 public ResourceService getResourceService() {
218 return resourceService;
219 }
220
221 public void setResourceService(ResourceService resourceService) {
222 this.resourceService = resourceService;
223 }
224
225 public ResourcePersistence getResourcePersistence() {
226 return resourcePersistence;
227 }
228
229 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
230 this.resourcePersistence = resourcePersistence;
231 }
232
233 public ResourceFinder getResourceFinder() {
234 return resourceFinder;
235 }
236
237 public void setResourceFinder(ResourceFinder resourceFinder) {
238 this.resourceFinder = resourceFinder;
239 }
240
241 public UserLocalService getUserLocalService() {
242 return userLocalService;
243 }
244
245 public void setUserLocalService(UserLocalService userLocalService) {
246 this.userLocalService = userLocalService;
247 }
248
249 public UserService getUserService() {
250 return userService;
251 }
252
253 public void setUserService(UserService userService) {
254 this.userService = userService;
255 }
256
257 public UserPersistence getUserPersistence() {
258 return userPersistence;
259 }
260
261 public void setUserPersistence(UserPersistence userPersistence) {
262 this.userPersistence = userPersistence;
263 }
264
265 public UserFinder getUserFinder() {
266 return userFinder;
267 }
268
269 public void setUserFinder(UserFinder userFinder) {
270 this.userFinder = userFinder;
271 }
272
273 public TagsAssetLocalService getTagsAssetLocalService() {
274 return tagsAssetLocalService;
275 }
276
277 public void setTagsAssetLocalService(
278 TagsAssetLocalService tagsAssetLocalService) {
279 this.tagsAssetLocalService = tagsAssetLocalService;
280 }
281
282 public TagsAssetService getTagsAssetService() {
283 return tagsAssetService;
284 }
285
286 public void setTagsAssetService(TagsAssetService tagsAssetService) {
287 this.tagsAssetService = tagsAssetService;
288 }
289
290 public TagsAssetPersistence getTagsAssetPersistence() {
291 return tagsAssetPersistence;
292 }
293
294 public void setTagsAssetPersistence(
295 TagsAssetPersistence tagsAssetPersistence) {
296 this.tagsAssetPersistence = tagsAssetPersistence;
297 }
298
299 public TagsAssetFinder getTagsAssetFinder() {
300 return tagsAssetFinder;
301 }
302
303 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
304 this.tagsAssetFinder = tagsAssetFinder;
305 }
306
307 public TagsEntryLocalService getTagsEntryLocalService() {
308 return tagsEntryLocalService;
309 }
310
311 public void setTagsEntryLocalService(
312 TagsEntryLocalService tagsEntryLocalService) {
313 this.tagsEntryLocalService = tagsEntryLocalService;
314 }
315
316 public TagsEntryService getTagsEntryService() {
317 return tagsEntryService;
318 }
319
320 public void setTagsEntryService(TagsEntryService tagsEntryService) {
321 this.tagsEntryService = tagsEntryService;
322 }
323
324 public TagsEntryPersistence getTagsEntryPersistence() {
325 return tagsEntryPersistence;
326 }
327
328 public void setTagsEntryPersistence(
329 TagsEntryPersistence tagsEntryPersistence) {
330 this.tagsEntryPersistence = tagsEntryPersistence;
331 }
332
333 public TagsEntryFinder getTagsEntryFinder() {
334 return tagsEntryFinder;
335 }
336
337 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
338 this.tagsEntryFinder = tagsEntryFinder;
339 }
340
341 protected void runSQL(String sql) throws SystemException {
342 try {
343 PortalUtil.runSQL(sql);
344 }
345 catch (Exception e) {
346 throw new SystemException(e);
347 }
348 }
349
350 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.impl")
351 protected BookmarksEntryLocalService bookmarksEntryLocalService;
352 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryService.impl")
353 protected BookmarksEntryService bookmarksEntryService;
354 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence.impl")
355 protected BookmarksEntryPersistence bookmarksEntryPersistence;
356 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder.impl")
357 protected BookmarksEntryFinder bookmarksEntryFinder;
358 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.impl")
359 protected BookmarksFolderLocalService bookmarksFolderLocalService;
360 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderService.impl")
361 protected BookmarksFolderService bookmarksFolderService;
362 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence.impl")
363 protected BookmarksFolderPersistence bookmarksFolderPersistence;
364 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
365 protected CounterLocalService counterLocalService;
366 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
367 protected CounterService counterService;
368 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
369 protected ResourceLocalService resourceLocalService;
370 @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
371 protected ResourceService resourceService;
372 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
373 protected ResourcePersistence resourcePersistence;
374 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
375 protected ResourceFinder resourceFinder;
376 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
377 protected UserLocalService userLocalService;
378 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
379 protected UserService userService;
380 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
381 protected UserPersistence userPersistence;
382 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
383 protected UserFinder userFinder;
384 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
385 protected TagsAssetLocalService tagsAssetLocalService;
386 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
387 protected TagsAssetService tagsAssetService;
388 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
389 protected TagsAssetPersistence tagsAssetPersistence;
390 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
391 protected TagsAssetFinder tagsAssetFinder;
392 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
393 protected TagsEntryLocalService tagsEntryLocalService;
394 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
395 protected TagsEntryService tagsEntryService;
396 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
397 protected TagsEntryPersistence tagsEntryPersistence;
398 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
399 protected TagsEntryFinder tagsEntryFinder;
400 }