liquibase.database.jvm
public class JdbcConnection extends java.lang.Object implements DatabaseConnection
Constructor and Description |
---|
JdbcConnection(java.sql.Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
attached(Database database) |
void |
clearWarnings() |
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 |
equals(java.lang.Object obj) |
boolean |
getAutoCommit() |
java.lang.String |
getCatalog() |
java.lang.String |
getConnectionUserName() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
java.lang.String |
getDatabaseProductName() |
java.lang.String |
getDatabaseProductVersion() |
int |
getHoldability() |
java.sql.DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMap() |
java.sql.Connection |
getUnderlyingConnection() |
java.lang.String |
getURL() |
java.sql.SQLWarning |
getWarnings() |
java.sql.Connection |
getWrappedConnection()
Returns the connection that this Delegate is using.
|
int |
hashCode() |
boolean |
isClosed() |
boolean |
isReadOnly() |
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 |
releaseSavepoint(java.sql.Savepoint savepoint) |
void |
rollback() |
void |
rollback(java.sql.Savepoint savepoint) |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(java.lang.String catalog) |
void |
setHoldability(int holdability) |
void |
setReadOnly(boolean readOnly) |
java.sql.Savepoint |
setSavepoint() |
java.sql.Savepoint |
setSavepoint(java.lang.String name) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map) |
public void attached(Database database)
attached
in interface DatabaseConnection
public java.lang.String getDatabaseProductName() throws DatabaseException
getDatabaseProductName
in interface DatabaseConnection
DatabaseException
public java.lang.String getDatabaseProductVersion() throws DatabaseException
getDatabaseProductVersion
in interface DatabaseConnection
DatabaseException
public int getDatabaseMajorVersion() throws DatabaseException
getDatabaseMajorVersion
in interface DatabaseConnection
DatabaseException
public int getDatabaseMinorVersion() throws DatabaseException
getDatabaseMinorVersion
in interface DatabaseConnection
DatabaseException
public java.lang.String getURL()
getURL
in interface DatabaseConnection
public java.lang.String getConnectionUserName()
getConnectionUserName
in interface DatabaseConnection
public java.sql.Connection getWrappedConnection()
public void clearWarnings() throws DatabaseException
DatabaseException
public void close() throws DatabaseException
close
in interface DatabaseConnection
DatabaseException
public void commit() throws DatabaseException
commit
in interface DatabaseConnection
DatabaseException
public java.sql.Statement createStatement() throws DatabaseException
DatabaseException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public boolean getAutoCommit() throws DatabaseException
getAutoCommit
in interface DatabaseConnection
DatabaseException
public java.lang.String getCatalog() throws DatabaseException
getCatalog
in interface DatabaseConnection
DatabaseException
public int getHoldability() throws DatabaseException
DatabaseException
public java.sql.DatabaseMetaData getMetaData() throws DatabaseException
DatabaseException
public int getTransactionIsolation() throws DatabaseException
DatabaseException
public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws DatabaseException
DatabaseException
public java.sql.SQLWarning getWarnings() throws DatabaseException
DatabaseException
public boolean isClosed() throws DatabaseException
isClosed
in interface DatabaseConnection
DatabaseException
public boolean isReadOnly() throws DatabaseException
DatabaseException
public java.lang.String nativeSQL(java.lang.String sql) throws DatabaseException
nativeSQL
in interface DatabaseConnection
DatabaseException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames) throws DatabaseException
DatabaseException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws DatabaseException
DatabaseException
public void releaseSavepoint(java.sql.Savepoint savepoint) throws DatabaseException
DatabaseException
public void rollback() throws DatabaseException
rollback
in interface DatabaseConnection
DatabaseException
public void rollback(java.sql.Savepoint savepoint) throws DatabaseException
DatabaseException
public void setAutoCommit(boolean autoCommit) throws DatabaseException
setAutoCommit
in interface DatabaseConnection
DatabaseException
public void setCatalog(java.lang.String catalog) throws DatabaseException
DatabaseException
public void setHoldability(int holdability) throws DatabaseException
DatabaseException
public void setReadOnly(boolean readOnly) throws DatabaseException
DatabaseException
public java.sql.Savepoint setSavepoint() throws DatabaseException
DatabaseException
public java.sql.Savepoint setSavepoint(java.lang.String name) throws DatabaseException
DatabaseException
public void setTransactionIsolation(int level) throws DatabaseException
DatabaseException
public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws DatabaseException
DatabaseException
public java.sql.Connection getUnderlyingConnection()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object