Class: OracleDB::ObjectType

Inherits:
Object
  • Object
show all
Defined in:
lib/oracledb.rb,
lib/oracledb/object_types.rb,
ext/oracledb/rboradb_object.c

Instance Method Summary collapse

Constructor Details

#initialize(vconn, name) ⇒ Object



339
340
341
342
343
344
345
346
347
348
349
350
# File 'ext/oracledb/rboradb_object.c', line 339

static VALUE object_type_initialize(VALUE self, VALUE vconn, VALUE name)
{
    ObjectType_t *objtype = To_ObjectType(self);
    rbOraDBConn *dconn = rboradb_get_dconn(vconn);

    ExportString(name);
    RBORADB_INIT(objtype, dconn);
    if (rbOraDBConn_getObjectType(dconn->handle, RSTRING_PTR(name), RSTRING_LEN(name), &objtype->handle) != DPI_SUCCESS) {
        RBORADB_RAISE_ERROR(objtype);
    }
    return Qnil;
}

Instance Method Details

#attributesObject



33
34
35
# File 'lib/oracledb/object_types.rb', line 33

def attributes
  @attributes ||= __attributes
end

#element_type_infoObject



25
26
27
# File 'lib/oracledb/object_types.rb', line 25

def element_type_info
  (@info ||= __info).element_type_info
end

#is_collectionObject



21
22
23
# File 'lib/oracledb/object_types.rb', line 21

def is_collection
  (@info ||= __info).is_collection
end

#nameObject



17
18
19
# File 'lib/oracledb/object_types.rb', line 17

def name
  (@info ||= __info).name
end

#new_objectObject



165
166
167
# File 'lib/oracledb.rb', line 165

def new_object
  Object::new(self)
end

#num_attributesObject



29
30
31
# File 'lib/oracledb/object_types.rb', line 29

def num_attributes
  (@info ||= __info).num_attributes
end

#schemaObject



13
14
15
# File 'lib/oracledb/object_types.rb', line 13

def schema
  (@info ||= __info).schema
end