public class LSIDGenerator extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORE_DB_STR
The name of the database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeDatabase()
Close the LSID database if opened.
|
int |
countRowsForCurrentAuthNamespace()
Return the number of rows in the LSID_GENERATOR table.
|
static LSIDGenerator |
getInstance()
returns a singleton instance of this class
|
KeplerLSID |
getNewLSID()
Return a new LSID using the Authority and Namespace for this Kepler
Instance and the NextObjectID for this instance with a revision number of
1.
|
static void |
insertRow(java.lang.String authority,
java.lang.String namespace,
long object,
long revision)
Insert a row into the LSID generator table.
|
KeplerLSID |
updateLsidRevision(KeplerLSID lsid)
Update the revision of a KeplerLSID.
|
public static final java.lang.String CORE_DB_STR
public static LSIDGenerator getInstance()
public KeplerLSID getNewLSID() throws java.lang.Exception
java.lang.Exceptionpublic KeplerLSID updateLsidRevision(KeplerLSID lsid)
lsid - public static void insertRow(java.lang.String authority, java.lang.String namespace, long object, long revision) throws java.lang.Exception
java.lang.Exceptionpublic int countRowsForCurrentAuthNamespace()
public void closeDatabase()