public class CounterFinderImpl
extends Object
implements com.liferay.portal.kernel.cache.CacheRegistryItem, com.liferay.counter.kernel.service.persistence.CounterFinder
Constructor and Description |
---|
CounterFinderImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeSession(com.liferay.portal.kernel.dao.orm.Session session) |
protected CounterRegister |
createCounterRegister(String name) |
protected CounterRegister |
createCounterRegister(String name,
long size) |
protected Connection |
getConnection() |
protected CounterRegister |
getCounterRegister(String name) |
List<String> |
getNames() |
protected int |
getRangeSize(String name) |
String |
getRegistryName() |
long |
increment() |
long |
increment(String name) |
long |
increment(String name,
int size) |
void |
invalidate() |
protected com.liferay.portal.kernel.dao.orm.Session |
openSession() |
protected com.liferay.portal.kernel.exception.SystemException |
processException(Exception exception) |
void |
rename(String oldName,
String newName) |
void |
reset(String name) |
void |
reset(String name,
long size) |
protected void |
setDataSource(javax.sql.DataSource dataSource) |
protected void |
setSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory) |
public List<String> getNames()
getNames
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public String getRegistryName()
getRegistryName
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
getRegistryName
in interface com.liferay.portal.kernel.cache.CacheRegistryItem
public long increment()
increment
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public long increment(String name)
increment
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public long increment(String name, int size)
increment
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public void invalidate()
invalidate
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
invalidate
in interface com.liferay.portal.kernel.cache.CacheRegistryItem
public void rename(String oldName, String newName)
rename
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public void reset(String name)
reset
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
public void reset(String name, long size)
reset
in interface com.liferay.counter.kernel.service.persistence.CounterFinder
protected void closeSession(com.liferay.portal.kernel.dao.orm.Session session) throws com.liferay.portal.kernel.dao.orm.ORMException
com.liferay.portal.kernel.dao.orm.ORMException
protected CounterRegister createCounterRegister(String name)
protected CounterRegister createCounterRegister(String name, long size)
protected Connection getConnection() throws SQLException
SQLException
protected CounterRegister getCounterRegister(String name)
protected int getRangeSize(String name)
protected com.liferay.portal.kernel.dao.orm.Session openSession() throws com.liferay.portal.kernel.dao.orm.ORMException
com.liferay.portal.kernel.dao.orm.ORMException
protected com.liferay.portal.kernel.exception.SystemException processException(Exception exception)
protected void setDataSource(javax.sql.DataSource dataSource)
protected void setSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)