public class JDBCHikariCPClient extends Object implements Client, HealthCheckable
| Constructor and Description |
|---|
JDBCHikariCPClient(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
execute(Connection connection,
String sql) |
ResultSet |
executeQuery(Connection connection,
String sql,
Object... params) |
int |
executeUpdate(Connection connection,
String sql,
Object... params) |
Connection |
getConnection()
Default getConnection is set in auto-commit.
|
Connection |
getConnection(boolean autoCommit) |
void |
registerChecker(HealthChecker healthChecker)
Register health checker.
|
void |
shutdown() |
public JDBCHikariCPClient(Properties properties)
public Connection getConnection() throws JDBCClientException
JDBCClientExceptionpublic Connection getConnection(boolean autoCommit) throws JDBCClientException
JDBCClientExceptionpublic void execute(Connection connection, String sql) throws JDBCClientException
JDBCClientExceptionpublic int executeUpdate(Connection connection, String sql, Object... params) throws JDBCClientException
JDBCClientExceptionpublic ResultSet executeQuery(Connection connection, String sql, Object... params) throws JDBCClientException
JDBCClientExceptionpublic void registerChecker(HealthChecker healthChecker)
HealthCheckableregisterChecker in interface HealthCheckablehealthChecker - HealthChecker to be registered.Copyright © 2021 The Apache Software Foundation. All rights reserved.