Class: DbDom::Rexml::DbElement
- Inherits:
-
DynamicElement
- Object
- Element
- DynamicElement
- DbDom::Rexml::DbElement
- Defined in:
- lib/rexml.rb
Constant Summary
Constants inherited from DynamicElement
DbDom::Rexml::DynamicElement::EVERY_SINGLE_PARENT_METHOD
Instance Method Summary collapse
- #init_children ⇒ Object
-
#initialize(parent, context) ⇒ DbElement
constructor
A new instance of DbElement.
Methods inherited from DynamicElement
Methods included from Advice
#advise, #advise_after, #advise_before
Constructor Details
#initialize(parent, context) ⇒ DbElement
Returns a new instance of DbElement.
58 59 60 |
# File 'lib/rexml.rb', line 58 def initialize(parent, context) super("database", parent, context) end |
Instance Method Details
#init_children ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/rexml.rb', line 62 def init_children Java::Jdbc.with_connection(context) do |conn| @children = [] Java::Jdbc.get_tables(conn) do |name| @children << TableElement.new(name, nil, context); end end end |