Class List Method List File List

# Class: VertxSqlClient::DatabaseMetadata

Inherits:
  Object
  - Object
  - VertxSqlClient::DatabaseMetadata
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb

## Overview

Contains static metadata about the backend database server

## Constant Summary

@@j_api_type =

      Object.new

## Class Method Summary (collapse)

- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)

## Instance Method Summary (collapse)

- - (String) full_version
  The full version string for the backend database server.
- - (Fixnum) major_version
  The major version of the backend database server.
- - (Fixnum) minor_version
  The minor version of the backend database server.
- - (String) product_name
  The product name of the backend database server.

## Class Method Details

### + (`Boolean`) accept?(obj)

Returns:

- (`Boolean`)

    17
    18
    19
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 17

    def @@j_api_type.accept?(obj)
      obj.class == DatabaseMetadata
    end

### + (`Object`) j_api_type

    26
    27
    28
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 26

    def self.j_api_type
      @@j_api_type
    end

### + (`Object`) j_class

    29
    30
    31
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 29

    def self.j_class
      Java::IoVertxSqlclientSpi::DatabaseMetadata.java_class
    end

### + (`Object`) unwrap(obj)

    23
    24
    25
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 23

    def @@j_api_type.unwrap(obj)
      obj.j_del
    end

### + (`Object`) wrap(obj)

    20
    21
    22
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 20

    def @@j_api_type.wrap(obj)
      DatabaseMetadata.new(obj)
    end

## Instance Method Details

### - (`String`) full_version

Returns The full version string for the backend database server. This may be useful for for parsing more subtle aspects of the version string. For simple information like database major and minor version, use #major_version and #minor_version instead.

Returns:

- (`String`) —
  The full version string for the backend database server. This may be useful for for parsing more subtle aspects of the version string. For simple information like database major and minor version, use #major_version and #minor_version instead.

Raises:

- (`ArgumentError`)

    40
    41
    42
    43
    44
    45
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 40

    def full_version
      if !block_given?
        return @j_del.java_method(:fullVersion, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling full_version()"
    end

### - (`Fixnum`) major_version

Returns The major version of the backend database server

Returns:

- (`Fixnum`) —
  The major version of the backend database server

Raises:

- (`ArgumentError`)

    47
    48
    49
    50
    51
    52
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 47

    def major_version
      if !block_given?
        return @j_del.java_method(:majorVersion, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling major_version()"
    end

### - (`Fixnum`) minor_version

Returns The minor version of the backend database server

Returns:

- (`Fixnum`) —
  The minor version of the backend database server

Raises:

- (`ArgumentError`)

    54
    55
    56
    57
    58
    59
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 54

    def minor_version
      if !block_given?
        return @j_del.java_method(:minorVersion, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling minor_version()"
    end

### - (`String`) product_name

Returns The product name of the backend database server

Returns:

- (`String`) —
  The product name of the backend database server

Raises:

- (`ArgumentError`)

    33
    34
    35
    36
    37
    38
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/database_metadata.rb', line 33

    def product_name
      if !block_given?
        return @j_del.java_method(:productName, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling product_name()"
    end