org.apache.ctakes.core.resource
Class JdbcConnectionResourceImpl

java.lang.Object
  extended by org.apache.ctakes.core.resource.JdbcConnectionResourceImpl
All Implemented Interfaces:
JdbcConnectionResource, org.apache.uima.resource.SharedResourceObject

public class JdbcConnectionResourceImpl
extends Object
implements JdbcConnectionResource, org.apache.uima.resource.SharedResourceObject

Implementation of JdbcConnectionResource. Uses the WrappedConnection from the MIR Utility project mostly for it's auto-reconnect capability.

Author:
Mayo Clinic

Field Summary
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 Summary
JdbcConnectionResourceImpl()
           
 
Method Summary
 Connection getConnection()
          Gets the JDBC connection.
 void load(org.apache.uima.resource.DataResource dr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_DRIVER_CLASS

public static final String PARAM_DRIVER_CLASS
JDBC driver ClassName.

See Also:
Constant Field Values

PARAM_URL

public static final String PARAM_URL
JDBC URL that specifies db network location and db name.

See Also:
Constant Field Values

PARAM_USERNAME

public static final String PARAM_USERNAME
Username for db authentication.

See Also:
Constant Field Values

PARAM_PASSWORD

public static final String PARAM_PASSWORD
Password for db authentication.

See Also:
Constant Field Values

PARAM_KEEP_ALIVE

public static final String PARAM_KEEP_ALIVE
Flag that determines whether to keep JDBC connection open no matter what.

See Also:
Constant Field Values

PARAM_ISOLATION

public static final String PARAM_ISOLATION
Transaction isolation level. Value should be a static fieldname from java.sql.Connection such as TRANSACTION_READ_UNCOMMITTED. This parameter is optional.

See Also:
Constant Field Values
Constructor Detail

JdbcConnectionResourceImpl

public JdbcConnectionResourceImpl()
Method Detail

load

public void load(org.apache.uima.resource.DataResource dr)
          throws org.apache.uima.resource.ResourceInitializationException
Specified by:
load in interface org.apache.uima.resource.SharedResourceObject
Throws:
org.apache.uima.resource.ResourceInitializationException

getConnection

public Connection getConnection()
Description copied from interface: JdbcConnectionResource
Gets the JDBC connection.

Specified by:
getConnection in interface JdbcConnectionResource


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.