public interface ConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection(ConnectionParams params)
Gets the connection by ConnectionParams.
|
Connection |
getConnection(String name)
Gets the connection by name.
|
boolean |
isReadyToCommit(Connection con)
Checks if connection is ready to commit.
|
void |
releaseConnection(Connection con)
Releases connection.
|
Connection getConnection(ConnectionParams params) throws Exception
params - the ConnectionParamsException - in case of any errorConnection getConnection(String name)
throws Exception
name - the nameException - in case of any errorboolean isReadyToCommit(Connection con)
con - the connectionvoid releaseConnection(Connection con)
con - the connectionCopyright © 2010-2020 Toolsverse. All Rights Reserved.