001
014
015 package com.liferay.counter.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface CounterLocalService {
043 public com.liferay.counter.model.Counter addCounter(
044 com.liferay.counter.model.Counter counter)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.counter.model.Counter createCounter(
048 java.lang.String name);
049
050 public void deleteCounter(java.lang.String name)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteCounter(com.liferay.counter.model.Counter counter)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057 @SuppressWarnings("unchecked")
058 public java.util.List dynamicQuery(
059 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060 throws com.liferay.portal.kernel.exception.SystemException;
061
062 @SuppressWarnings("unchecked")
063 public java.util.List dynamicQuery(
064 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
065 int end) throws com.liferay.portal.kernel.exception.SystemException;
066
067 @SuppressWarnings("unchecked")
068 public java.util.List dynamicQuery(
069 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070 int end,
071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072 throws com.liferay.portal.kernel.exception.SystemException;
073
074 public long dynamicQueryCount(
075 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
076 throws com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public com.liferay.counter.model.Counter getCounter(java.lang.String name)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.counter.model.Counter> getCounters(
085 int start, int end)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public int getCountersCount()
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.counter.model.Counter updateCounter(
093 com.liferay.counter.model.Counter counter)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.counter.model.Counter updateCounter(
097 com.liferay.counter.model.Counter counter, boolean merge)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public java.util.List<java.lang.String> getNames()
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public long increment()
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public long increment(java.lang.String name)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public long increment(java.lang.String name, int size)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void rename(java.lang.String oldName, java.lang.String newName)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void reset(java.lang.String name)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public void reset(java.lang.String name, long size)
120 throws com.liferay.portal.kernel.exception.SystemException;
121 }