public class JdbcConnection extends Object implements DatabaseConnection
Constructor and Description |
---|
JdbcConnection(Connection connection) |
public JdbcConnection(Connection connection)
public void attached(Database database)
attached
in interface DatabaseConnection
public String getDatabaseProductName() throws DatabaseException
getDatabaseProductName
in interface DatabaseConnection
DatabaseException
public 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 String getURL()
getURL
in interface DatabaseConnection
public String getConnectionUserName()
getConnectionUserName
in interface DatabaseConnection
public 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 Statement createStatement() throws DatabaseException
DatabaseException
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public boolean getAutoCommit() throws DatabaseException
getAutoCommit
in interface DatabaseConnection
DatabaseException
public String getCatalog() throws DatabaseException
getCatalog
in interface DatabaseConnection
DatabaseException
public int getHoldability() throws DatabaseException
DatabaseException
public DatabaseMetaData getMetaData() throws DatabaseException
DatabaseException
public int getTransactionIsolation() throws DatabaseException
DatabaseException
public Map<String,Class<?>> getTypeMap() throws DatabaseException
DatabaseException
public SQLWarning getWarnings() throws DatabaseException
DatabaseException
public boolean isClosed() throws DatabaseException
isClosed
in interface DatabaseConnection
DatabaseException
public boolean isReadOnly() throws DatabaseException
DatabaseException
public String nativeSQL(String sql) throws DatabaseException
nativeSQL
in interface DatabaseConnection
DatabaseException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public CallableStatement prepareCall(String sql) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws DatabaseException
DatabaseException
public PreparedStatement prepareStatement(String sql) throws DatabaseException
DatabaseException
public void releaseSavepoint(Savepoint savepoint) throws DatabaseException
DatabaseException
public void rollback() throws DatabaseException
rollback
in interface DatabaseConnection
DatabaseException
public void rollback(Savepoint savepoint) throws DatabaseException
DatabaseException
public void setAutoCommit(boolean autoCommit) throws DatabaseException
setAutoCommit
in interface DatabaseConnection
DatabaseException
public void setCatalog(String catalog) throws DatabaseException
DatabaseException
public void setHoldability(int holdability) throws DatabaseException
DatabaseException
public void setReadOnly(boolean readOnly) throws DatabaseException
DatabaseException
public Savepoint setSavepoint() throws DatabaseException
DatabaseException
public Savepoint setSavepoint(String name) throws DatabaseException
DatabaseException
public void setTransactionIsolation(int level) throws DatabaseException
DatabaseException
public void setTypeMap(Map<String,Class<?>> map) throws DatabaseException
DatabaseException
public Connection getUnderlyingConnection()
Copyright © 2017 Liquibase.org. All rights reserved.