public class JdbcConnectionResourceImpl extends java.lang.Object implements JdbcConnectionResource
Modifier and Type | Field and Description |
---|---|
private java.sql.Connection |
iv_conn |
private Logger |
iv_logger |
static java.lang.String |
PARAM_DRIVER_CLASS
JDBC driver ClassName.
|
static java.lang.String |
PARAM_ISOLATION
Transaction isolation level.
|
static java.lang.String |
PARAM_KEEP_ALIVE
Flag that determines whether to keep JDBC connection open no matter what.
|
static java.lang.String |
PARAM_PASSWORD
Password for db authentication.
|
static java.lang.String |
PARAM_URL
JDBC URL that specifies db network location and db name.
|
static java.lang.String |
PARAM_USERNAME
Username for db authentication.
|
Constructor and Description |
---|
JdbcConnectionResourceImpl() |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection()
Gets the JDBC connection.
|
void |
load(DataResource dr) |
private Logger iv_logger
public static final java.lang.String PARAM_DRIVER_CLASS
public static final java.lang.String PARAM_URL
public static final java.lang.String PARAM_USERNAME
public static final java.lang.String PARAM_PASSWORD
public static final java.lang.String PARAM_KEEP_ALIVE
public static final java.lang.String PARAM_ISOLATION
private java.sql.Connection iv_conn
public void load(DataResource dr) throws ResourceInitializationException
ResourceInitializationException
public java.sql.Connection getConnection()
JdbcConnectionResource
getConnection
in interface JdbcConnectionResource