public class JdbcHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JdbcConfiguration |
jdbcConfiguration |
| Constructor and Description |
|---|
JdbcHelper(JdbcConfiguration jdbcConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeQuietly(Connection connection) |
protected void |
closeQuietly(ResultSet resultSet) |
protected void |
closeQuietly(Statement statement) |
void |
createSchema(String schemaName) |
protected Driver |
getJdbcDriver() |
protected Connection |
openConnection() |
protected void |
registerDriver() |
String |
runSelectOnString(String sql) |
int |
runUpdate(String sql) |
protected JdbcConfiguration jdbcConfiguration
public JdbcHelper(JdbcConfiguration jdbcConfiguration)
public void createSchema(String schemaName)
public int runUpdate(String sql)
protected Connection openConnection() throws SQLException
SQLExceptionprotected void closeQuietly(Statement statement)
protected void closeQuietly(Connection connection)
protected void closeQuietly(ResultSet resultSet)
protected void registerDriver()
protected Driver getJdbcDriver()
Copyright © 2004–2019 CodeLutin. All rights reserved.