com.liferay.counter.service.persistence
Class CounterFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Dummy>
      extended by com.liferay.counter.service.persistence.CounterFinderImpl
All Implemented Interfaces:
com.liferay.counter.service.persistence.CounterFinder, com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Dummy>

public class CounterFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Dummy>
implements com.liferay.counter.service.persistence.CounterFinder

View Source

Author:
Brian Wing Shun Chan, Harry Mark, Michael Young, Shuyang Zhou, Edward Han

Field Summary
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT
 
Constructor Summary
CounterFinderImpl()
           
 
Method Summary
protected  CounterRegister createCounterRegister(java.lang.String name)
           
protected  CounterRegister createCounterRegister(java.lang.String name, long size)
           
protected  java.sql.Connection getConnection()
           
protected  CounterRegister getCounterRegister(java.lang.String name)
           
 java.util.List<java.lang.String> getNames()
           
protected  int getRangeSize(java.lang.String name)
           
 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.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, setDataSource, setSessionFactory, unregisterListener, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterFinderImpl

public CounterFinderImpl()
Method Detail

getNames

public java.util.List<java.lang.String> getNames()
                                          throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getNames in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

increment

public long increment()
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
increment in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

increment

public long increment(java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
increment in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

increment

public long increment(java.lang.String name,
                      int size)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
increment in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

rename

public void rename(java.lang.String oldName,
                   java.lang.String newName)
            throws com.liferay.portal.kernel.exception.SystemException
Specified by:
rename in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

reset

public void reset(java.lang.String name)
           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
reset in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

reset

public void reset(java.lang.String name,
                  long size)
           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
reset in interface com.liferay.counter.service.persistence.CounterFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

createCounterRegister

protected CounterRegister createCounterRegister(java.lang.String name)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createCounterRegister

protected CounterRegister createCounterRegister(java.lang.String name,
                                                long size)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getConnection

protected java.sql.Connection getConnection()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getCounterRegister

protected CounterRegister getCounterRegister(java.lang.String name)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRangeSize

protected int getRangeSize(java.lang.String name)