classname_fixed_get

This function reads all of the fixed size (not char, string or BLOB) field values in a single call.

Prototype

 
    MCO_RET	classname_fixed_get(	/*IN*/ classname *handle, 
                      /*OUT*/ classname_fixed * value);
 

Arguments

handle A pointer to a classname handle

value

A pointer to a structure variable of type classname_fixed into which will be read fixed length data from the object referenced by handle

Description

This function reads all of the fixed size (not char, string or BLOB) field values in a single call. The C structure pointer value will receive the fixed size data.

Return Codes

MCO_S_OK The values were read successfully
MCO_E_TRANSACT  

MCO_ERR_OBJECT_HANDLE

 

Example

 
 
    Application snippet:
            
     
    const char * db_name = "operations";

 
    int main(int argc, char* argv[])
     {
     
        MCO_RET         rc;
        sample_memory_t dbmem;
        sample_os_initialize(DEFAULT);
        /* Start eXtremeDB runtime */
        mco_runtime_start();
         
        sample_header("Sample 'operations' performs basic insert, read, and update operations.\n" );
        rc = sample_open_database( db_name, simpledb_get_dictionary(), DATABASE_SIZE, CACHE_SIZE,
        MEMORY_PAGE_SIZE, PSTORAGE_PAGE_SIZE, 1, &dbmem );
 
        ...
         
        /* Get field values from A_fixed */
        printf("\n\tUsing A_fixed :\n" );
        A_fixed_get(&a, &_a);
            
         
    }
 
     

Related Topics Link IconRelated Topics