Class: PLSQL::Procedure

Inherits:
Object
  • Object
show all
Extended by:
ProcedureClassMethods
Includes:
ProcedureCommon
Defined in:
lib/plsql/procedure.rb

Overview

:nodoc:

Constant Summary

Constants included from ProcedureCommon

PLSQL::ProcedureCommon::PLSQL_COLLECTION_TYPES, PLSQL::ProcedureCommon::PLSQL_COMPOSITE_TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ProcedureClassMethods

find

Methods included from ProcedureCommon

#build_sql_type_name, #collection_type?, #composite_type?, #construct_argument_list_for_overloads, #ensure_tmp_tables_created, #get_argument_metadata, #get_argument_metadata_below_18c, #get_argument_metadata_from_18c, #get_composite_type, #get_element_definition, #get_field_definitions, #overloaded?, type_to_sql

Constructor Details

#initialize(schema, procedure, package, override_schema_name, object_id) ⇒ Procedure

Returns a new instance of Procedure.



534
535
536
537
538
539
540
541
542
# File 'lib/plsql/procedure.rb', line 534

def initialize(schema, procedure, package, override_schema_name, object_id)
  @schema = schema
  @schema_name = override_schema_name || schema.schema_name
  @procedure = procedure.to_s.upcase
  @package = package
  @object_id = object_id

  
end

Instance Attribute Details

#argument_listObject (readonly)

Returns the value of attribute argument_list.



531
532
533
# File 'lib/plsql/procedure.rb', line 531

def argument_list
  @argument_list
end

#argumentsObject (readonly)

Returns the value of attribute arguments.



531
532
533
# File 'lib/plsql/procedure.rb', line 531

def arguments
  @arguments
end

#out_listObject (readonly)

Returns the value of attribute out_list.



531
532
533
# File 'lib/plsql/procedure.rb', line 531

def out_list
  @out_list
end

#packageObject (readonly)

Returns the value of attribute package.



532
533
534
# File 'lib/plsql/procedure.rb', line 532

def package
  @package
end

#procedureObject (readonly)

Returns the value of attribute procedure.



532
533
534
# File 'lib/plsql/procedure.rb', line 532

def procedure
  @procedure
end

#returnObject (readonly)

Returns the value of attribute return.



531
532
533
# File 'lib/plsql/procedure.rb', line 531

def return
  @return
end

#schemaObject (readonly)

Returns the value of attribute schema.



532
533
534
# File 'lib/plsql/procedure.rb', line 532

def schema
  @schema
end

#schema_nameObject (readonly)

Returns the value of attribute schema_name.



532
533
534
# File 'lib/plsql/procedure.rb', line 532

def schema_name
  @schema_name
end

Instance Method Details

#exec(*args, &block) ⇒ Object



544
545
546
547
# File 'lib/plsql/procedure.rb', line 544

def exec(*args, &block)
  call = ProcedureCall.new(self, args)
  call.exec(&block)
end