Class CounterFinderImpl
Object
com.liferay.counter.service.persistence.impl.CounterFinderImpl
- All Implemented Interfaces:
com.liferay.counter.kernel.service.persistence.CounterFinder,com.liferay.portal.kernel.cache.CacheRegistryItem
- Direct Known Subclasses:
MultiDataCenterCounterFinderImpl
public class CounterFinderImpl
extends Object
implements com.liferay.portal.kernel.cache.CacheRegistryItem, com.liferay.counter.kernel.service.persistence.CounterFinder
- Author:
- Brian Wing Shun Chan, Harry Mark, Michael Young, Shuyang Zhou, Edward Han
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseSession(com.liferay.portal.kernel.dao.orm.Session session) protected CounterRegistercreateCounterRegister(String name) protected CounterRegistercreateCounterRegister(String name, long size) protected Connectionprotected CounterRegistergetCounterRegister(String name) longgetCurrentId(String name) getNames()protected intgetRangeSize(String name) longlonglongvoidprotected com.liferay.portal.kernel.exception.SystemExceptionprocessException(Exception exception) voidvoidvoidprotected voidsetDataSource(DataSource dataSource) protected voidsetSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
-
Constructor Details
-
CounterFinderImpl
public CounterFinderImpl()
-
-
Method Details
-
getCurrentId
- Specified by:
getCurrentIdin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
getNames
- Specified by:
getNamesin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
getRegistryName
- Specified by:
getRegistryNamein interfacecom.liferay.portal.kernel.cache.CacheRegistryItem- Specified by:
getRegistryNamein interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
increment
public long increment()- Specified by:
incrementin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
increment
- Specified by:
incrementin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
increment
- Specified by:
incrementin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacecom.liferay.portal.kernel.cache.CacheRegistryItem- Specified by:
invalidatein interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
rename
- Specified by:
renamein interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
reset
- Specified by:
resetin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
reset
- Specified by:
resetin interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
-
closeSession
protected void closeSession(com.liferay.portal.kernel.dao.orm.Session session) throws com.liferay.portal.kernel.dao.orm.ORMException - Throws:
com.liferay.portal.kernel.dao.orm.ORMException
-
createCounterRegister
-
createCounterRegister
-
getConnection
- Throws:
SQLException
-
getCounterRegister
-
getRangeSize
-
processException
-
setDataSource
-
setSessionFactory
protected void setSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
-