Class SQLiteConnectionManager
- java.lang.Object
-
- org.openrefine.extension.database.sqlite.SQLiteConnectionManager
-
public class SQLiteConnectionManager extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection(DatabaseConfiguration databaseConfiguration)
Get a connection form the connection pool.static String
getDatabaseUrl(DatabaseConfiguration dbConfig)
static SQLiteConnectionManager
getInstance()
Create a new instance of this connection manager.SQLType
getType()
Get the SQL Database type.void
shutdown()
boolean
testConnection(DatabaseConfiguration dbConfig)
testConnection
-
-
-
Method Detail
-
getInstance
public static SQLiteConnectionManager getInstance()
Create a new instance of this connection manager.- Returns:
- an instance of the manager
-
getDatabaseUrl
public static String getDatabaseUrl(DatabaseConfiguration dbConfig)
-
getType
public SQLType getType()
Get the SQL Database type.- Returns:
- the type
-
testConnection
public boolean testConnection(DatabaseConfiguration dbConfig) throws DatabaseServiceException
testConnection- Parameters:
dbConfig
-- Returns:
- boolean
- Throws:
DatabaseServiceException
-
getConnection
public Connection getConnection(DatabaseConfiguration databaseConfiguration) throws DatabaseServiceException
Get a connection form the connection pool.- Returns:
- connection from the pool
- Throws:
DatabaseServiceException
-
shutdown
public void shutdown()
-
-