|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.figis.tmplugin.dbconnection.ConnectionPool
public class ConnectionPool
| Field Summary | |
|---|---|
static String |
dbJdbc
|
| Method Summary | |
|---|---|
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)
select |
ResultSet |
selectPrestatement(String query,
String term)
Select using preStatement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String dbJdbc
| Method Detail |
|---|
public static ConnectionPool getConnectionPool()
throws ConnectionPoolException
ConnectionPoolException
public Connection getConnection()
throws ConnectionPoolException,
SQLException
SQLException
ConnectionPoolExceptionpublic void releaseConnection(Connection con)
public boolean preStatement(String query,
ArrayList<String> terms,
PreparedStatement stmt)
stmtInsert - public boolean insertPreStatement(String query)
public ResultSet selectPreStatement(String query)
public ResultSet selectPrestatement(String query,
String term)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||