public class ConnectionHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionHelper.NaiveConnectionHelperException |
Constructor and Description |
---|
ConnectionHelper(Map<String,String> prop) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection()
Closes a DB connection
|
Connection |
getConnection()
Returns a connection based on pre-supplied connectivity details if
current connection is closed or corrupted |
public ConnectionHelper(Map<String,String> prop) throws ConnectionHelper.NaiveConnectionHelperException
public Connection getConnection() throws ConnectionHelper.NaiveConnectionHelperException
ConnectionHelper.NaiveConnectionHelperException
public void closeConnection()
Copyright © 2012. All Rights Reserved.