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 Details

    • CounterFinderImpl

      public CounterFinderImpl()
  • Method Details

    • getCurrentId

      public long getCurrentId(String name)
      Specified by:
      getCurrentId in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • getNames

      public List<String> getNames()
      Specified by:
      getNames in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • getRegistryName

      public String getRegistryName()
      Specified by:
      getRegistryName in interface com.liferay.portal.kernel.cache.CacheRegistryItem
      Specified by:
      getRegistryName in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • increment

      public long increment()
      Specified by:
      increment in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • increment

      public long increment(String name)
      Specified by:
      increment in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • increment

      public long increment(String name, int size)
      Specified by:
      increment in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • invalidate

      public void invalidate()
      Specified by:
      invalidate in interface com.liferay.portal.kernel.cache.CacheRegistryItem
      Specified by:
      invalidate in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • rename

      public void rename(String oldName, String newName)
      Specified by:
      rename in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • reset

      public void reset(String name)
      Specified by:
      reset in interface com.liferay.counter.kernel.service.persistence.CounterFinder
    • reset

      public void reset(String name, long size)
      Specified by:
      reset in interface com.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

      protected CounterRegister createCounterRegister(String name)
    • createCounterRegister

      protected CounterRegister createCounterRegister(String name, long size)
    • getConnection

      protected Connection getConnection() throws SQLException
      Throws:
      SQLException
    • getCounterRegister

      protected CounterRegister getCounterRegister(String name)
    • getRangeSize

      protected int getRangeSize(String name)
    • processException

      protected com.liferay.portal.kernel.exception.SystemException processException(Exception exception)
    • setDataSource

      protected void setDataSource(DataSource dataSource)
    • setSessionFactory

      protected void setSessionFactory(com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)