Class: ODPI::Dpi::ObjectAttr

Inherits:
Object
  • Object
show all
Defined in:
ext/odpi_ext/rbdpi-object-attr.c

Instance Method Summary collapse

Constructor Details

#initializeObject


41
42
43
44
45
# File 'ext/odpi_ext/rbdpi.c', line 41

VALUE rbdpi_initialize_error(VALUE self)
{
    rb_raise(rb_eRuntimeError, "could not initialize by %s::new", rb_obj_classname(self));
    return Qnil;
}

Instance Method Details

#initialize_copy(other) ⇒ Object


76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'ext/odpi_ext/rbdpi-object-attr.c', line 76

static VALUE object_attr_initialize_copy(VALUE self, VALUE other)
{
    object_attr_t *object_attr = rbdpi_to_object_attr(self);

    if (object_attr->handle != NULL) {
        CHK(dpiObjectAttr_release(object_attr->handle));
    }
    *object_attr = *rbdpi_to_object_attr(other);
    if (object_attr->handle != NULL) {
        CHK(dpiObjectAttr_addRef(object_attr->handle));
    }
    return self;
}

#nameObject


90
91
92
93
94
95
# File 'ext/odpi_ext/rbdpi-object-attr.c', line 90

static VALUE object_attr_get_name(VALUE self)
{
    object_attr_t *objattr = rbdpi_to_object_attr(self);

    return rb_external_str_new_with_enc(objattr->info.name, objattr->info.nameLength, objattr->enc.enc);
}

#type_infoObject


98
99
100
101
102
103
# File 'ext/odpi_ext/rbdpi-object-attr.c', line 98

static VALUE object_attr_get_type_info(VALUE self)
{
    object_attr_t *objattr = rbdpi_to_object_attr(self);

    return objattr->datatype;
}