Class: VertxSqlClient::SqlResult
- Inherits:
-
Object
- Object
- VertxSqlClient::SqlResult
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb
Overview
Represents the result of an operation on database.
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (Array<String>) columnsNames
Get the names of columns in the SqlResult.
-
- (::VertxSqlClient::SqlResult) next
Return the next available result or null, e.g for a simple query that executed multiple queries or for a batch result.
-
- (Object) property(propertyKind)
Get the property with the specified PropertyKind.
-
- (Fixnum) rowCount
Get the number of the affected rows in the operation to this SqlResult.
-
- (Fixnum) size
Get the number of rows retrieved in the SqlResult.
-
- (Object) value
Get the result value.
Instance Method Details
- (Array<String>) columnsNames
Get the names of columns in the SqlResult.
63 64 65 66 67 68 69 70 71 72 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 63 def columns_names if !block_given? return @j_del.java_method(:columnsNames, []).call().to_a.map { |elt| elt } end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling columns_names()" end end |
- (::VertxSqlClient::SqlResult) next
Return the next available result or
null
, e.g for a simple query that executed multiple queries or for
a batch result.
23 24 25 26 27 28 29 30 31 32 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 23 def next if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:next, []).call(),::VertxSqlClient::SqlResult, nil) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling next()" end end |
- (Object) property(propertyKind)
Get the property with the specified PropertyKind.
50 51 52 53 54 55 56 57 58 59 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 50 def property(*args) if args[0].class.method_defined?(:j_del) && !block_given? return ::Vertx::Util::Utils.from_object(@j_del.java_method(:property, [Java::IoVertxSqlclient::PropertyKind.java_class]).call(args[0].j_del)) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling property(#{args[0]})" end end |
- (Fixnum) rowCount
Get the number of the affected rows in the operation to this SqlResult.
76 77 78 79 80 81 82 83 84 85 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 76 def row_count if !block_given? return @j_del.java_method(:rowCount, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling row_count()" end end |
- (Fixnum) size
Get the number of rows retrieved in the SqlResult.
36 37 38 39 40 41 42 43 44 45 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 36 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 |
- (Object) value
Get the result value.
89 90 91 92 93 94 95 96 97 98 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/sql_result.rb', line 89 def value if !block_given? return @j_arg_T.wrap(@j_del.java_method(:value, []).call()) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling value()" end end |