com.liferay.counter.service.persistence
Class CounterPersistence

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.jdbc.core.support.JdbcDaoSupport
          extended bycom.liferay.portal.service.persistence.BasePersistence
              extended bycom.liferay.counter.service.persistence.CounterPersistence
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class CounterPersistence
extends com.liferay.portal.service.persistence.BasePersistence

View Source

Author:
Brian Wing Shun Chan, Harry Mark

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CounterPersistence()
           
 
Method Summary
protected  CounterRegister createCounterRegister(java.lang.String name)
           
protected  CounterRegister createCounterRegister(java.lang.String name, long size)
           
protected  CounterRegister getCounterRegister(java.lang.String name)
           
 java.util.List 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)
           
 
Methods inherited from class com.liferay.portal.service.persistence.BasePersistence
closeSession, getDialect, getSessionFactory, openSession, openSession, setSessionFactory
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
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

getNames

public java.util.List 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

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