|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.util.jdbc.JdbcUtils
public class JdbcUtils
Utility class for dealing with jdbc connections.
| Method Summary | |
|---|---|
static void |
closeConnection(java.sql.Connection connection)
Safely closes this connection. |
static void |
closeResultSet(java.sql.ResultSet resultSet)
Safely closes this resultSet. |
static void |
closeStatement(java.sql.Statement statement)
Safely closes this statement. |
static java.sql.Connection |
openConnection(javax.sql.DataSource dataSource)
Opens a new connection from this dataSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.sql.Connection openConnection(javax.sql.DataSource dataSource)
throws FlywayException
dataSource - The dataSource to obtain the connection from.
FlywayException - when the connection could not be opened.public static void closeConnection(java.sql.Connection connection)
connection - The connection to close.public static void closeStatement(java.sql.Statement statement)
statement - The statement to close.public static void closeResultSet(java.sql.ResultSet resultSet)
resultSet - The resultSet to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||