Sha256: d6376cb73f7be24aea0874aa42020fa0974fc382f788ee6cd5cb3aef542e7bbf

Contents?: true

Size: 890 Bytes

Versions: 26

Compression:

Stored size: 890 Bytes

Contents

# frozen_string_literal: true

module ArJdbc
  module Abstract
    module ConnectionManagement

      # @override
      def active?
        return unless @connection
        @connection.active?
      end

      def really_valid?
        return unless @connection
        @connection.really_valid?
      end

      # @override
      def reconnect!
        super # clear_cache! && reset_transaction
        @connection.reconnect! # handles adapter.configure_connection
      end

      # @override
      def disconnect!
        super # clear_cache! && reset_transaction
        return unless @connection
        @connection.disconnect!
      end

      # @override
      # def verify!(*ignored)
      #  if @connection && @connection.jndi?
      #    # checkout call-back does #reconnect!
      #  else
      #    reconnect! unless active? # super
      #  end
      # end

    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
activerecord-jdbc-alt-adapter-61.3.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-70.2.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-70.2-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-61.3-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-70.1.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-70.0.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-70.1-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-70.0.0.rc2-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-60.3.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-61.2.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-70.0.0.rc1-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-70.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-70.0.pre-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-61.2-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-60.2.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-61.1.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-61.1-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-adapter-60.4-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-61.0.0-java lib/arjdbc/abstract/connection_management.rb
activerecord-jdbc-alt-adapter-60.1.0-java lib/arjdbc/abstract/connection_management.rb