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 DatabaseConnectionpublic String getDatabaseProductName() throws DatabaseException
getDatabaseProductName in interface DatabaseConnectionDatabaseExceptionpublic String getDatabaseProductVersion() throws DatabaseException
getDatabaseProductVersion in interface DatabaseConnectionDatabaseExceptionpublic int getDatabaseMajorVersion()
throws DatabaseException
getDatabaseMajorVersion in interface DatabaseConnectionDatabaseExceptionpublic int getDatabaseMinorVersion()
throws DatabaseException
getDatabaseMinorVersion in interface DatabaseConnectionDatabaseExceptionpublic String getURL()
getURL in interface DatabaseConnectionpublic String getConnectionUserName()
getConnectionUserName in interface DatabaseConnectionpublic Connection getWrappedConnection()
public void clearWarnings()
throws DatabaseException
DatabaseExceptionpublic void close()
throws DatabaseException
close in interface DatabaseConnectionDatabaseExceptionpublic void commit()
throws DatabaseException
commit in interface DatabaseConnectionDatabaseExceptionpublic Statement createStatement() throws DatabaseException
DatabaseExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseExceptionpublic boolean getAutoCommit()
throws DatabaseException
getAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic String getCatalog() throws DatabaseException
getCatalog in interface DatabaseConnectionDatabaseExceptionpublic int getHoldability()
throws DatabaseException
DatabaseExceptionpublic DatabaseMetaData getMetaData() throws DatabaseException
DatabaseExceptionpublic int getTransactionIsolation()
throws DatabaseException
DatabaseExceptionpublic Map<String,Class<?>> getTypeMap() throws DatabaseException
DatabaseExceptionpublic SQLWarning getWarnings() throws DatabaseException
DatabaseExceptionpublic boolean isClosed()
throws DatabaseException
isClosed in interface DatabaseConnectionDatabaseExceptionpublic boolean isReadOnly()
throws DatabaseException
DatabaseExceptionpublic String nativeSQL(String sql) throws DatabaseException
nativeSQL in interface DatabaseConnectionDatabaseExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseExceptionpublic CallableStatement prepareCall(String sql) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws DatabaseException
DatabaseExceptionpublic PreparedStatement prepareStatement(String sql) throws DatabaseException
DatabaseExceptionpublic void releaseSavepoint(Savepoint savepoint) throws DatabaseException
DatabaseExceptionpublic void rollback()
throws DatabaseException
rollback in interface DatabaseConnectionDatabaseExceptionpublic void rollback(Savepoint savepoint) throws DatabaseException
DatabaseExceptionpublic void setAutoCommit(boolean autoCommit)
throws DatabaseException
setAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic void setCatalog(String catalog) throws DatabaseException
DatabaseExceptionpublic void setHoldability(int holdability)
throws DatabaseException
DatabaseExceptionpublic void setReadOnly(boolean readOnly)
throws DatabaseException
DatabaseExceptionpublic Savepoint setSavepoint() throws DatabaseException
DatabaseExceptionpublic Savepoint setSavepoint(String name) throws DatabaseException
DatabaseExceptionpublic void setTransactionIsolation(int level)
throws DatabaseException
DatabaseExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws DatabaseException
DatabaseExceptionpublic Connection getUnderlyingConnection()
Copyright © 2018 Liquibase.org. All rights reserved.