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 e) |
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.CounterFinderpublic String getRegistryName()
getRegistryName in interface com.liferay.counter.kernel.service.persistence.CounterFindergetRegistryName in interface com.liferay.portal.kernel.cache.CacheRegistryItempublic long increment()
increment in interface com.liferay.counter.kernel.service.persistence.CounterFinderpublic long increment(String name)
increment in interface com.liferay.counter.kernel.service.persistence.CounterFinderpublic long increment(String name,
int size)
increment in interface com.liferay.counter.kernel.service.persistence.CounterFinderpublic void invalidate()
invalidate in interface com.liferay.counter.kernel.service.persistence.CounterFinderinvalidate in interface com.liferay.portal.kernel.cache.CacheRegistryItempublic void rename(String oldName,
String newName)
rename in interface com.liferay.counter.kernel.service.persistence.CounterFinderpublic void reset(String name)
reset in interface com.liferay.counter.kernel.service.persistence.CounterFinderpublic void reset(String name,
long size)
reset in interface com.liferay.counter.kernel.service.persistence.CounterFinderprotected void closeSession(com.liferay.portal.kernel.dao.orm.Session session)
throws com.liferay.portal.kernel.dao.orm.ORMException
com.liferay.portal.kernel.dao.orm.ORMExceptionprotected CounterRegister createCounterRegister(String name)
protected CounterRegister createCounterRegister(String name, long size)
protected Connection getConnection()
throws SQLException
SQLExceptionprotected 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.ORMExceptionprotected com.liferay.portal.kernel.exception.SystemException processException(Exception e)
protected void setDataSource(javax.sql.DataSource dataSource)
protected void setSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)