public class DBManager extends Object implements co.cask.cdap.etl.api.Destroyable
| Constructor and Description |
|---|
DBManager(ConnectionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
ensureJDBCDriverIsAvailable(Class<? extends Driver> jdbcDriverClass)
Ensures that the JDBC Driver specified in configuration is available and can be loaded.
|
boolean |
tableExists(Class<? extends Driver> jdbcDriverClass,
String tableName) |
void |
validateJDBCPluginPipeline(co.cask.cdap.etl.api.PipelineConfigurer pipelineConfigurer,
String jdbcPluginId) |
public DBManager(ConnectionConfig config)
public void validateJDBCPluginPipeline(co.cask.cdap.etl.api.PipelineConfigurer pipelineConfigurer,
String jdbcPluginId)
public void ensureJDBCDriverIsAvailable(Class<? extends Driver> jdbcDriverClass) throws IllegalAccessException, InstantiationException, SQLException
DriverManager if it is not already registered.public void destroy()
destroy in interface co.cask.cdap.etl.api.DestroyableCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.