Class: OCI8::Metadata::Synonym
Overview
Metadata for a synonym.
This is returned by:
-
OCI8#describe_any(name)
-
OCI8#describe_synonym(name)
-
OCI8::Metadata::Schema#all_objects
-
OCI8::Metadata::Schema#objects
Instance Method Summary collapse
-
#inspect ⇒ Object
:nodoc:.
-
#link ⇒ Object
database link name of the synonym translation or nil.
-
#name ⇒ Object
object name of the synonym translation.
-
#objid ⇒ Object
object id.
-
#schema_name ⇒ Object
schema name of the synonym translation.
-
#translated_name ⇒ Object
full-qualified synonym translation name with schema, object and database link name.
Methods inherited from Base
#obj_id, #obj_name, #obj_schema
Instance Method Details
#inspect ⇒ Object
:nodoc:
1232 1233 1234 |
# File 'lib/oci8/metadata.rb', line 1232 def inspect # :nodoc: "#<#{self.class.name}:(#{obj_id}) #{obj_schema}.#{obj_name}>" end |
#link ⇒ Object
database link name of the synonym translation or nil
1218 1219 1220 1221 |
# File 'lib/oci8/metadata.rb', line 1218 def link @link ||= attr_get_string(OCI_ATTR_LINK) @link.size == 0 ? nil : @link end |
#name ⇒ Object
object name of the synonym translation
1213 1214 1215 |
# File 'lib/oci8/metadata.rb', line 1213 def name @name ||= attr_get_string(OCI_ATTR_NAME) end |
#objid ⇒ Object
object id
1203 1204 1205 |
# File 'lib/oci8/metadata.rb', line 1203 def objid @objid ||= attr_get_ub4(OCI_ATTR_OBJID) end |
#schema_name ⇒ Object
schema name of the synonym translation
1208 1209 1210 |
# File 'lib/oci8/metadata.rb', line 1208 def schema_name @schema_name ||= attr_get_string(OCI_ATTR_SCHEMA_NAME) end |
#translated_name ⇒ Object
full-qualified synonym translation name with schema, object and database link name.
1224 1225 1226 1227 1228 1229 1230 |
# File 'lib/oci8/metadata.rb', line 1224 def translated_name if link.nil? schema_name + '.' + name else schema_name + '.' + name + '@' + link end end |