Sha256: 0950cdcd27810dbe191628b0a10ddac05532ef73862c4ef0c3bed34492455544

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

# encoding: utf-8

module LogStash module PluginMixins module Jdbc
  class WrappedDriver
    java_implements java.sql.Driver

    def initialize(drv)
      @driver = drv
    end

    java_signature 'boolean acceptsURL(String u) throws SQLException'
    def accepts_url(u)
      @driver.accepts_url(u)
    end

    java_signature 'Connection connect(String u, Properties p)'
    def connect(url, props)
      @driver.connect(url, props)
    end

    java_signature 'int getMajorVersion()'
    def get_major_version()
      @driver.get_major_version()
    end

    java_signature 'int getMinorVersion()'
    def get_minor_version()
      @driver.get_minor_version()
    end

    java_signature 'DriverPropertyInfo[] getPropertyInfo(String u, Properties p)'
    def get_property_info(url, props)
      @driver.get_property_info(url, props)
    end

    java_signature 'boolean jdbcCompliant()'
    def jdbc_compliant()
      @driver.jdbc_compliant
    end

    java_signature 'Logger getParentLogger() throws SQLFeatureNotSupportedException'
    def get_parent_logger()
      @driver.get_parent_logger
    end
  end
end end end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
logstash-input-jdbc-4.3.19 lib/logstash/plugin_mixins/jdbc/wrapped_driver.rb
logstash-input-jdbc-4.3.18 lib/logstash/plugin_mixins/jdbc/wrapped_driver.rb
logstash-input-jdbc-4.3.17 lib/logstash/plugin_mixins/jdbc/wrapped_driver.rb
logstash-input-jdbc-4.3.16 lib/logstash/plugin_mixins/jdbc/wrapped_driver.rb
logstash-input-jdbc-4.3.14 lib/logstash/plugin_mixins/jdbc/wrapped_driver.rb