org.shiftone.exq
Class ConnectionBuilder

java.lang.Object
  extended byorg.shiftone.exq.ConnectionBuilder
Direct Known Subclasses:
ConnectionBuilderImpl

public abstract class ConnectionBuilder
extends java.lang.Object

This interface provides application code with a way to obtain a database connection.

Implementations of this interface are expected to be thread safe.

It is recommended that a reference be keep to an instance of concrete implementation of this interface rather than to call newInstance() each time an instance is needed.

Author:
Jeff Drost

Constructor Summary
ConnectionBuilder()
           
 
Method Summary
abstract  java.sql.Connection getConnection(java.lang.String resourcePath)
          Method getConnection
static ConnectionBuilder newInstance()
          Method newInstance
static ConnectionBuilder newInstance(java.lang.ClassLoader classLoader)
          Method newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionBuilder

public ConnectionBuilder()
Method Detail

getConnection

public abstract java.sql.Connection getConnection(java.lang.String resourcePath)
                                           throws QException
Method getConnection

Parameters:
resourcePath -
Throws:
QException

newInstance

public static ConnectionBuilder newInstance()
                                     throws QException
Method newInstance

Throws:
QException

newInstance

public static ConnectionBuilder newInstance(java.lang.ClassLoader classLoader)
                                     throws QException
Method newInstance

Throws:
QException