1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
27   * <a href="CounterLocalServiceImpl.java.html"><b><i>View Source</i></b></a>
28   *
29   * @author Brian Wing Shun Chan
30   * @author Edward Han
31   */
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  }