1
14
15 package com.liferay.counter.service.impl;
16
17 import com.liferay.counter.service.CounterLocalService;
18 import com.liferay.counter.service.base.CounterLocalServiceBaseImpl;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22 import com.liferay.portal.kernel.exception.SystemException;
23
24 import java.util.List;
25
26
32 public class CounterLocalServiceImpl
33 extends CounterLocalServiceBaseImpl implements CounterLocalService {
34
35 public List<String> getNames() throws SystemException {
36 return counterFinder.getNames();
37 }
38
39 @Transactional(
40 isolation = Isolation.SERIALIZABLE,
41 propagation = Propagation.REQUIRES_NEW)
42 public long increment() throws SystemException {
43 return counterFinder.increment();
44 }
45
46 @Transactional(
47 isolation = Isolation.SERIALIZABLE,
48 propagation = Propagation.REQUIRES_NEW)
49 public long increment(String name) throws SystemException {
50 return counterFinder.increment(name);
51 }
52
53 @Transactional(
54 isolation = Isolation.SERIALIZABLE,
55 propagation = Propagation.REQUIRES_NEW)
56 public long increment(String name, int size) throws SystemException {
57 return counterFinder.increment(name, size);
58 }
59
60 @Transactional(
61 isolation = Isolation.SERIALIZABLE,
62 propagation = Propagation.REQUIRES_NEW)
63 public void rename(String oldName, String newName) throws SystemException {
64 counterFinder.rename(oldName, newName);
65 }
66
67 @Transactional(
68 isolation = Isolation.SERIALIZABLE,
69 propagation = Propagation.REQUIRES_NEW)
70 public void reset(String name) throws SystemException {
71 counterFinder.reset(name);
72 }
73
74 @Transactional(
75 isolation = Isolation.SERIALIZABLE,
76 propagation = Propagation.REQUIRES_NEW)
77 public void reset(String name, long size) throws SystemException {
78 counterFinder.reset(name, size);
79 }
80
81 }