@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface CounterLocalService extends BaseLocalService
CounterLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
List<String> |
getNames()
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
long |
increment() |
long |
increment(String name) |
long |
increment(String name,
int size) |
void |
rename(String oldName,
String newName) |
void |
reset(String name) |
void |
reset(String name,
long size) |
@Transactional(propagation=SUPPORTS, readOnly=true) List<String> getNames()
CounterLocalServiceUtil
to access the counter local service. Add custom service methods to com.liferay.counter.service.impl.CounterLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.String getOSGiServiceIdentifier()
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) long increment()
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) long increment(String name)
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) long increment(String name, int size)
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) void rename(String oldName, String newName)
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) void reset(String name)
@Transactional(isolation=COUNTER, propagation=REQUIRES_NEW) void reset(String name, long size)