com.liferay.counter.service.persistence
Class CounterUtil

java.lang.Object
  extended by com.liferay.counter.service.persistence.CounterUtil

public class CounterUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
CounterUtil()
           
 
Method Summary
static java.util.List<java.lang.String> getNames()
           
static CounterPersistence getPersistence()
           
static long increment()
           
static long increment(java.lang.String name)
           
static long increment(java.lang.String name, int size)
           
static void rename(java.lang.String oldName, java.lang.String newName)
           
static void reset(java.lang.String name)
           
static void reset(java.lang.String name, long size)
           
 void setPersistence(CounterPersistence persistence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterUtil

public CounterUtil()
Method Detail

getNames

public static java.util.List<java.lang.String> getNames()
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

increment

public static long increment()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

increment

public static long increment(java.lang.String name)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

increment

public static long increment(java.lang.String name,
                             int size)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

rename

public static void rename(java.lang.String oldName,
                          java.lang.String newName)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reset

public static void reset(java.lang.String name)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reset

public static void reset(java.lang.String name,
                         long size)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static CounterPersistence getPersistence()

setPersistence

public void setPersistence(CounterPersistence persistence)