public class JdbcConnectionResourceImpl extends Object implements JdbcConnectionResource, org.apache.uima.resource.SharedResourceObject
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_DRIVER_CLASS
JDBC driver ClassName.
|
static String |
PARAM_ISOLATION
Transaction isolation level.
|
static String |
PARAM_KEEP_ALIVE
Flag that determines whether to keep JDBC connection open no matter what.
|
static String |
PARAM_PASSWORD
Password for db authentication.
|
static String |
PARAM_URL
JDBC URL that specifies db network location and db name.
|
static String |
PARAM_USERNAME
Username for db authentication.
|
Constructor and Description |
---|
JdbcConnectionResourceImpl() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Gets the JDBC connection.
|
void |
load(org.apache.uima.resource.DataResource dr) |
public static final String PARAM_DRIVER_CLASS
public static final String PARAM_URL
public static final String PARAM_USERNAME
public static final String PARAM_PASSWORD
public static final String PARAM_KEEP_ALIVE
public static final String PARAM_ISOLATION
public void load(org.apache.uima.resource.DataResource dr) throws org.apache.uima.resource.ResourceInitializationException
load
in interface org.apache.uima.resource.SharedResourceObject
org.apache.uima.resource.ResourceInitializationException
public Connection getConnection()
JdbcConnectionResource
getConnection
in interface JdbcConnectionResource
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.