com.liferay.counter.service.persistence
Class CounterPersistence

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      extended by com.liferay.counter.service.persistence.CounterPersistence
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory

public class CounterPersistence
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl

View Source

Author:
Brian Wing Shun Chan, Harry Mark

Field Summary
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME
 
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<java.lang.String> 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.impl.BasePersistenceImpl
closeSession, getDataSource, getDialect, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
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<java.lang.String> 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)

getCounterRegister

protected CounterRegister getCounterRegister(java.lang.String name)

createCounterRegister

protected CounterRegister createCounterRegister(java.lang.String name)

createCounterRegister

protected CounterRegister createCounterRegister(java.lang.String name,
                                                long size)