File object_accessor.h
FileList > cubrid > src > object > object_accessor.h
Go to the source code of this file
#include <stdarg.h>
#include "area_alloc.h"
#include "class_object.h"
#include "object_fetch.h"
#include "object_template.h"
#include "work_space.h"
Public Functions
| Type |
Name |
| char * |
obj_alloc (SM_CLASS * class_, int bound_bit_status)
|
| int |
obj_assign_value (MOP op, SM_ATTRIBUTE * att, char * mem, DB_VALUE * value)
|
| int |
obj_class_lock (MOP op, int for_write)
|
| MOP |
obj_copy (MOP op)
|
| MOP |
obj_create (MOP classop)
|
| MOP |
obj_create_by_name (const char * name)
|
| int |
obj_delete (MOP op)
|
| MOP |
obj_desc_find_unique (MOP op, SM_DESCRIPTOR * desc, DB_VALUE * value, AU_FETCHMODE fetchmode)
|
| int |
obj_desc_get (MOP op, SM_DESCRIPTOR * desc, DB_VALUE * value)
|
| int |
obj_desc_send_array (MOP obj, SM_DESCRIPTOR * desc, DB_VALUE * returnval, DB_VALUE ** argarray)
|
| int |
obj_desc_send_array_quick (MOP obj, SM_DESCRIPTOR * desc, DB_VALUE * returnval, int nargs, DB_VALUE ** argarray)
|
| int |
obj_desc_send_list (MOP obj, SM_DESCRIPTOR * desc, DB_VALUE * returnval, DB_VALUE_LIST * arglist)
|
| int |
obj_desc_send_stack (MOP obj, SM_DESCRIPTOR * desc, DB_VALUE * returnval, ...)
|
| int |
obj_desc_send_va (MOP obj, SM_DESCRIPTOR * desc, DB_VALUE * returnval, va_list args)
|
| int |
obj_desc_set (MOP op, SM_DESCRIPTOR * desc, DB_VALUE * value)
|
| MOP |
obj_find_multi_attr (MOP op, int size, const char * attr_names, const DB_VALUE * values, AU_FETCHMODE fetchmode)
|
| MOP |
obj_find_multi_desc (MOP op, int size, const SM_DESCRIPTOR * desc, const DB_VALUE * values, AU_FETCHMODE fetchmode)
|
| MOP |
obj_find_object_by_pkey (MOP classop, DB_VALUE * key, AU_FETCHMODE fetchmode)
|
| MOP |
obj_find_primary_key (MOP op, const DB_VALUE ** values, int size, AU_FETCHMODE fetchmode)
|
| MOP |
obj_find_unique (MOP op, const char * attname, DB_VALUE * value, AU_FETCHMODE fetchmode)
|
| int |
obj_find_unique_id (MOP op, const char * att_name, BTID * id_array, int id_array_size, int * total_ids)
|
| void |
obj_free_memory (SM_CLASS * class_, MOBJ obj)
|
| int |
obj_get (MOP op, const char * name, DB_VALUE * value)
|
| int |
obj_get_att (MOP op, SM_CLASS * class_, SM_ATTRIBUTE * att, DB_VALUE * value)
|
| int |
obj_get_path (DB_OBJECT * object, const char * attpath, DB_VALUE * value)
|
| int |
obj_get_shared (MOP op, const char * name, DB_VALUE * value)
|
| int |
obj_get_value (MOP op, SM_ATTRIBUTE * att, void * mem, DB_VALUE * source, DB_VALUE * dest)
|
| int |
obj_inst_lock (MOP op, int for_write)
|
| int |
obj_is_instance_of (MOP obj, MOP class_mop)
|
| int |
obj_isclass (MOP obj)
|
| int |
obj_isinstance (MOP obj)
|
| int |
obj_locate_attribute (MOP op, int attid, int for_write, char ** memp, SM_ATTRIBUTE ** attp)
|
| int |
obj_lock (MOP op, int for_write)
|
| MOP |
obj_repl_find_object_by_pkey (MOP classop, DB_VALUE * key, AU_FETCHMODE fetchmode)
|
| int |
obj_send (MOP obj, const char * name, DB_VALUE * returnval, DB_VALUE_LIST * arglist)
|
| int |
obj_send_array (MOP obj, const char * name, DB_VALUE * returnval, DB_VALUE ** argarray)
|
| int |
obj_send_list (MOP obj, const char * name, DB_VALUE * returnval, DB_VALUE_LIST * arglist)
|
| int |
obj_send_stack (MOP obj, const char * name, DB_VALUE * returnval, ...)
|
| int |
obj_send_va (MOP obj, const char * name, DB_VALUE * returnval, va_list args)
|
| int |
obj_set (MOP op, const char * name, DB_VALUE * value)
|
| int |
obj_set_shared (MOP op, const char * name, DB_VALUE * value)
|
Macros
| Type |
Name |
| define |
OBJ_BOUND_BIT_BYTES [**OR\_BOUND\_BIT\_BYTES**](object__representation_8h.md#define-or_bound_bit_bytes)
|
| define |
OBJ_BOUND_BIT_WORDS [**OR\_BOUND\_BIT\_WORDS**](object__representation_8h.md#define-or_bound_bit_words)
|
| define |
OBJ_CLEAR_BOUND_BIT (obj, element) [**OR\_CLEAR\_BOUND\_BIT**](object__representation_8h.md#define-or_clear_bound_bit)([**OBJ\_GET\_BOUND\_BITS**](object__accessor_8h.md#define-obj_get_bound_bits)(obj), element)
|
| define |
OBJ_GET_BOUND_BIT (obj, element) [**OR\_GET\_BOUND\_BIT**](object__representation_8h.md#define-or_get_bound_bit)([**OBJ\_GET\_BOUND\_BITS**](object__accessor_8h.md#define-obj_get_bound_bits)(obj), element)
|
| define |
OBJ_GET_BOUND_BITS (obj) (([**char**](broker__monitor_8c.md#function-timeout) \*)(obj) + [**OBJ\_HEADER\_BOUND\_BITS\_OFFSET**](object__accessor_8h.md#define-obj_header_bound_bits_offset))
|
| define |
OBJ_HEADER_BOUND_BITS_OFFSET 4
|
| define |
OBJ_HEADER_CHN_OFFSET 0
|
| define |
OBJ_HEADER_FIXED_SIZE 4
|
| define |
OBJ_HEADER_SIZE (nvars) [**OBJ\_HEADER\_FIXED\_SIZE**](object__accessor_8h.md#define-obj_header_fixed_size) + [**OR\_BOUND\_BIT\_BYTES**](object__representation_8h.md#define-or_bound_bit_bytes)([**nvars**](broker__monitor_8c.md#function-timeout))
|
| define |
OBJ_SET_BOUND_BIT (obj, element) [**OR\_ENABLE\_BOUND\_BIT**](object__representation_8h.md#define-or_enable_bound_bit)([**OBJ\_GET\_BOUND\_BITS**](object__accessor_8h.md#define-obj_get_bound_bits)(obj), element)
|
Public Functions Documentation
function obj_alloc
char * obj_alloc (
SM_CLASS * class_,
int bound_bit_status
)
function obj_assign_value
int obj_assign_value (
MOP op,
SM_ATTRIBUTE * att,
char * mem,
DB_VALUE * value
)
function obj_class_lock
int obj_class_lock (
MOP op,
int for_write
)
function obj_copy
function obj_create
MOP obj_create (
MOP classop
)
function obj_create_by_name
MOP obj_create_by_name (
const char * name
)
function obj_delete
int obj_delete (
MOP op
)
function obj_desc_find_unique
MOP obj_desc_find_unique (
MOP op,
SM_DESCRIPTOR * desc,
DB_VALUE * value,
AU_FETCHMODE fetchmode
)
function obj_desc_get
int obj_desc_get (
MOP op,
SM_DESCRIPTOR * desc,
DB_VALUE * value
)
function obj_desc_send_array
int obj_desc_send_array (
MOP obj,
SM_DESCRIPTOR * desc,
DB_VALUE * returnval,
DB_VALUE ** argarray
)
function obj_desc_send_array_quick
int obj_desc_send_array_quick (
MOP obj,
SM_DESCRIPTOR * desc,
DB_VALUE * returnval,
int nargs,
DB_VALUE ** argarray
)
function obj_desc_send_list
int obj_desc_send_list (
MOP obj,
SM_DESCRIPTOR * desc,
DB_VALUE * returnval,
DB_VALUE_LIST * arglist
)
function obj_desc_send_stack
int obj_desc_send_stack (
MOP obj,
SM_DESCRIPTOR * desc,
DB_VALUE * returnval,
...
)
function obj_desc_send_va
int obj_desc_send_va (
MOP obj,
SM_DESCRIPTOR * desc,
DB_VALUE * returnval,
va_list args
)
function obj_desc_set
int obj_desc_set (
MOP op,
SM_DESCRIPTOR * desc,
DB_VALUE * value
)
function obj_find_multi_attr
MOP obj_find_multi_attr (
MOP op,
int size,
const char * attr_names,
const DB_VALUE * values,
AU_FETCHMODE fetchmode
)
function obj_find_multi_desc
MOP obj_find_multi_desc (
MOP op,
int size,
const SM_DESCRIPTOR * desc,
const DB_VALUE * values,
AU_FETCHMODE fetchmode
)
function obj_find_object_by_pkey
MOP obj_find_object_by_pkey (
MOP classop,
DB_VALUE * key,
AU_FETCHMODE fetchmode
)
function obj_find_primary_key
MOP obj_find_primary_key (
MOP op,
const DB_VALUE ** values,
int size,
AU_FETCHMODE fetchmode
)
function obj_find_unique
MOP obj_find_unique (
MOP op,
const char * attname,
DB_VALUE * value,
AU_FETCHMODE fetchmode
)
function obj_find_unique_id
int obj_find_unique_id (
MOP op,
const char * att_name,
BTID * id_array,
int id_array_size,
int * total_ids
)
function obj_free_memory
void obj_free_memory (
SM_CLASS * class_,
MOBJ obj
)
function obj_get
int obj_get (
MOP op,
const char * name,
DB_VALUE * value
)
function obj_get_att
int obj_get_att (
MOP op,
SM_CLASS * class_,
SM_ATTRIBUTE * att,
DB_VALUE * value
)
function obj_get_path
int obj_get_path (
DB_OBJECT * object,
const char * attpath,
DB_VALUE * value
)
function obj_get_shared
int obj_get_shared (
MOP op,
const char * name,
DB_VALUE * value
)
function obj_get_value
int obj_get_value (
MOP op,
SM_ATTRIBUTE * att,
void * mem,
DB_VALUE * source,
DB_VALUE * dest
)
function obj_inst_lock
int obj_inst_lock (
MOP op,
int for_write
)
function obj_is_instance_of
int obj_is_instance_of (
MOP obj,
MOP class_mop
)
function obj_isclass
int obj_isclass (
MOP obj
)
function obj_isinstance
int obj_isinstance (
MOP obj
)
function obj_locate_attribute
int obj_locate_attribute (
MOP op,
int attid,
int for_write,
char ** memp,
SM_ATTRIBUTE ** attp
)
function obj_lock
int obj_lock (
MOP op,
int for_write
)
function obj_repl_find_object_by_pkey
MOP obj_repl_find_object_by_pkey (
MOP classop,
DB_VALUE * key,
AU_FETCHMODE fetchmode
)
function obj_send
int obj_send (
MOP obj,
const char * name,
DB_VALUE * returnval,
DB_VALUE_LIST * arglist
)
function obj_send_array
int obj_send_array (
MOP obj,
const char * name,
DB_VALUE * returnval,
DB_VALUE ** argarray
)
function obj_send_list
int obj_send_list (
MOP obj,
const char * name,
DB_VALUE * returnval,
DB_VALUE_LIST * arglist
)
function obj_send_stack
int obj_send_stack (
MOP obj,
const char * name,
DB_VALUE * returnval,
...
)
function obj_send_va
int obj_send_va (
MOP obj,
const char * name,
DB_VALUE * returnval,
va_list args
)
function obj_set
int obj_set (
MOP op,
const char * name,
DB_VALUE * value
)
function obj_set_shared
int obj_set_shared (
MOP op,
const char * name,
DB_VALUE * value
)
Macro Definition Documentation
define OBJ_BOUND_BIT_BYTES
#define OBJ_BOUND_BIT_BYTES `OR_BOUND_BIT_BYTES`
define OBJ_BOUND_BIT_WORDS
#define OBJ_BOUND_BIT_WORDS `OR_BOUND_BIT_WORDS`
define OBJ_CLEAR_BOUND_BIT
#define OBJ_CLEAR_BOUND_BIT (
obj,
element
) `OR_CLEAR_BOUND_BIT ( OBJ_GET_BOUND_BITS (obj), element)`
define OBJ_GET_BOUND_BIT
#define OBJ_GET_BOUND_BIT (
obj,
element
) `OR_GET_BOUND_BIT ( OBJ_GET_BOUND_BITS (obj), element)`
define OBJ_GET_BOUND_BITS
#define OBJ_GET_BOUND_BITS (
obj
) `(( char *)(obj) + OBJ_HEADER_BOUND_BITS_OFFSET )`
#define OBJ_HEADER_BOUND_BITS_OFFSET `4`
#define OBJ_HEADER_CHN_OFFSET `0`
#define OBJ_HEADER_FIXED_SIZE `4`
#define OBJ_HEADER_SIZE (
nvars
) `OBJ_HEADER_FIXED_SIZE + OR_BOUND_BIT_BYTES ( nvars )`
define OBJ_SET_BOUND_BIT
#define OBJ_SET_BOUND_BIT (
obj,
element
) `OR_ENABLE_BOUND_BIT ( OBJ_GET_BOUND_BITS (obj), element)`
The documentation for this class was generated from the following file cubrid/src/object/object_accessor.h