public class ConnectionPool extends Object
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
get a free connection or create a new one
|
static ConnectionPool |
getConnectionPool()
get connection pool
|
boolean |
insertPreStatement(String query) |
boolean |
preStatement(String query,
ArrayList<String> terms,
PreparedStatement stmt)
Update
|
void |
releaseConnection(Connection con)
Release the connection and put it in the queue
|
ResultSet |
selectPrestatement(String query,
String term)
Select using preStatement (using the same term for every parameter)
|
public static String dbJdbc
public static ConnectionPool getConnectionPool() throws ConnectionPoolException
ConnectionPoolExceptionpublic Connection getConnection() throws ConnectionPoolException, SQLException
SQLExceptionConnectionPoolExceptionpublic void releaseConnection(Connection con)
public boolean preStatement(String query, ArrayList<String> terms, PreparedStatement stmt)
stmtInsert - public boolean insertPreStatement(String query)
Copyright © 2016. All Rights Reserved.