public abstract class AbstractJDBCDriver extends Object
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection |
protected SQLProvider |
sqlProvider |
Constructor and Description |
---|
AbstractJDBCDriver() |
AbstractJDBCDriver(Connection connection,
SQLProvider sqlProvider) |
AbstractJDBCDriver(DataSource dataSource,
SQLProvider provider) |
AbstractJDBCDriver(SQLProvider sqlProvider,
String jdbcConnectionUrl,
String jdbcDriverClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
createSchema() |
protected void |
createTable(String... schemaSqls) |
void |
destroy() |
Connection |
getConnection() |
protected abstract void |
prepareStatements() |
void |
setConnection(Connection connection) |
void |
setDataSource(DataSource dataSource) |
void |
setJdbcConnectionUrl(String jdbcConnectionUrl) |
void |
setJdbcDriverClass(String jdbcDriverClass) |
void |
setNetworkTimeout(Executor executor,
int milliseconds) |
void |
setSqlProvider(SQLProvider sqlProvider) |
void |
start() |
void |
stop() |
protected Connection connection
protected SQLProvider sqlProvider
public AbstractJDBCDriver()
public AbstractJDBCDriver(SQLProvider sqlProvider, String jdbcConnectionUrl, String jdbcDriverClass)
public AbstractJDBCDriver(DataSource dataSource, SQLProvider provider)
public AbstractJDBCDriver(Connection connection, SQLProvider sqlProvider)
public void start() throws SQLException
SQLException
public void stop() throws SQLException
SQLException
protected abstract void prepareStatements() throws SQLException
SQLException
protected abstract void createSchema() throws SQLException
SQLException
protected final void createTable(String... schemaSqls) throws SQLException
SQLException
public Connection getConnection()
public final void setConnection(Connection connection)
public void setSqlProvider(SQLProvider sqlProvider)
public void setJdbcConnectionUrl(String jdbcConnectionUrl)
public void setJdbcDriverClass(String jdbcDriverClass)
public void setDataSource(DataSource dataSource)
public void setNetworkTimeout(Executor executor, int milliseconds)
Copyright © 2017 JBoss by Red Hat. All rights reserved.