public interface EtlConnectionFactory extends ConnectionFactory
Modifier and Type | Method and Description |
---|---|
Connection |
addConnection(Connection con,
ConnectionParams params,
String name,
String defName)
Creates a new connection if needed and adds it to the map of named
connections.
|
Connection |
getConnection(ConnectionParams params,
boolean isNew)
Create and return new connection using given ConnectionParams.
|
Connection |
getConnection(String name,
boolean isNew)
Creates and returns a new connection by name.
|
ConnectionParams |
getConnectionParams(Connection conn)
Gets the connection params for the given connection.
|
ConnectionParams |
getConnectionParams(String name)
Gets the connection params by the given name.
|
void |
releaseConnections()
Releases all connections.
|
getConnection, getConnection, isReadyToCommit, releaseConnection
Connection getConnection(ConnectionParams params, boolean isNew) throws Exception
params
- the ConnectionParamsisNew
- boolena, if true always create new connectionException
- in case of any errorConnection getConnection(String name, boolean isNew) throws Exception
name
- the connection nameisNew
- boolean, if true creates new connectionException
- in case of any errorConnection addConnection(Connection con, ConnectionParams params, String name, String defName) throws Exception
Exception
ConnectionParams getConnectionParams(Connection conn)
conn
- the connectionConnectionParams getConnectionParams(String name)
name
- the namevoid releaseConnections()
Copyright © 2010-2020 Toolsverse. All Rights Reserved.