public class JdbcConnector extends com.qwazr.library.AbstractPasswordLibrary implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
JdbcConnector.ConnectionPool |
| Modifier and Type | Field and Description |
|---|---|
String |
driver |
JdbcConnector.ConnectionPool |
pool |
String |
url |
String |
username |
| Constructor and Description |
|---|
JdbcConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.qwazr.utils.jdbc.Transaction |
getConnection(com.qwazr.utils.IOUtils.CloseableContext context) |
com.qwazr.utils.jdbc.Transaction |
getConnection(com.qwazr.utils.IOUtils.CloseableContext context,
boolean autoCommit) |
com.qwazr.utils.jdbc.Transaction |
getConnection(com.qwazr.utils.IOUtils.CloseableContext context,
boolean autoCommit,
int transactionIsolation) |
Integer |
getPoolNumActive()
The current number of active connections that have been allocated from
this connection pool.
|
Integer |
getPoolNumIdle()
The current number of idle connections that are waiting to be allocated
from this connection pool.
|
void |
load() |
public final String driver
public final String url
public final String username
public final JdbcConnector.ConnectionPool pool
public void load()
throws IllegalAccessException,
ClassNotFoundException,
InstantiationException
load in interface com.qwazr.library.LibraryInterfaceIllegalAccessExceptionClassNotFoundExceptionInstantiationExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic com.qwazr.utils.jdbc.Transaction getConnection(com.qwazr.utils.IOUtils.CloseableContext context)
throws SQLException
SQLExceptionpublic com.qwazr.utils.jdbc.Transaction getConnection(com.qwazr.utils.IOUtils.CloseableContext context,
boolean autoCommit)
throws SQLException
SQLExceptionpublic com.qwazr.utils.jdbc.Transaction getConnection(com.qwazr.utils.IOUtils.CloseableContext context,
boolean autoCommit,
int transactionIsolation)
throws SQLException
SQLExceptionpublic Integer getPoolNumActive()
public Integer getPoolNumIdle()
Copyright © 2017 QWAZR / Emmanuel Keller. All rights reserved.