Class List Method List File List

# Class: VertxSqlClient::Row

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

## Overview

Represents single row of the result set.

## Constant Summary

@@j_api_type =

      Object.new

## Class Method Summary (collapse)

- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) JSON_NULL
  The JSON null literal value.
- + (Object) unwrap(obj)
- + (Object) wrap(obj)

## Instance Method Summary (collapse)

- - (self) add_boolean(value = nil)
  Add a boolean value at the end of the tuple.
- - (self) add_buffer(value = nil)
  Add a buffer value at the end of the tuple.
- - (self) add_double(value = nil)
  Add a double value at the end of the tuple.
- - (self) add_float(value = nil)
  Add a float value at the end of the tuple.
- - (self) add_integer(value = nil)
  Add an integer value at the end of the tuple.
- - (self) add_long(value = nil)
  Add a long value at the end of the tuple.
- - (self) add_short(value = nil)
  Add a short value at the end of the tuple.
- - (self) add_string(value = nil)
  Add a string value at the end of the tuple.
- - (self) add_value(value = nil)
  Add an object value at the end of the tuple.
- - (void) clear
- - (Object) get(type = nil, pos = nil)
- - (true, false) get_boolean?(param_1 = nil)
  Get a boolean value at pos.
- - (::Vertx::Buffer) get_buffer(param_1 = nil)
  Get a buffer value at pos.
- - (Fixnum) get_column_index(name = nil)
  Get a column position for the given column name.
- - (String) get_column_name(pos = nil)
  Get a column name at pos.
- - (Float) get_double(param_1 = nil)
  Get a double value at pos.
- - (Float) get_float(param_1 = nil)
  Get a float value at pos.
- - (Fixnum) get_integer(param_1 = nil)
  Get an integer value at pos.
- - (Fixnum) get_long(param_1 = nil)
  Get a long value at pos.
- - (Fixnum) get_short(param_1 = nil)
  Get a short value at pos.
- - (String) get_string(param_1 = nil)
  Get a string value at pos.
- - (Object) get_value(param_1 = nil)
  Get an object value at pos.
- - (Fixnum) size
  The tuple size.

### Methods inherited from Tuple

of, tuple

## Class Method Details

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

Returns:

- (`Boolean`)

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

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

### + (`Object`) j_api_type

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

    def self.j_api_type
      @@j_api_type
    end

### + (`Object`) j_class

    32
    33
    34
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 32

    def self.j_class
      Java::IoVertxSqlclient::Row.java_class
    end

### + (`Object`) JSON_NULL

The JSON null literal value.
It is used to distinguish a JSON null literal value from the Java `null` value. This is only used when the database supports JSON types.

    296
    297
    298
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 296

    def self.JSON_NULL
      ::Vertx::Util::Utils.from_object(Java::IoVertxSqlclient::Row.JSON_NULL)
    end

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

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

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

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

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

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

## Instance Method Details

### - (`self`) add_boolean(value = nil)

Add a boolean value at the end of the tuple.

Parameters:

- value (`true`, `false`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    174
    175
    176
    177
    178
    179
    180
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 174

    def add_boolean(value=nil)
      if (value.class == TrueClass || value.class == FalseClass) && !block_given?
        @j_del.java_method(:addBoolean, [Java::JavaLang::Boolean.java_class]).call(value)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_boolean(#{value})"
    end

### - (`self`) add_buffer(value = nil)

Add a buffer value at the end of the tuple.

Parameters:

- value (`::Vertx::Buffer`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    244
    245
    246
    247
    248
    249
    250
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 244

    def add_buffer(value=nil)
      if value.class.method_defined?(:j_del) && !block_given?
        @j_del.java_method(:addBuffer, [Java::IoVertxCoreBuffer::Buffer.java_class]).call(value.j_del)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_buffer(#{value})"
    end

### - (`self`) add_double(value = nil)

Add a double value at the end of the tuple.

Parameters:

- value (`Float`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    224
    225
    226
    227
    228
    229
    230
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 224

    def add_double(value=nil)
      if value.class == Float && !block_given?
        @j_del.java_method(:addDouble, [Java::JavaLang::Double.java_class]).call(::Vertx::Util::Utils.to_double(value))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_double(#{value})"
    end

### - (`self`) add_float(value = nil)

Add a float value at the end of the tuple.

Parameters:

- value (`Float`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    214
    215
    216
    217
    218
    219
    220
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 214

    def add_float(value=nil)
      if value.class == Float && !block_given?
        @j_del.java_method(:addFloat, [Java::JavaLang::Float.java_class]).call(::Vertx::Util::Utils.to_float(value))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_float(#{value})"
    end

### - (`self`) add_integer(value = nil)

Add an integer value at the end of the tuple.

Parameters:

- value (`Fixnum`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    194
    195
    196
    197
    198
    199
    200
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 194

    def add_integer(value=nil)
      if value.class == Fixnum && !block_given?
        @j_del.java_method(:addInteger, [Java::JavaLang::Integer.java_class]).call(::Vertx::Util::Utils.to_integer(value))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_integer(#{value})"
    end

### - (`self`) add_long(value = nil)

Add a long value at the end of the tuple.

Parameters:

- value (`Fixnum`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    204
    205
    206
    207
    208
    209
    210
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 204

    def add_long(value=nil)
      if value.class == Fixnum && !block_given?
        @j_del.java_method(:addLong, [Java::JavaLang::Long.java_class]).call(value)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_long(#{value})"
    end

### - (`self`) add_short(value = nil)

Add a short value at the end of the tuple.

Parameters:

- value (`Fixnum`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    184
    185
    186
    187
    188
    189
    190
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 184

    def add_short(value=nil)
      if value.class == Fixnum && !block_given?
        @j_del.java_method(:addShort, [Java::JavaLang::Short.java_class]).call(::Vertx::Util::Utils.to_short(value))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_short(#{value})"
    end

### - (`self`) add_string(value = nil)

Add a string value at the end of the tuple.

Parameters:

- value (`String`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    234
    235
    236
    237
    238
    239
    240
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 234

    def add_string(value=nil)
      if value.class == String && !block_given?
        @j_del.java_method(:addString, [Java::java.lang.String.java_class]).call(value)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_string(#{value})"
    end

### - (`self`) add_value(value = nil)

Add an object value at the end of the tuple.

Parameters:

- value (`Object`) (defaults to: `nil`) —
  the value

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    164
    165
    166
    167
    168
    169
    170
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 164

    def add_value(value=nil)
      if ::Vertx::Util::unknown_type.accept?(value) && !block_given?
        @j_del.java_method(:addValue, [Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(value))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_value(#{value})"
    end

### - (`void`) clear

This method returns an undefined value.

Raises:

- (`ArgumentError`)

    268
    269
    270
    271
    272
    273
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 268

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

### - (`Object`) get(type = nil, pos = nil)

Parameters:

- type (`Nil`) (defaults to: `nil`)
- pos (`Fixnum`) (defaults to: `nil`)

Returns:

- (`Object`)

Raises:

- (`ArgumentError`)

    254
    255
    256
    257
    258
    259
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 254

    def get(type=nil,pos=nil)
      if type.class == Class && pos.class == Fixnum && !block_given?
        return ::Vertx::Util::Utils.v_type_of(type).wrap(@j_del.java_method(:get, [Java::JavaLang::Class.java_class,Java::int.java_class]).call(::Vertx::Util::Utils.j_class_of(type),pos))
      end
      raise ArgumentError, "Invalid arguments when calling get(#{type},#{pos})"
    end

### - (`true`, `false`) getBoolean(pos) - (`true`, `false`) getBoolean(name)

Get a boolean value at `pos`.

Overloads:

- - (`true`, `false`) getBoolean(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`true`, `false`) getBoolean(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`true`, `false`) —
  the value or `null`

Raises:

- (`ArgumentError`)

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

    def get_boolean?(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getBoolean, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getBoolean, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_boolean?(#{param_1})"
    end

### - (`::Vertx::Buffer`) getBuffer(pos) - (`::Vertx::Buffer`) getBuffer(name)

Get a buffer value at `pos`.

Overloads:

- - (`::Vertx::Buffer`) getBuffer(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`::Vertx::Buffer`) getBuffer(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`::Vertx::Buffer`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    153
    154
    155
    156
    157
    158
    159
    160
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 153

    def get_buffer(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::int.java_class]).call(param_1),::Vertx::Buffer)
      elsif param_1.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::java.lang.String.java_class]).call(param_1),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling get_buffer(#{param_1})"
    end

### - (`Fixnum`) get_column_index(name = nil)

Get a column position for the given column `name`.

Parameters:

- name (`String`) (defaults to: `nil`) —
  the column name

Returns:

- (`Fixnum`) —
  the column name or `-1` if not found

Raises:

- (`ArgumentError`)

    286
    287
    288
    289
    290
    291
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 286

    def get_column_index(name=nil)
      if name.class == String && !block_given?
        return @j_del.java_method(:getColumnIndex, [Java::java.lang.String.java_class]).call(name)
      end
      raise ArgumentError, "Invalid arguments when calling get_column_index(#{name})"
    end

### - (`String`) get_column_name(pos = nil)

Get a column name at `pos`.

Parameters:

- pos (`Fixnum`) (defaults to: `nil`) —
  the column position

Returns:

- (`String`) —
  the column name or `null`

Raises:

- (`ArgumentError`)

    277
    278
    279
    280
    281
    282
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 277

    def get_column_name(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getColumnName, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_column_name(#{pos})"
    end

### - (`Float`) getDouble(pos) - (`Float`) getDouble(name)

Get a double value at `pos`.

Overloads:

- - (`Float`) getDouble(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Float`) getDouble(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Float`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    125
    126
    127
    128
    129
    130
    131
    132
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 125

    def get_double(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getDouble, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getDouble, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_double(#{param_1})"
    end

### - (`Float`) getFloat(pos) - (`Float`) getFloat(name)

Get a float value at `pos`.

Overloads:

- - (`Float`) getFloat(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Float`) getFloat(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Float`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    111
    112
    113
    114
    115
    116
    117
    118
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 111

    def get_float(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getFloat, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getFloat, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_float(#{param_1})"
    end

### - (`Fixnum`) getInteger(pos) - (`Fixnum`) getInteger(name)

Get an integer value at `pos`.

Overloads:

- - (`Fixnum`) getInteger(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Fixnum`) getInteger(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Fixnum`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    83
    84
    85
    86
    87
    88
    89
    90
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 83

    def get_integer(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getInteger, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getInteger, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_integer(#{param_1})"
    end

### - (`Fixnum`) getLong(pos) - (`Fixnum`) getLong(name)

Get a long value at `pos`.

Overloads:

- - (`Fixnum`) getLong(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Fixnum`) getLong(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Fixnum`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    97
    98
    99
    100
    101
    102
    103
    104
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 97

    def get_long(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getLong, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getLong, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_long(#{param_1})"
    end

### - (`Fixnum`) getShort(pos) - (`Fixnum`) getShort(name)

Get a short value at `pos`.

Overloads:

- - (`Fixnum`) getShort(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Fixnum`) getShort(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Fixnum`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    69
    70
    71
    72
    73
    74
    75
    76
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 69

    def get_short(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getShort, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getShort, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_short(#{param_1})"
    end

### - (`String`) getString(pos) - (`String`) getString(name)

Get a string value at `pos`.

Overloads:

- - (`String`) getString(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`String`) getString(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`String`) —
  the value or `null`

Raises:

- (`ArgumentError`)

    139
    140
    141
    142
    143
    144
    145
    146
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 139

    def get_string(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return @j_del.java_method(:getString, [Java::int.java_class]).call(param_1)
      elsif param_1.class == String && !block_given?
        return @j_del.java_method(:getString, [Java::java.lang.String.java_class]).call(param_1)
      end
      raise ArgumentError, "Invalid arguments when calling get_string(#{param_1})"
    end

### - (`Object`) getValue(pos) - (`Object`) getValue(name)

Get an object value at `pos`.

Overloads:

- - (`Object`) getValue(pos)

  Parameters:

  - pos (`Fixnum`) —
    the position
- - (`Object`) getValue(name)

  Parameters:

  - name (`String`) —
    the column

Returns:

- (`Object`) —
  the value or `null`

Raises:

- (`ArgumentError`)

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

    def get_value(param_1=nil)
      if param_1.class == Fixnum && !block_given?
        return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getValue, [Java::int.java_class]).call(param_1))
      elsif param_1.class == String && !block_given?
        return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getValue, [Java::java.lang.String.java_class]).call(param_1))
      end
      raise ArgumentError, "Invalid arguments when calling get_value(#{param_1})"
    end

### - (`Fixnum`) size

Returns the tuple size

Returns:

- (`Fixnum`) —
  the tuple size

Raises:

- (`ArgumentError`)

    261
    262
    263
    264
    265
    266
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row.rb', line 261

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