Liferay 7.0-ga1 portal-impl

com.liferay.counter.service.persistence.impl
Class CounterFinderImpl

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

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


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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, WHERE_OR
 
Constructor Summary
CounterFinderImpl()
           
 
Method Summary
protected  CounterRegister createCounterRegister(String name)
           
protected  CounterRegister createCounterRegister(String name, long size)
           
protected  Connection getConnection()
           
protected  CounterRegister getCounterRegister(String name)
           
 List<String> getNames()
           
protected  int getRangeSize(String name)
           
 String getRegistryName()
           
 long increment()
           
 long increment(String name)
           
 long increment(String name, int size)
           
 void invalidate()
           
 void rename(String oldName, String newName)
           
 void reset(String name)
           
 void reset(String name, long size)
           
 
Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, getTableColumnsMap, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, 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 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.counter.kernel.service.persistence.CounterFinder
Specified by:
getRegistryName in interface com.liferay.portal.kernel.cache.CacheRegistryItem

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.counter.kernel.service.persistence.CounterFinder
Specified by:
invalidate in interface com.liferay.portal.kernel.cache.CacheRegistryItem

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

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)

Liferay 7.0-ga1 portal-impl