class OCI8::Metadata::Collection

  • OCI8::Metadata::Type.collection_element
    This is returned by:
    Metadata for a collection.

def charset_form

character set form, if the type attribute is of a string/character type.
def charset_form
  __charset_form
end

def charset_id

character set id if the type attribute is of a string/character type.
def charset_id
  attr_get_ub2(OCI_ATTR_CHARSET_ID)
end

def charset_name

character set name if the type attribute is of a string/character type.
def charset_name
  __charset_name(charset_id)
end

def data_size

returns 22 for NUMBERs.
returned in bytes and not characters for strings and raws. It
The maximum size of the type attribute. This length is
def data_size
  attr_get_ub2(OCI_ATTR_DATA_SIZE)
end

def data_type

the datatype of the type
def data_type
  __data_type
end

def inspect # :nodoc:

:nodoc:
def inspect # :nodoc:
  "#<#{self.class.name}: #{__data_type_string}>"
end

def num_elems

collections that are arrays.
the number of elements in an array. It is only valid for
def num_elems
  attr_get_ub4(OCI_ATTR_NUM_ELEMS)
end

def precision

NUMBER(precision, scale) can be represented simply as NUMBER.
NUMBER(precision, scale). For the case when precision is 0,
nonzero and scale is -127, then it is a FLOAT, else it is a
The precision of numeric type attributes. If the precision is
def precision
  __is_implicit? ? attr_get_sb2(OCI_ATTR_PRECISION) : attr_get_ub1(OCI_ATTR_PRECISION)
end

def scale

NUMBER(precision, scale) can be represented simply as NUMBER.
NUMBER(precision, scale). For the case when precision is 0,
nonzero and scale is -127, then it is a FLOAT, else it is a
The scale of numeric type attributes. If the precision is
def scale
  attr_get_sb1(OCI_ATTR_SCALE)
end

def schema_name

schema name where the type has been created.
def schema_name
  attr_get_string(OCI_ATTR_SCHEMA_NAME)
end

def type_metadata

to type metadata if possible
def type_metadata
  __type_metadata(OCI8::Metadata::Type)
end

def type_name

of the named datatype pointed to by the REF is returned.
type is returned. If the datatype is :ref, the type name
If the datatype is :named_type, the name of the named datatype's
contain the type name if the datatype is :named_type or :ref.
A string which is the type name. The returned value will
def type_name
  attr_get_string(OCI_ATTR_TYPE_NAME)
end

def typecode

typecode
def typecode
  __typecode(OCI_ATTR_TYPECODE)
end