Example usage for com.liferay.portal.kernel.transaction Isolation COUNTER

List of usage examples for com.liferay.portal.kernel.transaction Isolation COUNTER

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.transaction Isolation COUNTER.

Prototype

Isolation COUNTER

To view the source code for com.liferay.portal.kernel.transaction Isolation COUNTER.

Click Source Link

Document

Use the isolation level of the counter service, as defined by the portal properties.

Usage

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public long increment() throws SystemException {
    return counterFinder.increment();
}

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public long increment(String name) throws SystemException {
    return counterFinder.increment(name);
}

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public long increment(String name, int size) throws SystemException {
    return counterFinder.increment(name, size);
}

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public void rename(String oldName, String newName) throws SystemException {
    counterFinder.rename(oldName, newName);
}

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public void reset(String name) throws SystemException {
    counterFinder.reset(name);
}

From source file:com.liferay.counter.service.impl.CounterLocalServiceImpl.java

License:Open Source License

@Transactional(isolation = Isolation.COUNTER, propagation = Propagation.REQUIRES_NEW)
public void reset(String name, long size) throws SystemException {
    counterFinder.reset(name, size);//ww  w . j a  va  2  s.  c o m
}