Class: DbDom::Rexml::DbElement

Inherits:
DynamicElement show all
Defined in:
lib/rexml.rb

Constant Summary

Constants inherited from DynamicElement

DbDom::Rexml::DynamicElement::EVERY_SINGLE_PARENT_METHOD

Instance Method Summary collapse

Methods inherited from DynamicElement

#initialize_children

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_childrenObject



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