Package org.attribyte.sql.pool
Class JDBConnection
java.lang.Object
org.attribyte.sql.pool.JDBConnection
Immutable configuration for a database connection, including
the connection string or
DataSource, credentials,
test SQL, and timeout settings.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInitializes and creates an immutable connection configuration. -
Constructor Summary
ConstructorsConstructorDescriptionJDBConnection(String name, String user, String password, String connectionString, long createTimeoutMillis, String testSQL, long testIntervalMillis, boolean debug) Creates a connection with a connection string.JDBConnection(String name, String user, String password, DataSource datasource, long createTimeoutMillis, String testSQL, long testIntervalMillis, boolean debug) Creates a connection with aDataSource. -
Method Summary
-
Constructor Details
-
JDBConnection
public JDBConnection(String name, String user, String password, String connectionString, long createTimeoutMillis, String testSQL, long testIntervalMillis, boolean debug) Creates a connection with a connection string.- Parameters:
name- The connection name.user- The database user.password- The database password.connectionString- The database connection string.createTimeoutMillis- The connection create timeout.testSQL- The test SQL.testIntervalMillis- The test frequency.debug- Should debug information be recorded?
-
JDBConnection
public JDBConnection(String name, String user, String password, DataSource datasource, long createTimeoutMillis, String testSQL, long testIntervalMillis, boolean debug) Creates a connection with aDataSource.- Parameters:
name- The connection name.user- The database user.password- The database password.datasource- TheDataSource.createTimeoutMillis- The connection create timeout.testSQL- The test SQL.testIntervalMillis- The test frequency.debug- Should debug information be recorded?
-
-
Method Details