org.jasig.portal.utils
Class RDBMCounterStore

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

Deprecated. Use PooledCounterStore instead

@Deprecated
public class RDBMCounterStore
extends Object
implements ICounterStore

A reference implementation for the counter store

Version:
$Revision: 19776 $
Author:
George Lindholm, george.lindholm@ubc.ca, Peter Kharchenko pkharchenko@interactivebusiness.com", Eric Dalquist edalquist@unicon.net

Constructor Summary
RDBMCounterStore()
          Deprecated.  
 
Method Summary
 void createCounter(String counterName)
          Deprecated. Creates a new counter with an initial value of 0.
 int getIncrementIntegerId(String counterName)
          Deprecated. Gets the next number in the sequence.
 void setCounter(String counterName, int value)
          Deprecated. Sets the counter to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMCounterStore

public RDBMCounterStore()
Deprecated. 
Method Detail

createCounter

public void createCounter(String counterName)
                   throws Exception
Deprecated. 
Creates a new counter with an initial value of 0. Does not check to see if the counter already exists.

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

setCounter

public void setCounter(String counterName,
                       int value)
                throws Exception
Deprecated. 
Sets the counter to the specified value. Does not check to make sure the counter already exists.

Specified by:
setCounter in interface ICounterStore
Parameters:
counterName - a counter name
value - a new counter value
Throws:
Exception - if an error occurs
See Also:
ICounterStore.setCounter(java.lang.String, int)

getIncrementIntegerId

public int getIncrementIntegerId(String counterName)
                          throws Exception
Deprecated. 
Gets the next number in the sequence. If the counter does not exist it is first created.

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


Copyright © 2010 Jasig. All Rights Reserved.