|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.jms.persistence.SeedGenerator
public class SeedGenerator
This class generates seeds
| Constructor Summary | |
|---|---|
protected |
SeedGenerator()
Constructor |
| Method Summary | |
|---|---|
void |
close()
Issue a close, which in this case invalidates the singleton TODO: do we really need this |
static SeedGenerator |
initialise()
Initialise the seed generator |
static SeedGenerator |
instance()
Returns the singleton instance. |
long |
next(java.sql.Connection connection,
java.lang.String name)
Return the next seed value for the given name |
void |
removeAll(java.sql.Connection connection)
Remove all seeds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SeedGenerator()
connectionPool - the connection poolmanager - the transaction manager| Method Detail |
|---|
public static SeedGenerator instance()
public static SeedGenerator initialise()
public long next(java.sql.Connection connection,
java.lang.String name)
throws PersistenceException
connection - - the connection usedseed - - the name of the seed
PersistenceException - - if the seed cannot be retrieved
public void removeAll(java.sql.Connection connection)
throws PersistenceException
connection - - the connection to use
PersistenceException - - is thrown if the request does not
completepublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||