org.jasig.portal
Interface ISequenceGenerator

All Superinterfaces:
IOIDGenerator
All Known Implementing Classes:
ReferenceSequenceGenerator

Deprecated. use ICounterStore instead

@Deprecated
public interface ISequenceGenerator
extends IOIDGenerator

An interface for returning sequences derived from named counters. The following methods are devoted to creating and using these counters, which can be used as oids.

createCounter(String name) getNextInt() getNextInt(String name) setCounter(String name)

ISequenceGenerator inherits the following more general methods from IOIDGenerator, which return Strings:

getNext() getNext(String name)

Version:
$Revision: 19776 $
Author:
Dan Ellentuck

Method Summary
 void createCounter(String name)
          Deprecated.  
 int getNextInt()
          Deprecated.  
 int getNextInt(String name)
          Deprecated.  
 void setCounter(String name, int newValue)
          Deprecated.  
 
Methods inherited from interface org.jasig.portal.IOIDGenerator
getNext, getNext
 

Method Detail

createCounter

void createCounter(String name)
                   throws Exception
Deprecated. 
Parameters:
name - java.lang.String
Throws:
Exception

getNextInt

int getNextInt()
               throws Exception
Deprecated. 
Returns:
int
Throws:
Exception - The exception description.

getNextInt

int getNextInt(String name)
               throws Exception
Deprecated. 
Parameters:
name - java.lang.String
Returns:
int
Throws:
Exception - The exception description.

setCounter

void setCounter(String name,
                int newValue)
                throws Exception
Deprecated. 
Parameters:
name - java.lang.String
newValue - int
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.