Struct mimir::Object [−][src]
pub struct Object { pub inner: *mut ODPIObject, }
This structure represents instances of the types created by the SQL command CREATE OR REPLACE TYPE
Fields
inner: *mut ODPIObject
The ODPI-C Object pointer.
Methods
impl Object
[src]
impl Object
pub fn append_element(
&self,
native_type: ODPINativeTypeNum,
data: &mut ODPIData
) -> Result<()>
[src]
pub fn append_element(
&self,
native_type: ODPINativeTypeNum,
data: &mut ODPIData
) -> Result<()>
Sets the value of the element found at the specified index.
pub fn copy_object(&self) -> Result<Self>
[src]
pub fn copy_object(&self) -> Result<Self>
Creates an independent copy of an object and returns a reference to the newly created object. This reference should be released as soon as it is no longer needed.
pub fn delete_element_by_index(&self, index: i32) -> Result<()>
[src]
pub fn delete_element_by_index(&self, index: i32) -> Result<()>
Deletes an element from the collection. Note that the position ordinals of the remaining elements are not changed. The delete operation creates holes in the collection.
pub fn get_attribute_value(
&self,
attr: &ObjectAttr,
info: &ODPIObjectAttrInfo
) -> Result<ODPIData>
[src]
pub fn get_attribute_value(
&self,
attr: &ObjectAttr,
info: &ODPIObjectAttrInfo
) -> Result<ODPIData>
Returns the value of one of the object's attributes.
pub fn get_element_exists_by_index(&self, index: i32) -> Result<bool>
[src]
pub fn get_element_exists_by_index(&self, index: i32) -> Result<bool>
Returns whether an element exists at the specified index.
pub fn get_element_value_by_index(
&self,
index: i32,
native_type: ODPINativeTypeNum
) -> Result<ODPIData>
[src]
pub fn get_element_value_by_index(
&self,
index: i32,
native_type: ODPINativeTypeNum
) -> Result<ODPIData>
Returns the value of the element found at the specified index.
pub fn get_first_index(&self) -> Result<(i32, bool)>
[src]
pub fn get_first_index(&self) -> Result<(i32, bool)>
Returns the first index used in a collection.
pub fn get_last_index(&self) -> Result<(i32, bool)>
[src]
pub fn get_last_index(&self) -> Result<(i32, bool)>
Returns the last index used in a collection.
pub fn get_next_index(&self, index: i32) -> Result<(i32, bool)>
[src]
pub fn get_next_index(&self, index: i32) -> Result<(i32, bool)>
Returns the next index used in a collection following the specified index.
pub fn get_prev_index(&self, index: i32) -> Result<(i32, bool)>
[src]
pub fn get_prev_index(&self, index: i32) -> Result<(i32, bool)>
Returns the previous index used in a collection preceding the specified index.
pub fn get_size(&self) -> Result<i32>
[src]
pub fn get_size(&self) -> Result<i32>
Returns the number of elements in a collection.
pub fn set_attribute_value(
&self,
attribute: &ObjectAttr,
native_type: ODPINativeTypeNum,
value: &Data
) -> Result<()>
[src]
pub fn set_attribute_value(
&self,
attribute: &ObjectAttr,
native_type: ODPINativeTypeNum,
value: &Data
) -> Result<()>
Sets the value of one of the object’s attributes.
pub fn set_element_value_by_index(
&self,
index: i32,
native_type: ODPINativeTypeNum,
value: &Data
) -> Result<()>
[src]
pub fn set_element_value_by_index(
&self,
index: i32,
native_type: ODPINativeTypeNum,
value: &Data
) -> Result<()>
Sets the value of the element found at the specified index.
pub fn trim(&self, num_to_trim: u32) -> Result<()>
[src]
pub fn trim(&self, num_to_trim: u32) -> Result<()>
Trims a number of elements from the end of a collection.
Trait Implementations
impl Clone for Object
[src]
impl Clone for Object
fn clone(&self) -> Object
[src]
fn clone(&self) -> Object
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Object
[src]
impl Debug for Object
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<*mut ODPIObject> for Object
[src]
impl From<*mut ODPIObject> for Object
impl Drop for Object
[src]
impl Drop for Object