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