Module: Rubeus::Extensions::Java::Sql::ResultSetMetaData
- Includes:
- Enumerable
- Defined in:
- lib/rubeus/extensions/java/sql/result_set_meta_data.rb
Instance Method Summary collapse
Instance Method Details
#column_index(i) ⇒ Object
22 23 24 |
# File 'lib/rubeus/extensions/java/sql/result_set_meta_data.rb', line 22 def column_index(i) i end |
#column_names ⇒ Object
15 16 17 18 19 20 |
# File 'lib/rubeus/extensions/java/sql/result_set_meta_data.rb', line 15 def column_names @column_names ||= columns.inject({}) do |dest, column| dest[column.index] = column.name dest end end |
#columns ⇒ Object
11 12 13 |
# File 'lib/rubeus/extensions/java/sql/result_set_meta_data.rb', line 11 def columns @columns ||= build_columns end |
#each(&block) ⇒ Object
5 6 7 8 9 |
# File 'lib/rubeus/extensions/java/sql/result_set_meta_data.rb', line 5 def each(&block) return unless block_given? @column_count ||= get_column_count (1..@column_count).each(&block) end |