Class: Avmtrf1::Oracle::Object::Base

Inherits:
Object
  • Object
show all
Includes:
EacRubyUtils::Listable
Defined in:
lib/avmtrf1/oracle/object/base.rb

Direct Known Subclasses

Table, User, View

Instance Method Summary collapse

Instance Method Details

#dropObject


21
22
23
# File 'lib/avmtrf1/oracle/object/base.rb', line 21

def drop
  connection.exec(drop_ddl)
end

#drop_ddlObject


33
34
35
# File 'lib/avmtrf1/oracle/object/base.rb', line 33

def drop_ddl
  "drop #{type} #{fullname}"
end

#fullnameObject


25
26
27
# File 'lib/avmtrf1/oracle/object/base.rb', line 25

def fullname
  (owner.present? ? "#{owner}." : '') + name
end

#to_sObject


29
30
31
# File 'lib/avmtrf1/oracle/object/base.rb', line 29

def to_s
  "#{type}/#{fullname}"
end