All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.database.DatabaseConnection Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.database;

import liquibase.exception.DatabaseException;

/**
 * A liquibase abstraction over the normal Connection that is available in
 * java.sql. This interface allows wrappers and aspects over the basic 
 * connection.
 * 
 */
public interface DatabaseConnection {

    public void close() throws DatabaseException;

    public void commit() throws DatabaseException;

    public boolean getAutoCommit() throws DatabaseException;

    public String getCatalog() throws DatabaseException;

    public String nativeSQL(String sql) throws DatabaseException;

    public void rollback() throws DatabaseException;

    public void setAutoCommit(boolean autoCommit) throws DatabaseException;

    String getDatabaseProductName() throws DatabaseException;

    String getDatabaseProductVersion() throws DatabaseException;

    int getDatabaseMajorVersion() throws DatabaseException;

    int getDatabaseMinorVersion() throws DatabaseException;

    String getURL();

    String getConnectionUserName();

    boolean isClosed() throws DatabaseException;

    void attached(Database database);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy