public final class DatabaseSingleton extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
DatabaseSingleton.DatabaseSingletonHolder
Holder
|
Modifier and Type | Field and Description |
---|---|
private DOIDbDataAccessService |
das
DOI db access.
|
Modifier | Constructor and Description |
---|---|
private |
DatabaseSingleton()
Initialize the DOI singleton.
|
Modifier and Type | Method and Description |
---|---|
DOIDbDataAccessService |
getDatabaseAccess()
Returns the database access.
|
static DatabaseSingleton |
getInstance()
Returns the instance
|
void |
init(String dbUrl,
String dbUser,
String dbPwd,
Map<String,Integer> options)
Initialize the DOI database.
|
private final DOIDbDataAccessService das
public static DatabaseSingleton getInstance()
public void init(String dbUrl, String dbUser, String dbPwd, Map<String,Integer> options)
dbUrl
- database URLdbUser
- database userdbPwd
- database passwordoptions
- database optionspublic DOIDbDataAccessService getDatabaseAccess()
Copyright © 2017–2020 CNES. All rights reserved.