public class DBHandler extends Object
| Constructor and Description |
|---|
DBHandler() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
getConnection()
This method returns a Database connection to the callee.
|
static void |
returnConnection(Connection connection,
Statement statement)
This method releases the resources of the connection and the statement
|
public static Connection getConnection() throws DatabaseConnectionException
DatabaseConnectionException - - Throws a runtime exception.public static void returnConnection(Connection connection, Statement statement) throws DatabaseConnectionException
connection - The existing connection object to be closedstatement - The Statement object that needs to be closed.DatabaseConnectionException - - Throws a runtime exception.Copyright © 2015–2017 eGovernments Foundation. All rights reserved.