Class Sequence
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- org.cilogon.oauth2.servlet.storage.sequence.Sequence
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Initializable
,Incrementable
- Direct Known Subclasses:
DerbySequence
,MySQLSequence
,PostgresSequence
public abstract class Sequence extends edu.uiuc.ncsa.security.storage.sql.SQLDatabase implements Incrementable
Created by Jeff Gaynor
on Jun 24, 2010 at 8:26:44 AM
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Sequence(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, SequenceTable sequenceTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createNew()
boolean
createNew(long initialValue)
This takes the place (or should) ofInitializable.createNew()
and passes along the first value of the newly created sequence.boolean
destroy()
SequenceTable
getSequenceTable()
boolean
init()
boolean
isCreated()
boolean
isDestroyed()
boolean
isInitialized()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cilogon.oauth2.servlet.util.Incrementable
nextValue
-
-
-
-
Constructor Detail
-
Sequence
protected Sequence(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, SequenceTable sequenceTable)
-
-
Method Detail
-
getSequenceTable
public SequenceTable getSequenceTable()
-
createNew
public boolean createNew(long initialValue)
Description copied from interface:Incrementable
This takes the place (or should) ofInitializable.createNew()
and passes along the first value of the newly created sequence. Using this method without a value takes whatever the underlying implementation deems fit for a first value should be.- Specified by:
createNew
in interfaceIncrementable
- Returns:
-
destroy
public boolean destroy()
- Specified by:
destroy
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
init
public boolean init()
- Specified by:
init
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
createNew
public boolean createNew()
- Specified by:
createNew
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
isCreated
public boolean isCreated()
- Specified by:
isCreated
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interfaceedu.uiuc.ncsa.security.core.Initializable
-
-