Class: OCI8::Metadata::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/oci8/metadata.rb

Overview

Abstract super class of Metadata classes.

Instance Method Summary collapse

Instance Method Details

#obj_idInteger or nil

Returns the object ID which corresponds to the data dictionary view column ALL_OBJECTS.OBJECT_ID.

Returns:

  • (Integer or nil)


66
67
68
# File 'lib/oci8/metadata.rb', line 66

def obj_id
  attr_get_ub4(OCI_ATTR_OBJ_ID, false)
end

Returns the database link name if the object is at the remote host. Note that this is available only when the object is returned by OCI8#describe_* methods.

Returns:

  • (String or nil)

    database link name

Since:

  • 2.1.7



97
98
99
# File 'lib/oci8/metadata.rb', line 97

def obj_link
  @obj_link
end

#obj_nameString or nil

Returns the object name which corresponds to the data dictionary view column ALL_OBJECTS.OBJECT_NAME.

Returns:

  • (String or nil)

    object name



73
74
75
# File 'lib/oci8/metadata.rb', line 73

def obj_name
  attr_get_string(OCI_ATTR_OBJ_NAME, false)
end

#obj_schemaString or nil

Returns the schema name which corresponds to the data dictionary view column ALL_OBJECTS.OWNER.

Returns:

  • (String or nil)

    schema name



80
81
82
# File 'lib/oci8/metadata.rb', line 80

def obj_schema
  attr_get_string(OCI_ATTR_OBJ_SCHEMA, false)
end