org.shiftone.exq.impl.connection
Class ConnectionBuilderImpl
java.lang.Object
org.shiftone.exq.ConnectionBuilder
org.shiftone.exq.impl.connection.ConnectionBuilderImpl
- public class ConnectionBuilderImpl
- extends ConnectionBuilder
This class is typically used (via the ConnectionBuilder interface) by the
applicaion code to obtain a new connection to the database.
Each instance of this class will manage it's own cache of metadata. Instances do
not share data, which means that a given instance will only need to load config
data about obtaining a particular conection once. If however two instances are
created (by calling ConnectionBuilder.newInstace() more than once, then seperate caches
will be used and the config data will not be shared.
Instances of this class are expected to be thread safe.
- Author:
- Jeff Drost
Method Summary |
java.sql.Connection |
getConnection(java.lang.String resourcePath)
Method getConnection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionBuilderImpl
public ConnectionBuilderImpl()
- Constructor ConnectionBuilderImpl
getConnection
public java.sql.Connection getConnection(java.lang.String resourcePath)
throws ConnectionException,
ConfigException
- Method getConnection
- Specified by:
getConnection
in class ConnectionBuilder
- Parameters:
resourcePath
-
- Throws:
ConfigException
ConnectionException