com.liferay.counter.service.persistence
Class CounterPersistenceImpl

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

public class CounterPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Dummy>
implements CounterPersistence

View Source

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

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
CounterPersistenceImpl()
           
 
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, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, removeImpl, setDataSource, setSessionFactory, unregisterListener, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update
 

Constructor Detail

CounterPersistenceImpl

public CounterPersistenceImpl()
Method Detail

getNames

public java.util.List<java.lang.String> getNames()
                                          throws com.liferay.portal.SystemException
Specified by:
getNames in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

increment

public long increment()
               throws com.liferay.portal.SystemException
Specified by:
increment in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

increment

public long increment(java.lang.String name)
               throws com.liferay.portal.SystemException
Specified by:
increment in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

increment

public long increment(java.lang.String name,
                      int size)
               throws com.liferay.portal.SystemException
Specified by:
increment in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

rename

public void rename(java.lang.String oldName,
                   java.lang.String newName)
            throws com.liferay.portal.SystemException
Specified by:
rename in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

reset

public void reset(java.lang.String name)
           throws com.liferay.portal.SystemException
Specified by:
reset in interface CounterPersistence
Throws:
com.liferay.portal.SystemException

reset

public void reset(java.lang.String name,
                  long size)
           throws com.liferay.portal.SystemException
Specified by:
reset in interface CounterPersistence
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

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.SystemException
Throws:
com.liferay.portal.SystemException

getRangeSize

protected int getRangeSize(java.lang.String name)