Package nxt.db.pool
Class H2ConnectionPool
- java.lang.Object
-
- nxt.db.pool.H2ConnectionPool
-
- All Implemented Interfaces:
ConnectionPool
public class H2ConnectionPool extends java.lang.Object implements ConnectionPool
-
-
Constructor Summary
Constructors Constructor Description H2ConnectionPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
getConnection()
void
initialize(java.lang.String dbUrl, java.lang.String dbUsername, java.lang.String dbPassword, int maxConnections, int loginTimeout)
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String dbUrl, java.lang.String dbUsername, java.lang.String dbPassword, int maxConnections, int loginTimeout)
- Specified by:
initialize
in interfaceConnectionPool
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfaceConnectionPool
- Throws:
java.sql.SQLException
-
-