uPortal 2.3.2
API Documentation

org.jasig.portal.utils
Class RDBMCounterStore

java.lang.Object
  extended byorg.jasig.portal.utils.RDBMCounterStore
All Implemented Interfaces:
ICounterStore

public class RDBMCounterStore
extends java.lang.Object
implements ICounterStore

A reference implementation for the counter store

Version:
$Revision: 1.8 $
Author:
George Lindholm, george.lindholm@ubc.ca, Peter Kharchenko

Constructor Summary
RDBMCounterStore()
           
 
Method Summary
 void createCounter(java.lang.String counterName)
          Create a new coutner
 int getIncrementIntegerId(java.lang.String counterName)
          Obtain current coutner value and increment it.
 void setCounter(java.lang.String counterName, int value)
          Reset a value of a counter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMCounterStore

public RDBMCounterStore()
Method Detail

createCounter

public void createCounter(java.lang.String counterName)
                   throws java.lang.Exception
Description copied from interface: ICounterStore
Create a new coutner

Specified by:
createCounter in interface ICounterStore
Parameters:
counterName - a name for the new counter
Throws:
java.lang.Exception - if an error occurs

setCounter

public void setCounter(java.lang.String counterName,
                       int value)
                throws java.lang.Exception
Description copied from interface: ICounterStore
Reset a value of a counter.

Specified by:
setCounter in interface ICounterStore
Parameters:
counterName - a counter name
value - a new counter value
Throws:
java.lang.Exception - if an error occurs

getIncrementIntegerId

public int getIncrementIntegerId(java.lang.String counterName)
                          throws java.lang.Exception
Description copied from interface: ICounterStore
Obtain current coutner value and increment it.

Specified by:
getIncrementIntegerId in interface ICounterStore
Parameters:
counterName - a String value
Returns:
an int value
Throws:
java.lang.Exception - if an error occurs

uPortal 2.3.2
API Documentation