public class JdbcUtils extends Object
| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnection(Connection conn,
org.slf4j.Logger logger) |
static void |
closePreparedStatement(PreparedStatement stmt,
org.slf4j.Logger logger) |
static ConnectionProvider |
createConnectionProvider(ConfiguredObject<?> parent,
JDBCSettings settings,
org.slf4j.Logger logger) |
static void |
dropTables(Connection connection,
org.slf4j.Logger logger,
Collection<String> tableNames) |
static boolean |
tableExists(String tableName,
Connection conn) |
public static void closeConnection(Connection conn, org.slf4j.Logger logger)
public static void closePreparedStatement(PreparedStatement stmt, org.slf4j.Logger logger)
public static boolean tableExists(String tableName, Connection conn) throws SQLException
SQLExceptionpublic static ConnectionProvider createConnectionProvider(ConfiguredObject<?> parent, JDBCSettings settings, org.slf4j.Logger logger) throws SQLException
SQLExceptionpublic static void dropTables(Connection connection, org.slf4j.Logger logger, Collection<String> tableNames)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.