Class JdbcConnectionFromPool

  • All Implemented Interfaces:
    AutoCloseable, liquibase.database.DatabaseConnection, liquibase.servicelocator.PrioritizedService

    public class JdbcConnectionFromPool
    extends liquibase.database.jvm.JdbcConnection
    Wrapper for JDBC connections retrieved from a connection pool. Such a connection would not be closed, but used within the current transaction context.
    Author:
    Alexander Schwartz
    • Field Summary

      • Fields inherited from class liquibase.database.jvm.JdbcConnection

        FILTER_CREDS, FILTER_CREDS_MYSQL_TO_OBFUSCATE, FILTER_CREDS_ORACLE_TO_OBFUSCATE, FILTER_CREDS_PASSWORD, FILTER_CREDS_PRIVATE_KEY_FILE, FILTER_CREDS_PRIVATE_KEY_FILE_PWD, FILTER_CREDS_PRIVATE_KEY_TO_BLANK, FILTER_CREDS_USER
      • Fields inherited from interface liquibase.servicelocator.PrioritizedService

        COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class liquibase.database.jvm.JdbcConnection

        attached, clearWarnings, commit, createStatement, createStatement, createStatement, equals, getAutoCommit, getCatalog, getConnectionUrl, getConnectionUserName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getHoldability, getMetaData, getPriority, getTransactionIsolation, getTypeMap, getUnderlyingConnection, getURL, getWarnings, getWrappedConnection, hashCode, isClosed, isReadOnly, nativeSQL, open, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, sanitizeUrl, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, supportsBatchUpdates
      • Methods inherited from interface liquibase.database.DatabaseConnection

        supports
    • Constructor Detail

      • JdbcConnectionFromPool

        public JdbcConnectionFromPool​(Connection connection)
    • Method Detail

      • close

        public void close()
                   throws liquibase.exception.DatabaseException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface liquibase.database.DatabaseConnection
        Overrides:
        close in class liquibase.database.jvm.JdbcConnection
        Throws:
        liquibase.exception.DatabaseException