Class: VertxSqlClient::RowSet
- Inherits:
-
SqlResult
- Object
- SqlResult
- VertxSqlClient::RowSet
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb
Overview
A set of rows.
Instance Method Summary (collapse)
-
- (Array<::VertxSqlClient::ColumnDescriptor>) column_descriptors
Get the column descriptors in the SqlResult.
-
- (Array<String>) columns_names
Get the names of columns in the SqlResult.
- - (::VertxSqlClient::RowIterator) iterator
- - (::VertxSqlClient::RowSet) next
-
- (Object) property(propertyKind = nil)
Get the property with the specified PropertyKind.
-
- (Fixnum) row_count
Get the number of the affected rows in the operation to this SqlResult.
-
- (Fixnum) size
Get the number of rows retrieved in the SqlResult.
-
- (::VertxSqlClient::RowSet) value
Get the result value.
Instance Method Details
- (Array<::VertxSqlClient::ColumnDescriptor>) column_descriptors
Get the column descriptors in the SqlResult.
39 40 41 42 43 44 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 39 def column_descriptors if !block_given? return @j_del.java_method(:columnDescriptors, []).call().to_a.map { |elt| ::Vertx::Util::Utils.safe_create(elt,::VertxSqlClient::ColumnDescriptor) } end raise ArgumentError, "Invalid arguments when calling column_descriptors()" end |
- (Array<String>) columns_names
Get the names of columns in the SqlResult.
31 32 33 34 35 36 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 31 def columns_names if !block_given? return @j_del.java_method(:columnsNames, []).call().to_a.map { |elt| elt } end raise ArgumentError, "Invalid arguments when calling columns_names()" end |
- (::VertxSqlClient::RowIterator) iterator
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_set.rb', line 71 def iterator if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:iterator, []).call(),::VertxSqlClient::RowIterator, nil) end raise ArgumentError, "Invalid arguments when calling iterator()" end |
- (::VertxSqlClient::RowSet) next
78 79 80 81 82 83 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 78 def next if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:next, []).call(),::VertxSqlClient::RowSet, nil) end raise ArgumentError, "Invalid arguments when calling next()" end |
- (Object) property(propertyKind = nil)
Get the property with the specified PropertyKind.
56 57 58 59 60 61 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 56 def property(propertyKind=nil) if propertyKind.class.method_defined?(:j_del) && !block_given? return ::Vertx::Util::Utils.from_object(@j_del.java_method(:property, [Java::IoVertxSqlclient::PropertyKind.java_class]).call(propertyKind.j_del)) end raise ArgumentError, "Invalid arguments when calling property(#{propertyKind})" end |
- (Fixnum) row_count
Get the number of the affected rows in the operation to this SqlResult.
23 24 25 26 27 28 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 23 def row_count if !block_given? return @j_del.java_method(:rowCount, []).call() end raise ArgumentError, "Invalid arguments when calling row_count()" end |
- (Fixnum) size
Get the number of rows retrieved in the SqlResult.
47 48 49 50 51 52 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 47 def size if !block_given? return @j_del.java_method(:size, []).call() end raise ArgumentError, "Invalid arguments when calling size()" end |
- (::VertxSqlClient::RowSet) value
Get the result value.
64 65 66 67 68 69 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_set.rb', line 64 def value if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:value, []).call(),::VertxSqlClient::RowSet, nil) end raise ArgumentError, "Invalid arguments when calling value()" end |