Class JdbcConnectionFromPool

java.lang.Object
liquibase.database.jvm.JdbcConnection
org.keycloak.models.map.storage.jpa.liquibase.connection.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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 class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface liquibase.database.DatabaseConnection

    supports
  • Constructor Details

    • JdbcConnectionFromPool

      public JdbcConnectionFromPool(Connection connection)
  • Method Details

    • 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