public class DriverManagerConnectionProvider extends java.lang.Object implements ConnectionProvider
Constructor and Description |
---|
DriverManagerConnectionProvider(java.lang.String driverClass,
java.lang.String url) |
DriverManagerConnectionProvider(java.lang.String driverClass,
java.lang.String url,
java.lang.String username,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes a provider and releases all its resources.
|
void |
closeConnection(java.sql.Connection connection)
Dispose of a used
connection . |
java.sql.Connection |
getConnection()
Returns a connection from connection pool.
|
void |
init()
Initialize the connection provider.
|
void |
setAutoCommit(java.lang.Boolean autoCommit) |
void |
setDriverClass(java.lang.String driverClass) |
void |
setIsolation(java.lang.Integer isolation) |
void |
setPassword(java.lang.String password) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
public DriverManagerConnectionProvider(java.lang.String driverClass, java.lang.String url, java.lang.String username, java.lang.String password)
public DriverManagerConnectionProvider(java.lang.String driverClass, java.lang.String url)
public void setUrl(java.lang.String url)
public void setUsername(java.lang.String username)
public void setPassword(java.lang.String password)
public void setDriverClass(java.lang.String driverClass)
public void setIsolation(java.lang.Integer isolation)
public void setAutoCommit(java.lang.Boolean autoCommit)
public void init()
ConnectionProvider
init
in interface ConnectionProvider
public java.sql.Connection getConnection()
ConnectionProvider
getConnection
in interface ConnectionProvider
public void closeConnection(java.sql.Connection connection)
ConnectionProvider
connection
.closeConnection
in interface ConnectionProvider
public void close()
ConnectionProvider
close
in interface java.lang.AutoCloseable
close
in interface ConnectionProvider
Copyright © 2003-present Jodd Team