1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.counter.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
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  
23  import java.util.List;
24  
25  /**
26   * <a href="CounterLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   */
30  @Transactional(
31      isolation = Isolation.PORTAL,
32      rollbackFor = {PortalException.class, SystemException.class})
33  public interface CounterLocalService {
34  
35      public List<String> getNames() throws SystemException;
36  
37      @Transactional(propagation = Propagation.REQUIRES_NEW)
38      public long increment() throws SystemException;
39  
40      @Transactional(propagation = Propagation.REQUIRES_NEW)
41      public long increment(String name) throws SystemException;
42  
43      @Transactional(propagation = Propagation.REQUIRES_NEW)
44      public long increment(String name, int size) throws SystemException;
45  
46      public void rename(String oldName, String newName) throws SystemException;
47  
48      public void reset(String name) throws SystemException;
49  
50      public void reset(String name, long size) throws SystemException;
51  
52  }