Class: OracleDB::ObjectType
- Inherits:
-
Object
- Object
- OracleDB::ObjectType
- Defined in:
- lib/oracledb.rb,
lib/oracledb/object_types.rb,
ext/oracledb/rboradb_object.c
Instance Method Summary collapse
- #attributes ⇒ Object
- #element_type_info ⇒ Object
- #initialize(vconn, name) ⇒ Object constructor
- #is_collection ⇒ Object
- #name ⇒ Object
- #new_object ⇒ Object
- #num_attributes ⇒ Object
- #schema ⇒ Object
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
#attributes ⇒ Object
33 34 35 |
# File 'lib/oracledb/object_types.rb', line 33 def attributes @attributes ||= __attributes end |
#element_type_info ⇒ Object
25 26 27 |
# File 'lib/oracledb/object_types.rb', line 25 def element_type_info (@info ||= __info).element_type_info end |
#is_collection ⇒ Object
21 22 23 |
# File 'lib/oracledb/object_types.rb', line 21 def is_collection (@info ||= __info).is_collection end |
#name ⇒ Object
17 18 19 |
# File 'lib/oracledb/object_types.rb', line 17 def name (@info ||= __info).name end |
#new_object ⇒ Object
165 166 167 |
# File 'lib/oracledb.rb', line 165 def new_object Object::new(self) end |
#num_attributes ⇒ Object
29 30 31 |
# File 'lib/oracledb/object_types.rb', line 29 def num_attributes (@info ||= __info).num_attributes end |
#schema ⇒ Object
13 14 15 |
# File 'lib/oracledb/object_types.rb', line 13 def schema (@info ||= __info).schema end |