public class JDBCConnectionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JDBC_AUTOCOMMIT |
static String |
JDBC_FETCHSIZE |
static String |
JDBC_RESULTSETCONCUR |
static String |
JDBC_RESULTSETTYPE |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Removes a connection object form the pool.
|
Connection |
createConnection(OntopSQLCredentialSettings settings) |
Connection |
createConnection(String url,
String username,
String password)
Constructs a new database connection object and retrieves it.
|
void |
dispose()
Removes all the connections in the connection pool.
|
Connection |
getConnection(OntopSQLCredentialSettings settings) |
Connection |
getConnection(String url,
String username,
String password)
Retrieves the connection object.
|
static JDBCConnectionManager |
getJDBCConnectionManager()
Returns a single connection manager.
|
boolean |
isConnectionAlive()
Checks whether the connection is still alive.
|
public static final String JDBC_AUTOCOMMIT
public static final String JDBC_FETCHSIZE
public static final String JDBC_RESULTSETTYPE
public static final String JDBC_RESULTSETCONCUR
public static JDBCConnectionManager getJDBCConnectionManager()
public Connection createConnection(OntopSQLCredentialSettings settings) throws SQLException
SQLExceptionpublic Connection createConnection(String url, String username, String password) throws SQLException
SQLExceptionpublic Connection getConnection(String url, String username, String password) throws SQLException
SQLExceptionpublic void closeConnection()
throws SQLException
SQLExceptionpublic boolean isConnectionAlive()
throws SQLException
SQLExceptionpublic void dispose()
throws SQLException
SQLExceptionpublic Connection getConnection(OntopSQLCredentialSettings settings) throws SQLException
SQLExceptionCopyright © 2009–2020 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.