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 ConnectiongetConnection(DatabaseConfiguration databaseConfiguration)Get a connection form the connection pool.static StringgetDatabaseUrl(DatabaseConfiguration dbConfig)static SQLiteConnectionManagergetInstance()Create a new instance of this connection manager.SQLTypegetType()Get the SQL Database type.voidshutdown()booleantestConnection(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()
-
-