com.liferay.counter.service.persistence
Class CounterPersistence
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl
com.liferay.counter.service.persistence.CounterPersistence
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence
public class CounterPersistence
- extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
View Source
- Author:
- Brian Wing Shun Chan, Harry Mark, Michael Young
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
COUNT_COLUMN_NAME, listeners |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
clearCache, closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterPersistence
public CounterPersistence()
getCounterIncrement
public static int getCounterIncrement()
afterPropertiesSet
public void afterPropertiesSet()
getConnection
public java.sql.Connection getConnection()
throws java.lang.Exception
- Throws:
java.lang.Exception
destroy
public void destroy()
getNames
public java.util.List<java.lang.String> getNames()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
increment
public long increment()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
increment
public long increment(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
increment
public long increment(java.lang.String name,
int size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
rename
public void rename(java.lang.String oldName,
java.lang.String newName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reset
public void reset(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reset
public void reset(java.lang.String name,
long size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setConnectionHeartbeatJob
public void setConnectionHeartbeatJob(com.liferay.portal.kernel.job.IntervalJob connectionHeartbeatJob)
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
getCounterRegister
protected CounterRegister getCounterRegister(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createCounterRegister
protected CounterRegister createCounterRegister(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createCounterRegister
protected CounterRegister createCounterRegister(java.lang.String name,
long size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException