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 user,
String password,
String jdbcDriverClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
createSchema() |
protected void |
createTable(String... schemaSqls) |
void |
destroy() |
Connection |
getConnection() |
String |
getPassword() |
String |
getUser() |
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 |
setPassword(String password) |
void |
setSqlProvider(SQLProvider sqlProvider) |
void |
setUser(String user) |
void |
start() |
void |
stop() |
protected Connection connection
protected SQLProvider sqlProvider
public AbstractJDBCDriver()
public AbstractJDBCDriver(SQLProvider sqlProvider, String jdbcConnectionUrl, String user, String password, 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 String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public void setJdbcDriverClass(String jdbcDriverClass)
public void setDataSource(DataSource dataSource)
public void setNetworkTimeout(Executor executor, int milliseconds)
Copyright © 2019 JBoss by Red Hat. All rights reserved.