Class: VertxSqlClient::Tuple

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

Overview

A general purpose tuple.

Direct Known Subclasses

Row

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)


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

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

+ (Object) j_api_type



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

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



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

def self.j_class
  Java::IoVertxSqlclient::Tuple.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.


398
399
400
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 398

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

+ (::VertxSqlClient::Tuple) of(elt1) + (::VertxSqlClient::Tuple) of(elt1, elt2) + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3) + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4) + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4, elt5) + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4, elt5, elt6)

Create a tuple of six elements.

Overloads:

  • + (::VertxSqlClient::Tuple) of(elt1)

    Parameters:

    • elt1 (Object)
      the first value
  • + (::VertxSqlClient::Tuple) of(elt1, elt2)

    Parameters:

    • elt1 (Object)
      the first value
    • elt2 (Object)
      the second value
  • + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3)

    Parameters:

    • elt1 (Object)
      the first value
    • elt2 (Object)
      the second value
    • elt3 (Object)
      the third value
  • + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4)

    Parameters:

    • elt1 (Object)
      the first value
    • elt2 (Object)
      the second value
    • elt3 (Object)
      the third value
    • elt4 (Object)
      the fourth value
  • + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4, elt5)

    Parameters:

    • elt1 (Object)
      the first value
    • elt2 (Object)
      the second value
    • elt3 (Object)
      the third value
    • elt4 (Object)
      the fourth value
    • elt5 (Object)
      the fifth value
  • + (::VertxSqlClient::Tuple) of(elt1, elt2, elt3, elt4, elt5, elt6)

    Parameters:

    • elt1 (Object)
      the first value
    • elt2 (Object)
      the second valueg
    • elt3 (Object)
      the third value
    • elt4 (Object)
      the fourth value
    • elt5 (Object)
      the fifth value
    • elt6 (Object)
      the sixth value

Returns:



285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 285

def self.of(*args)
  if ::Vertx::Util::unknown_type.accept?(args[0]) && !block_given? && args[1] == nil && args[2] == nil && args[3] == nil && args[4] == nil && args[5] == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0])),::VertxSqlClient::Tuple)
  elsif ::Vertx::Util::unknown_type.accept?(args[0]) && ::Vertx::Util::unknown_type.accept?(args[1]) && !block_given? && args[2] == nil && args[3] == nil && args[4] == nil && args[5] == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class,Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0]),::Vertx::Util::Utils.to_object(args[1])),::VertxSqlClient::Tuple)
  elsif ::Vertx::Util::unknown_type.accept?(args[0]) && ::Vertx::Util::unknown_type.accept?(args[1]) && ::Vertx::Util::unknown_type.accept?(args[2]) && !block_given? && args[3] == nil && args[4] == nil && args[5] == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0]),::Vertx::Util::Utils.to_object(args[1]),::Vertx::Util::Utils.to_object(args[2])),::VertxSqlClient::Tuple)
  elsif ::Vertx::Util::unknown_type.accept?(args[0]) && ::Vertx::Util::unknown_type.accept?(args[1]) && ::Vertx::Util::unknown_type.accept?(args[2]) && ::Vertx::Util::unknown_type.accept?(args[3]) && !block_given? && args[4] == nil && args[5] == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0]),::Vertx::Util::Utils.to_object(args[1]),::Vertx::Util::Utils.to_object(args[2]),::Vertx::Util::Utils.to_object(args[3])),::VertxSqlClient::Tuple)
  elsif ::Vertx::Util::unknown_type.accept?(args[0]) && ::Vertx::Util::unknown_type.accept?(args[1]) && ::Vertx::Util::unknown_type.accept?(args[2]) && ::Vertx::Util::unknown_type.accept?(args[3]) && ::Vertx::Util::unknown_type.accept?(args[4]) && !block_given? && args[5] == nil
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0]),::Vertx::Util::Utils.to_object(args[1]),::Vertx::Util::Utils.to_object(args[2]),::Vertx::Util::Utils.to_object(args[3]),::Vertx::Util::Utils.to_object(args[4])),::VertxSqlClient::Tuple)
  elsif ::Vertx::Util::unknown_type.accept?(args[0]) && ::Vertx::Util::unknown_type.accept?(args[1]) && ::Vertx::Util::unknown_type.accept?(args[2]) && ::Vertx::Util::unknown_type.accept?(args[3]) && ::Vertx::Util::unknown_type.accept?(args[4]) && ::Vertx::Util::unknown_type.accept?(args[5]) && !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:of, [Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class,Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(args[0]),::Vertx::Util::Utils.to_object(args[1]),::Vertx::Util::Utils.to_object(args[2]),::Vertx::Util::Utils.to_object(args[3]),::Vertx::Util::Utils.to_object(args[4]),::Vertx::Util::Utils.to_object(args[5])),::VertxSqlClient::Tuple)
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling of(#{args[0]},#{args[1]},#{args[2]},#{args[3]},#{args[4]},#{args[5]})"
  end
end

+ (::VertxSqlClient::Tuple) tuple

Returns a new empty tuple

Returns:



190
191
192
193
194
195
196
197
198
199
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 190

def self.tuple
  if !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::Tuple.java_method(:tuple, []).call(),::VertxSqlClient::Tuple)
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling tuple()"
  end
end

+ (Object) unwrap(obj)



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

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

+ (Object) wrap(obj)



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

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

Instance Method Details

- (self) addBoolean(value)

Add a boolean value at the end of the tuple.

Parameters:

  • value (true, false)
    the value

Returns:

  • (self)


383
384
385
386
387
388
389
390
391
392
393
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 383

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

- (self) addBuffer(value)

Add a buffer value at the end of the tuple.

Parameters:

Returns:

  • (self)


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

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

- (self) addDouble(value)

Add a double value at the end of the tuple.

Parameters:

  • value (Float)
    the value

Returns:

  • (self)


338
339
340
341
342
343
344
345
346
347
348
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 338

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

- (self) addFloat(value)

Add a float value at the end of the tuple.

Parameters:

  • value (Float)
    the value

Returns:

  • (self)


78
79
80
81
82
83
84
85
86
87
88
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 78

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

- (self) addInteger(value)

Add an integer value at the end of the tuple.

Parameters:

  • value (Fixnum)
    the value

Returns:

  • (self)


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

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

- (self) addLong(value)

Add a long value at the end of the tuple.

Parameters:

  • value (Fixnum)
    the value

Returns:

  • (self)


323
324
325
326
327
328
329
330
331
332
333
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 323

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

- (self) addShort(value)

Add a short value at the end of the tuple.

Parameters:

  • value (Fixnum)
    the value

Returns:

  • (self)


219
220
221
222
223
224
225
226
227
228
229
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 219

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

- (self) addString(value)

Add a string value at the end of the tuple.

Parameters:

  • value (String)
    the value

Returns:

  • (self)


353
354
355
356
357
358
359
360
361
362
363
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 353

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

- (self) addValue(value)

Add an object value at the end of the tuple.

Parameters:

  • value (Object)
    the value

Returns:

  • (self)


368
369
370
371
372
373
374
375
376
377
378
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 368

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

- (void) clear

This method returns an undefined value.



64
65
66
67
68
69
70
71
72
73
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 64

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

- (Object) get(type, pos)

Parameters:

  • type (Nil)
  • pos (Fixnum)

Returns:

  • (Object)


246
247
248
249
250
251
252
253
254
255
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 246

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

- (true, false) getBoolean(pos)

Get a boolean value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (true, false)
    the value or null


309
310
311
312
313
314
315
316
317
318
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 309

def get_boolean?(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getBoolean, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_boolean?(#{args[0]})"
  end
end

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

Get a buffer value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:



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

def get_buffer(*args)
  if args[0].class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::int.java_class]).call(args[0]),::Vertx::Buffer)
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_buffer(#{args[0]})"
  end
end

- (Float) getDouble(pos)

Get a double value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Float)
    the value or null


93
94
95
96
97
98
99
100
101
102
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 93

def get_double(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getDouble, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_double(#{args[0]})"
  end
end

- (Float) getFloat(pos)

Get a float value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Float)
    the value or null


135
136
137
138
139
140
141
142
143
144
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 135

def get_float(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getFloat, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_float(#{args[0]})"
  end
end

- (Fixnum) getInteger(pos)

Get an integer value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Fixnum)
    the value or null


107
108
109
110
111
112
113
114
115
116
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 107

def get_integer(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getInteger, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_integer(#{args[0]})"
  end
end

- (Fixnum) getLong(pos)

Get a long value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Fixnum)
    the value or null


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

def get_long(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getLong, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_long(#{args[0]})"
  end
end

- (Fixnum) getShort(pos)

Get a short value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Fixnum)
    the value or null


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

def get_short(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getShort, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_short(#{args[0]})"
  end
end

- (String) getString(pos)

Get a string value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (String)
    the value or null


121
122
123
124
125
126
127
128
129
130
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 121

def get_string(*args)
  if args[0].class == Fixnum && !block_given?
    return @j_del.java_method(:getString, [Java::int.java_class]).call(args[0])
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_string(#{args[0]})"
  end
end

- (Object) getValue(pos)

Get an object value at pos.

Parameters:

  • pos (Fixnum)
    the position

Returns:

  • (Object)
    the value or null


178
179
180
181
182
183
184
185
186
187
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/tuple.rb', line 178

def get_value(*args)
  if args[0].class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getValue, [Java::int.java_class]).call(args[0]))
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling get_value(#{args[0]})"
  end
end

- (Fixnum) size

Returns the tuple size

Returns:

  • (Fixnum)
    the tuple size


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

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