com.liferay.counter.service.persistence
Class CounterPersistence

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      extended by 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

Field Summary
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners
 
Constructor Summary
CounterPersistence()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  CounterRegister createCounterRegister(java.lang.String name)
           
protected  CounterRegister createCounterRegister(java.lang.String name, long size)
           
 void destroy()
           
 java.sql.Connection getConnection()
           
static int getCounterIncrement()
           
protected  CounterRegister getCounterRegister(java.lang.String name)
           
 java.util.List<java.lang.String> getNames()
           
 long increment()
           
 long increment(java.lang.String name)
           
 long increment(java.lang.String name, int size)
           
 void rename(java.lang.String oldName, java.lang.String newName)
           
 void reset(java.lang.String name)
           
 void reset(java.lang.String name, long size)
           
 void setConnectionHeartbeatJob(com.liferay.portal.kernel.job.IntervalJob connectionHeartbeatJob)
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
 
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
 

Constructor Detail

CounterPersistence

public CounterPersistence()
Method Detail

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