1
14
15 package com.liferay.portlet.asset.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.jdbc.SqlUpdate;
21 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
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.model.AssetTagStats;
36 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
37 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
38 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
39 import com.liferay.portlet.asset.service.AssetCategoryService;
40 import com.liferay.portlet.asset.service.AssetEntryLocalService;
41 import com.liferay.portlet.asset.service.AssetEntryService;
42 import com.liferay.portlet.asset.service.AssetLinkLocalService;
43 import com.liferay.portlet.asset.service.AssetTagLocalService;
44 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
45 import com.liferay.portlet.asset.service.AssetTagPropertyService;
46 import com.liferay.portlet.asset.service.AssetTagService;
47 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
48 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
49 import com.liferay.portlet.asset.service.AssetVocabularyService;
50 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
51 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
52 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
53 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
54 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
55 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
56 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
57 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
58 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
59 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
60 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
61 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
62 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
63 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
64
65 import java.util.List;
66
67 import javax.sql.DataSource;
68
69
75 public abstract class AssetTagStatsLocalServiceBaseImpl
76 implements AssetTagStatsLocalService {
77 public AssetTagStats addAssetTagStats(AssetTagStats assetTagStats)
78 throws SystemException {
79 assetTagStats.setNew(true);
80
81 return assetTagStatsPersistence.update(assetTagStats, false);
82 }
83
84 public AssetTagStats createAssetTagStats(long tagStatsId) {
85 return assetTagStatsPersistence.create(tagStatsId);
86 }
87
88 public void deleteAssetTagStats(long tagStatsId)
89 throws PortalException, SystemException {
90 assetTagStatsPersistence.remove(tagStatsId);
91 }
92
93 public void deleteAssetTagStats(AssetTagStats assetTagStats)
94 throws SystemException {
95 assetTagStatsPersistence.remove(assetTagStats);
96 }
97
98 @SuppressWarnings("unchecked")
99 public List dynamicQuery(DynamicQuery dynamicQuery)
100 throws SystemException {
101 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery);
102 }
103
104 @SuppressWarnings("unchecked")
105 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
106 throws SystemException {
107 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery,
108 start, end);
109 }
110
111 @SuppressWarnings("unchecked")
112 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
113 OrderByComparator orderByComparator) throws SystemException {
114 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery,
115 start, end, orderByComparator);
116 }
117
118 public long dynamicQueryCount(DynamicQuery dynamicQuery)
119 throws SystemException {
120 return assetTagStatsPersistence.countWithDynamicQuery(dynamicQuery);
121 }
122
123 public AssetTagStats getAssetTagStats(long tagStatsId)
124 throws PortalException, SystemException {
125 return assetTagStatsPersistence.findByPrimaryKey(tagStatsId);
126 }
127
128 public List<AssetTagStats> getAssetTagStatses(int start, int end)
129 throws SystemException {
130 return assetTagStatsPersistence.findAll(start, end);
131 }
132
133 public int getAssetTagStatsesCount() throws SystemException {
134 return assetTagStatsPersistence.countAll();
135 }
136
137 public AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats)
138 throws SystemException {
139 assetTagStats.setNew(false);
140
141 return assetTagStatsPersistence.update(assetTagStats, true);
142 }
143
144 public AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats,
145 boolean merge) throws SystemException {
146 assetTagStats.setNew(false);
147
148 return assetTagStatsPersistence.update(assetTagStats, merge);
149 }
150
151 public AssetCategoryLocalService getAssetCategoryLocalService() {
152 return assetCategoryLocalService;
153 }
154
155 public void setAssetCategoryLocalService(
156 AssetCategoryLocalService assetCategoryLocalService) {
157 this.assetCategoryLocalService = assetCategoryLocalService;
158 }
159
160 public AssetCategoryService getAssetCategoryService() {
161 return assetCategoryService;
162 }
163
164 public void setAssetCategoryService(
165 AssetCategoryService assetCategoryService) {
166 this.assetCategoryService = assetCategoryService;
167 }
168
169 public AssetCategoryPersistence getAssetCategoryPersistence() {
170 return assetCategoryPersistence;
171 }
172
173 public void setAssetCategoryPersistence(
174 AssetCategoryPersistence assetCategoryPersistence) {
175 this.assetCategoryPersistence = assetCategoryPersistence;
176 }
177
178 public AssetCategoryFinder getAssetCategoryFinder() {
179 return assetCategoryFinder;
180 }
181
182 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
183 this.assetCategoryFinder = assetCategoryFinder;
184 }
185
186 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
187 return assetCategoryPropertyLocalService;
188 }
189
190 public void setAssetCategoryPropertyLocalService(
191 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
192 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
193 }
194
195 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
196 return assetCategoryPropertyService;
197 }
198
199 public void setAssetCategoryPropertyService(
200 AssetCategoryPropertyService assetCategoryPropertyService) {
201 this.assetCategoryPropertyService = assetCategoryPropertyService;
202 }
203
204 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
205 return assetCategoryPropertyPersistence;
206 }
207
208 public void setAssetCategoryPropertyPersistence(
209 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
210 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
211 }
212
213 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
214 return assetCategoryPropertyFinder;
215 }
216
217 public void setAssetCategoryPropertyFinder(
218 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
219 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
220 }
221
222 public AssetEntryLocalService getAssetEntryLocalService() {
223 return assetEntryLocalService;
224 }
225
226 public void setAssetEntryLocalService(
227 AssetEntryLocalService assetEntryLocalService) {
228 this.assetEntryLocalService = assetEntryLocalService;
229 }
230
231 public AssetEntryService getAssetEntryService() {
232 return assetEntryService;
233 }
234
235 public void setAssetEntryService(AssetEntryService assetEntryService) {
236 this.assetEntryService = assetEntryService;
237 }
238
239 public AssetEntryPersistence getAssetEntryPersistence() {
240 return assetEntryPersistence;
241 }
242
243 public void setAssetEntryPersistence(
244 AssetEntryPersistence assetEntryPersistence) {
245 this.assetEntryPersistence = assetEntryPersistence;
246 }
247
248 public AssetEntryFinder getAssetEntryFinder() {
249 return assetEntryFinder;
250 }
251
252 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
253 this.assetEntryFinder = assetEntryFinder;
254 }
255
256 public AssetLinkLocalService getAssetLinkLocalService() {
257 return assetLinkLocalService;
258 }
259
260 public void setAssetLinkLocalService(
261 AssetLinkLocalService assetLinkLocalService) {
262 this.assetLinkLocalService = assetLinkLocalService;
263 }
264
265 public AssetLinkPersistence getAssetLinkPersistence() {
266 return assetLinkPersistence;
267 }
268
269 public void setAssetLinkPersistence(
270 AssetLinkPersistence assetLinkPersistence) {
271 this.assetLinkPersistence = assetLinkPersistence;
272 }
273
274 public AssetTagLocalService getAssetTagLocalService() {
275 return assetTagLocalService;
276 }
277
278 public void setAssetTagLocalService(
279 AssetTagLocalService assetTagLocalService) {
280 this.assetTagLocalService = assetTagLocalService;
281 }
282
283 public AssetTagService getAssetTagService() {
284 return assetTagService;
285 }
286
287 public void setAssetTagService(AssetTagService assetTagService) {
288 this.assetTagService = assetTagService;
289 }
290
291 public AssetTagPersistence getAssetTagPersistence() {
292 return assetTagPersistence;
293 }
294
295 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
296 this.assetTagPersistence = assetTagPersistence;
297 }
298
299 public AssetTagFinder getAssetTagFinder() {
300 return assetTagFinder;
301 }
302
303 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
304 this.assetTagFinder = assetTagFinder;
305 }
306
307 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
308 return assetTagPropertyLocalService;
309 }
310
311 public void setAssetTagPropertyLocalService(
312 AssetTagPropertyLocalService assetTagPropertyLocalService) {
313 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
314 }
315
316 public AssetTagPropertyService getAssetTagPropertyService() {
317 return assetTagPropertyService;
318 }
319
320 public void setAssetTagPropertyService(
321 AssetTagPropertyService assetTagPropertyService) {
322 this.assetTagPropertyService = assetTagPropertyService;
323 }
324
325 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
326 return assetTagPropertyPersistence;
327 }
328
329 public void setAssetTagPropertyPersistence(
330 AssetTagPropertyPersistence assetTagPropertyPersistence) {
331 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
332 }
333
334 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
335 return assetTagPropertyFinder;
336 }
337
338 public void setAssetTagPropertyFinder(
339 AssetTagPropertyFinder assetTagPropertyFinder) {
340 this.assetTagPropertyFinder = assetTagPropertyFinder;
341 }
342
343 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
344 return assetTagPropertyKeyFinder;
345 }
346
347 public void setAssetTagPropertyKeyFinder(
348 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
349 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
350 }
351
352 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
353 return assetTagStatsLocalService;
354 }
355
356 public void setAssetTagStatsLocalService(
357 AssetTagStatsLocalService assetTagStatsLocalService) {
358 this.assetTagStatsLocalService = assetTagStatsLocalService;
359 }
360
361 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
362 return assetTagStatsPersistence;
363 }
364
365 public void setAssetTagStatsPersistence(
366 AssetTagStatsPersistence assetTagStatsPersistence) {
367 this.assetTagStatsPersistence = assetTagStatsPersistence;
368 }
369
370 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
371 return assetVocabularyLocalService;
372 }
373
374 public void setAssetVocabularyLocalService(
375 AssetVocabularyLocalService assetVocabularyLocalService) {
376 this.assetVocabularyLocalService = assetVocabularyLocalService;
377 }
378
379 public AssetVocabularyService getAssetVocabularyService() {
380 return assetVocabularyService;
381 }
382
383 public void setAssetVocabularyService(
384 AssetVocabularyService assetVocabularyService) {
385 this.assetVocabularyService = assetVocabularyService;
386 }
387
388 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
389 return assetVocabularyPersistence;
390 }
391
392 public void setAssetVocabularyPersistence(
393 AssetVocabularyPersistence assetVocabularyPersistence) {
394 this.assetVocabularyPersistence = assetVocabularyPersistence;
395 }
396
397 public CounterLocalService getCounterLocalService() {
398 return counterLocalService;
399 }
400
401 public void setCounterLocalService(CounterLocalService counterLocalService) {
402 this.counterLocalService = counterLocalService;
403 }
404
405 public ResourceLocalService getResourceLocalService() {
406 return resourceLocalService;
407 }
408
409 public void setResourceLocalService(
410 ResourceLocalService resourceLocalService) {
411 this.resourceLocalService = resourceLocalService;
412 }
413
414 public ResourceService getResourceService() {
415 return resourceService;
416 }
417
418 public void setResourceService(ResourceService resourceService) {
419 this.resourceService = resourceService;
420 }
421
422 public ResourcePersistence getResourcePersistence() {
423 return resourcePersistence;
424 }
425
426 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
427 this.resourcePersistence = resourcePersistence;
428 }
429
430 public ResourceFinder getResourceFinder() {
431 return resourceFinder;
432 }
433
434 public void setResourceFinder(ResourceFinder resourceFinder) {
435 this.resourceFinder = resourceFinder;
436 }
437
438 public UserLocalService getUserLocalService() {
439 return userLocalService;
440 }
441
442 public void setUserLocalService(UserLocalService userLocalService) {
443 this.userLocalService = userLocalService;
444 }
445
446 public UserService getUserService() {
447 return userService;
448 }
449
450 public void setUserService(UserService userService) {
451 this.userService = userService;
452 }
453
454 public UserPersistence getUserPersistence() {
455 return userPersistence;
456 }
457
458 public void setUserPersistence(UserPersistence userPersistence) {
459 this.userPersistence = userPersistence;
460 }
461
462 public UserFinder getUserFinder() {
463 return userFinder;
464 }
465
466 public void setUserFinder(UserFinder userFinder) {
467 this.userFinder = userFinder;
468 }
469
470 protected void runSQL(String sql) throws SystemException {
471 try {
472 DataSource dataSource = assetTagStatsPersistence.getDataSource();
473
474 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
475 sql, new int[0]);
476
477 sqlUpdate.update();
478 }
479 catch (Exception e) {
480 throw new SystemException(e);
481 }
482 }
483
484 @BeanReference(type = AssetCategoryLocalService.class)
485 protected AssetCategoryLocalService assetCategoryLocalService;
486 @BeanReference(type = AssetCategoryService.class)
487 protected AssetCategoryService assetCategoryService;
488 @BeanReference(type = AssetCategoryPersistence.class)
489 protected AssetCategoryPersistence assetCategoryPersistence;
490 @BeanReference(type = AssetCategoryFinder.class)
491 protected AssetCategoryFinder assetCategoryFinder;
492 @BeanReference(type = AssetCategoryPropertyLocalService.class)
493 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
494 @BeanReference(type = AssetCategoryPropertyService.class)
495 protected AssetCategoryPropertyService assetCategoryPropertyService;
496 @BeanReference(type = AssetCategoryPropertyPersistence.class)
497 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
498 @BeanReference(type = AssetCategoryPropertyFinder.class)
499 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
500 @BeanReference(type = AssetEntryLocalService.class)
501 protected AssetEntryLocalService assetEntryLocalService;
502 @BeanReference(type = AssetEntryService.class)
503 protected AssetEntryService assetEntryService;
504 @BeanReference(type = AssetEntryPersistence.class)
505 protected AssetEntryPersistence assetEntryPersistence;
506 @BeanReference(type = AssetEntryFinder.class)
507 protected AssetEntryFinder assetEntryFinder;
508 @BeanReference(type = AssetLinkLocalService.class)
509 protected AssetLinkLocalService assetLinkLocalService;
510 @BeanReference(type = AssetLinkPersistence.class)
511 protected AssetLinkPersistence assetLinkPersistence;
512 @BeanReference(type = AssetTagLocalService.class)
513 protected AssetTagLocalService assetTagLocalService;
514 @BeanReference(type = AssetTagService.class)
515 protected AssetTagService assetTagService;
516 @BeanReference(type = AssetTagPersistence.class)
517 protected AssetTagPersistence assetTagPersistence;
518 @BeanReference(type = AssetTagFinder.class)
519 protected AssetTagFinder assetTagFinder;
520 @BeanReference(type = AssetTagPropertyLocalService.class)
521 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
522 @BeanReference(type = AssetTagPropertyService.class)
523 protected AssetTagPropertyService assetTagPropertyService;
524 @BeanReference(type = AssetTagPropertyPersistence.class)
525 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
526 @BeanReference(type = AssetTagPropertyFinder.class)
527 protected AssetTagPropertyFinder assetTagPropertyFinder;
528 @BeanReference(type = AssetTagPropertyKeyFinder.class)
529 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
530 @BeanReference(type = AssetTagStatsLocalService.class)
531 protected AssetTagStatsLocalService assetTagStatsLocalService;
532 @BeanReference(type = AssetTagStatsPersistence.class)
533 protected AssetTagStatsPersistence assetTagStatsPersistence;
534 @BeanReference(type = AssetVocabularyLocalService.class)
535 protected AssetVocabularyLocalService assetVocabularyLocalService;
536 @BeanReference(type = AssetVocabularyService.class)
537 protected AssetVocabularyService assetVocabularyService;
538 @BeanReference(type = AssetVocabularyPersistence.class)
539 protected AssetVocabularyPersistence assetVocabularyPersistence;
540 @BeanReference(type = CounterLocalService.class)
541 protected CounterLocalService counterLocalService;
542 @BeanReference(type = ResourceLocalService.class)
543 protected ResourceLocalService resourceLocalService;
544 @BeanReference(type = ResourceService.class)
545 protected ResourceService resourceService;
546 @BeanReference(type = ResourcePersistence.class)
547 protected ResourcePersistence resourcePersistence;
548 @BeanReference(type = ResourceFinder.class)
549 protected ResourceFinder resourceFinder;
550 @BeanReference(type = UserLocalService.class)
551 protected UserLocalService userLocalService;
552 @BeanReference(type = UserService.class)
553 protected UserService userService;
554 @BeanReference(type = UserPersistence.class)
555 protected UserPersistence userPersistence;
556 @BeanReference(type = UserFinder.class)
557 protected UserFinder userFinder;
558 }