Class: VertxSqlClient::ColumnDescriptor
- Inherits:
-
Object
- Object
- VertxSqlClient::ColumnDescriptor
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb
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)
-
- (true, false) array?
Whether the column is an array.
-
- (:BIT, ...) jdbc_type
The most appropriate JDBCType.
-
- (String) name
The column name.
Class Method Details
+ (Boolean) accept?(obj)
16 17 18 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 16 def @@j_api_type.accept?(obj) obj.class == ColumnDescriptor end |
+ (Object) j_api_type
25 26 27 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 25 def self.j_api_type @@j_api_type end |
+ (Object) j_class
28 29 30 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 28 def self.j_class Java::IoVertxSqlclientDesc::ColumnDescriptor.java_class end |
+ (Object) unwrap(obj)
22 23 24 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 22 def @@j_api_type.unwrap(obj) obj.j_del end |
+ (Object) wrap(obj)
19 20 21 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 19 def @@j_api_type.wrap(obj) ColumnDescriptor.new(obj) end |
Instance Method Details
- (true, false) array?
Returns whether the column is an array
39 40 41 42 43 44 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 39 def array? if !block_given? return @j_del.java_method(:isArray, []).call() end raise ArgumentError, "Invalid arguments when calling array?()" end |
- (:BIT, ...) jdbc_type
Returns the most appropriate
JDBCType
46 47 48 49 50 51 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 46 def jdbc_type if !block_given? return @j_del.java_method(:jdbcType, []).call().name.intern end raise ArgumentError, "Invalid arguments when calling jdbc_type()" end |
- (String) name
Returns the column name
32 33 34 35 36 37 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/column_descriptor.rb', line 32 def name if !block_given? return @j_del.java_method(:name, []).call() end raise ArgumentError, "Invalid arguments when calling name()" end |