liquibase.database
Interface DatabaseConnection
- All Known Implementing Classes:
- DerbyConnectionDelegate, HsqlConnectionDelegate, SQLConnectionDelegate, SybaseConnectionDelegate
public interface DatabaseConnection
A liquibase abstraction over the normal Connection that is available in
java.sql. This interface allows wrappers and aspects over the basic
connection.
- Author:
- Paul Keeble
- See Also:
SybaseConnectionDelegate,
SQLConnectionDelegate
|
Method Summary |
void |
close()
|
void |
commit()
|
java.sql.Statement |
createStatement()
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
boolean |
getAutoCommit()
|
java.lang.String |
getCatalog()
|
java.sql.DatabaseMetaData |
getMetaData()
|
java.sql.Connection |
getUnderlyingConnection()
|
java.lang.String |
nativeSQL(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
|
void |
rollback()
|
void |
setAutoCommit(boolean autoCommit)
|
close
void close()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
commit
void commit()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createStatement
java.sql.Statement createStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createStatement
java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createStatement
java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAutoCommit
boolean getAutoCommit()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCatalog
java.lang.String getCatalog()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getMetaData
java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
nativeSQL
java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareCall
java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareCall
java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareCall
java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareStatement
java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rollback
void rollback()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setAutoCommit
void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getUnderlyingConnection
java.sql.Connection getUnderlyingConnection()