org.jasig.portal
Class ReferenceSequenceGenerator

java.lang.Object
  extended by org.jasig.portal.ReferenceSequenceGenerator
All Implemented Interfaces:
IOIDGenerator, ISequenceGenerator

Deprecated. Use PooledCounterStore instead

@Deprecated
public class ReferenceSequenceGenerator
extends Object
implements ISequenceGenerator

Version:
$Revision: 19776 $
Author:
Dan Ellentuck

Constructor Summary
ReferenceSequenceGenerator()
          Deprecated. ReferenceOIDGenerator constructor comment.
 
Method Summary
 void createCounter(String tableName)
          Deprecated.  
 String getNext()
          Deprecated.  
 String getNext(String table)
          Deprecated.  
 int getNextInt()
          Deprecated.  
 int getNextInt(String tableName)
          Deprecated. Increments the counter and returns the incremented value.
 void setCounter(String tableName, int newCounterValue)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceSequenceGenerator

public ReferenceSequenceGenerator()
Deprecated. 
ReferenceOIDGenerator constructor comment.

Method Detail

createCounter

public void createCounter(String tableName)
                   throws SQLException
Deprecated. 
Specified by:
createCounter in interface ISequenceGenerator
Parameters:
tableName - java.lang.String
Throws:
SQLException

getNext

public String getNext()
               throws Exception
Deprecated. 
Specified by:
getNext in interface IOIDGenerator
Returns:
java.lang.String
Throws:
Exception

getNext

public String getNext(String table)
               throws Exception
Deprecated. 
Specified by:
getNext in interface IOIDGenerator
Parameters:
table - String
Returns:
java.lang.String
Throws:
Exception

getNextInt

public int getNextInt()
               throws Exception
Deprecated. 
Specified by:
getNextInt in interface ISequenceGenerator
Returns:
int
Throws:
Exception

getNextInt

public int getNextInt(String tableName)
               throws Exception
Deprecated. 
Increments the counter and returns the incremented value. If the counter does not exist, creates and then increments it to verify that it has been created successfully.

Specified by:
getNextInt in interface ISequenceGenerator
Parameters:
tableName - java.lang.String
Returns:
int
Throws:
Exception

setCounter

public void setCounter(String tableName,
                       int newCounterValue)
                throws Exception
Deprecated. 
Specified by:
setCounter in interface ISequenceGenerator
Parameters:
tableName - java.lang.String
newCounterValue - int
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.