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