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