class OCI8::Metadata::Subprogram

{OCI8::Metadata::Function OCI8::Metadata::Function}.
This is the abstract base class of {OCI8::Metadata::Procedure OCI8::Metadata::Procedure} and
or a function.
with a set of parameters. A subprogram can be either a procedure
A PL/SQL subprogram is a named PL/SQL block that can be invoked
Information about PL/SQL subprograms

def arguments

Returns:
  • (array of OCI8::Metadata::Argument) -
def arguments
  @arguments ||= list_arguments.to_a
end

def inspect

Other tags:
    Private: -
def inspect
  "#<#{self.class.name}: #{name}>"
end

def is_invoker_rights?

Otherwise, +false+.
{invoker's rights}[http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/subprograms.htm#i18574].
Returns +true+ if the subprogram has
def is_invoker_rights?
  attr_get_ub1(OCI_ATTR_IS_INVOKER_RIGHTS) != 0
end

def is_standalone?

if packaged.
Returns +true+ if the subprogram is standalone, +false+
def is_standalone?
  @is_standalone = true unless defined? @is_standalone
  @is_standalone
end

def list_arguments # :nodoc:

:nodoc:
Argument list
def list_arguments # :nodoc:
  __param(OCI_ATTR_LIST_ARGUMENTS)
end

def obj_id # :nodoc:

:nodoc:
def obj_id # :nodoc:
  super if is_standalone?
end

def obj_name # :nodoc:

:nodoc:
def obj_name # :nodoc:
  is_standalone? ? super : attr_get_string(OCI_ATTR_NAME)
end

def obj_schema # :nodoc:

:nodoc:
def obj_schema # :nodoc:
  super if is_standalone?
end

def overload_id

Returns:
  • (Integer or nil) -
def overload_id
  attr_get_ub2(OCI_ATTR_OVERLOAD_ID) unless is_standalone?
end