FileList > cubrid > src > object > transform_cl.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "porting.h"
#include "memory_alloc.h"
#include "error_manager.h"
#include "work_space.h"
#include "oid.h"
#include "object_representation.h"
#include "object_domain.h"
#include "object_primitive.h"
#include "class_object.h"
#include "set_object.h"
#include "transform.h"
#include "transform_cl.h"
#include "schema_manager.h"
#include "locator_cl.h"
#include "object_accessor.h"
#include "trigger_manager.h"
#include "locator.h"
#include "server_interface.h"
#include "execute_statement.h"
#include "db_json.hpp"
#include "dbtype.h"
Classes
Public Types
Public Attributes
Public Functions
| Type |
Name |
| TF_STATUS |
tf_class_to_disk (MOBJ classobj, RECDES * record)
|
| MOBJ |
tf_disk_to_class (OID * oid, RECDES * record)
|
| MOBJ |
tf_disk_to_mem (MOBJ classobj, RECDES * record, int * convertp)
|
| void |
tf_dump_class_size (MOBJ classobj)
|
| int |
tf_find_temporary_oids (LC_OIDSET * oidset, MOBJ classobj, MOBJ obj)
|
| TF_STATUS |
tf_mem_to_disk (MOP classmop, MOBJ classobj, MOBJ volatile obj, RECDES * record, bool * index_flag)
|
| OID * |
tf_need_permanent_oid (or_buf * buf, DB_OBJECT * obj)
|
| int |
tf_object_size (MOBJ classobj, MOBJ obj)
|
| int |
tf_pack_set (DB_SET * set, char * buffer, int buffer_size, int * actual_bytes)
|
| int |
tf_set_size (DB_SET * set)
|
Public Static Functions
| Type |
Name |
| int |
attribute_size (SM_ATTRIBUTE * att)
|
| int |
attribute_to_disk (OR_BUF * buf, SM_ATTRIBUTE * att)
|
| void |
attribute_to_disk_lwriter (void * buf, void * att)
|
| int |
check_class_structure (SM_CLASS * class_)
|
| void |
class_to_disk (OR_BUF * buf, SM_CLASS * class_)
|
| void |
clear_new_unbound (char * obj, SM_CLASS * class_, SM_REPRESENTATION * oldrep)
|
| void |
disk_to_attribute (OR_BUF * buf, SM_ATTRIBUTE * att)
|
| SM_CLASS * |
disk_to_class (OR_BUF * buf, SM_CLASS ** class_ptr)
|
| TP_DOMAIN * |
disk_to_domain (OR_BUF * buf)
|
| TP_DOMAIN * |
disk_to_domain2 (OR_BUF * buf)
|
| SM_METHOD_ARGUMENT * |
disk_to_metharg (OR_BUF * buf)
|
| SM_METHOD_FILE * |
disk_to_methfile (OR_BUF * buf)
|
| void |
disk_to_method (OR_BUF * buf, SM_METHOD * method)
|
| SM_METHOD_SIGNATURE * |
disk_to_methsig (OR_BUF * buf)
|
| SM_PARTITION * |
disk_to_partition_info (OR_BUF * buf)
|
| SM_QUERY_SPEC * |
disk_to_query_spec (OR_BUF * buf)
|
| SM_REPR_ATTRIBUTE * |
disk_to_repattribute (OR_BUF * buf)
|
| SM_REPRESENTATION * |
disk_to_representation (OR_BUF * buf)
|
| SM_RESOLUTION * |
disk_to_resolution (OR_BUF * buf)
|
| ROOT_CLASS * |
disk_to_root (OR_BUF * buf)
|
| int |
domain_size (TP_DOMAIN * domain)
|
| void |
domain_to_disk (OR_BUF * buf, TP_DOMAIN * domain)
|
| int |
enumeration_size (const DB_ENUMERATION * enumeration)
|
| SM_ATTRIBUTE * |
find_current_attribute (SM_CLASS * class_, int id)
|
| void |
fixup_callback (LC_OIDMAP * oidmap)
|
| void |
free_var_table (OR_VARINFO * vars)
|
| char * |
get_current (OR_BUF * buf, SM_CLASS * class_, MOBJ * obj_ptr, int bound_bit_flag, int offset_size)
|
| int |
get_enumeration (OR_BUF * buf, DB_ENUMERATION * enumeration, int expected)
|
| DB_OBJLIST * |
get_object_set (OR_BUF * buf, int expected)
|
| char * |
get_old (OR_BUF * buf, SM_CLASS * class_, MOBJ * obj_ptr, int repid, int bound_bit_flag, int offset_size)
|
| DB_SEQ * |
get_property_list (OR_BUF * buf, int expected_size)
|
| char * |
get_string (OR_BUF * buf, int length)
|
| DB_LIST * |
get_substructure_set (OR_BUF * buf, LREADER reader, int expected)
|
| void |
install_substructure_set (OR_BUF * buf, DB_LIST * list, VREADER reader, int expected)
|
| int |
metharg_size (SM_METHOD_ARGUMENT * arg)
|
| void |
metharg_to_disk (OR_BUF * buf, SM_METHOD_ARGUMENT * arg)
|
| int |
methfile_size (SM_METHOD_FILE * file)
|
| int |
methfile_to_disk (OR_BUF * buf, SM_METHOD_FILE * file)
|
| void |
methfile_to_disk_lwriter (void * buf, void * file)
|
| int |
method_size (SM_METHOD * method)
|
| int |
method_to_disk (OR_BUF * buf, SM_METHOD * method)
|
| void |
method_to_disk_lwriter (void * buf, void * method)
|
| int |
methsig_size (SM_METHOD_SIGNATURE * sig)
|
| int |
methsig_to_disk (OR_BUF * buf, SM_METHOD_SIGNATURE * sig)
|
| void |
methsig_to_disk_lwriter (void * buf, void * sig)
|
| int |
object_set_size (DB_OBJLIST * list)
|
| int |
object_size (SM_CLASS * class_, MOBJ obj, int * offset_size_ptr)
|
| int |
optimize_sets (SM_CLASS * class_, MOBJ volatile obj)
|
| void |
or_pack_mop (OR_BUF * buf, MOP mop)
|
| int |
partition_info_size (SM_PARTITION * partition_info)
|
| int |
partition_info_to_disk (OR_BUF * buf, SM_PARTITION * partition_info)
|
| void |
partition_info_to_disk_lwriter (void * buf, void * partition_info)
|
| int |
property_list_size (DB_SEQ * properties)
|
| int |
put_attributes (OR_BUF * buf, char * obj, SM_CLASS * class_)
|
| void |
put_class_attributes (OR_BUF * buf, SM_CLASS * class_)
|
| int |
put_class_varinfo (OR_BUF * buf, SM_CLASS * class_)
|
| void |
put_enumeration (OR_BUF * buf, const DB_ENUMERATION * e)
|
| int |
put_object_set (OR_BUF * buf, DB_OBJLIST * list)
|
| void |
put_property_list (OR_BUF * buf, DB_SEQ * properties)
|
| void |
put_string (OR_BUF * buf, const char * string)
|
| void |
put_substructure_set (OR_BUF * buf, DB_LIST * list, LWRITER writer, OID * class_, int repid)
|
| int |
put_varinfo (OR_BUF * buf, char * obj, SM_CLASS * class_, int offset_size)
|
| int |
query_spec_size (SM_QUERY_SPEC * statement)
|
| int |
query_spec_to_disk (OR_BUF * buf, SM_QUERY_SPEC * query_spec)
|
| void |
query_spec_to_disk_lwriter (void * buf, void * query_spec)
|
| OR_VARINFO * |
read_var_table (OR_BUF * buf, int nvars)
|
| OR_VARINFO * |
read_var_table_internal (OR_BUF * buf, int nvars, int offset_size)
|
| int |
repattribute_size (SM_REPR_ATTRIBUTE * rat)
|
| int |
repattribute_to_disk (OR_BUF * buf, SM_REPR_ATTRIBUTE * rat)
|
| void |
repattribute_to_disk_lwriter (void * buf, void * rat)
|
| int |
representation_size (SM_REPRESENTATION * rep)
|
| int |
representation_to_disk (OR_BUF * buf, SM_REPRESENTATION * rep)
|
| void |
representation_to_disk_lwriter (void * buf, void * rep)
|
| int |
resolution_size (SM_RESOLUTION * res)
|
| int |
resolution_to_disk (OR_BUF * buf, SM_RESOLUTION * res)
|
| void |
resolution_to_disk_lwriter (void * buf, void * res)
|
| int |
root_size (MOBJ rootobj)
|
| void |
root_to_disk (OR_BUF * buf, ROOT_CLASS * root)
|
| int |
string_disk_size (const char * string)
|
| int |
substructure_set_size (DB_LIST * list, LSIZER function)
|
| void |
tag_component_namespace (SM_COMPONENT * components, SM_NAME_SPACE name_space)
|
| int |
tf_add_fixup (OR_FIXUP * fix, DB_OBJECT * obj, void * ref)
|
| int |
tf_attribute_default_expr_to_property (SM_ATTRIBUTE * attr_list)
|
| int |
tf_class_size (MOBJ classobj)
|
| int |
tf_do_fixup (OR_FIXUP * fix)
|
| void |
tf_free_fixup (OR_FIXUP * fix)
|
| OR_FIXUP * |
tf_make_fixup (void)
|
| char * |
unpack_allocator (int size)
|
Macros
Public Types Documentation
typedef LREADER
typedef DB_LIST *(* LREADER) (void *);
typedef LSIZER
typedef int(* LSIZER) (void *);
typedef LWRITER
typedef void(* LWRITER) (void *, void *);
typedef OR_FIXUP
typedef struct or_fixup OR_FIXUP;
typedef OR_TEMPOID
typedef struct or_tempoid OR_TEMPOID;
typedef VREADER
typedef void(* VREADER) (void *, void *);
Public Attributes Documentation
variable tf_Allow_fixups
const int tf_Allow_fixups;
Public Functions Documentation
function tf_class_to_disk
TF_STATUS tf_class_to_disk (
MOBJ classobj,
RECDES * record
)
function tf_disk_to_class
MOBJ tf_disk_to_class (
OID * oid,
RECDES * record
)
function tf_disk_to_mem
MOBJ tf_disk_to_mem (
MOBJ classobj,
RECDES * record,
int * convertp
)
function tf_dump_class_size
void tf_dump_class_size (
MOBJ classobj
)
function tf_find_temporary_oids
int tf_find_temporary_oids (
LC_OIDSET * oidset,
MOBJ classobj,
MOBJ obj
)
function tf_mem_to_disk
TF_STATUS tf_mem_to_disk (
MOP classmop,
MOBJ classobj,
MOBJ volatile obj,
RECDES * record,
bool * index_flag
)
function tf_need_permanent_oid
OID * tf_need_permanent_oid (
or_buf * buf,
DB_OBJECT * obj
)
function tf_object_size
int tf_object_size (
MOBJ classobj,
MOBJ obj
)
function tf_pack_set
int tf_pack_set (
DB_SET * set,
char * buffer,
int buffer_size,
int * actual_bytes
)
function tf_set_size
int tf_set_size (
DB_SET * set
)
Public Static Functions Documentation
function attribute_size
static int attribute_size (
SM_ATTRIBUTE * att
)
function attribute_to_disk
static int attribute_to_disk (
OR_BUF * buf,
SM_ATTRIBUTE * att
)
function attribute_to_disk_lwriter
static inline void attribute_to_disk_lwriter (
void * buf,
void * att
)
function check_class_structure
static int check_class_structure (
SM_CLASS * class_
)
function class_to_disk
static void class_to_disk (
OR_BUF * buf,
SM_CLASS * class_
)
function clear_new_unbound
static void clear_new_unbound (
char * obj,
SM_CLASS * class_,
SM_REPRESENTATION * oldrep
)
function disk_to_attribute
static void disk_to_attribute (
OR_BUF * buf,
SM_ATTRIBUTE * att
)
function disk_to_class
static SM_CLASS * disk_to_class (
OR_BUF * buf,
SM_CLASS ** class_ptr
)
function disk_to_domain
static TP_DOMAIN * disk_to_domain (
OR_BUF * buf
)
function disk_to_domain2
static TP_DOMAIN * disk_to_domain2 (
OR_BUF * buf
)
function disk_to_metharg
static SM_METHOD_ARGUMENT * disk_to_metharg (
OR_BUF * buf
)
function disk_to_methfile
static SM_METHOD_FILE * disk_to_methfile (
OR_BUF * buf
)
function disk_to_method
static void disk_to_method (
OR_BUF * buf,
SM_METHOD * method
)
function disk_to_methsig
static SM_METHOD_SIGNATURE * disk_to_methsig (
OR_BUF * buf
)
function disk_to_partition_info
static SM_PARTITION * disk_to_partition_info (
OR_BUF * buf
)
function disk_to_query_spec
static SM_QUERY_SPEC * disk_to_query_spec (
OR_BUF * buf
)
function disk_to_repattribute
static SM_REPR_ATTRIBUTE * disk_to_repattribute (
OR_BUF * buf
)
function disk_to_representation
static SM_REPRESENTATION * disk_to_representation (
OR_BUF * buf
)
function disk_to_resolution
static SM_RESOLUTION * disk_to_resolution (
OR_BUF * buf
)
function disk_to_root
static ROOT_CLASS * disk_to_root (
OR_BUF * buf
)
function domain_size
static int domain_size (
TP_DOMAIN * domain
)
function domain_to_disk
static void domain_to_disk (
OR_BUF * buf,
TP_DOMAIN * domain
)
function enumeration_size
static int enumeration_size (
const DB_ENUMERATION * enumeration
)
function find_current_attribute
static SM_ATTRIBUTE * find_current_attribute (
SM_CLASS * class_,
int id
)
function fixup_callback
static void fixup_callback (
LC_OIDMAP * oidmap
)
function free_var_table
static void free_var_table (
OR_VARINFO * vars
)
function get_current
static char * get_current (
OR_BUF * buf,
SM_CLASS * class_,
MOBJ * obj_ptr,
int bound_bit_flag,
int offset_size
)
function get_enumeration
static int get_enumeration (
OR_BUF * buf,
DB_ENUMERATION * enumeration,
int expected
)
function get_object_set
static DB_OBJLIST * get_object_set (
OR_BUF * buf,
int expected
)
function get_old
static char * get_old (
OR_BUF * buf,
SM_CLASS * class_,
MOBJ * obj_ptr,
int repid,
int bound_bit_flag,
int offset_size
)
function get_property_list
static DB_SEQ * get_property_list (
OR_BUF * buf,
int expected_size
)
function get_string
static char * get_string (
OR_BUF * buf,
int length
)
function get_substructure_set
static DB_LIST * get_substructure_set (
OR_BUF * buf,
LREADER reader,
int expected
)
function install_substructure_set
static void install_substructure_set (
OR_BUF * buf,
DB_LIST * list,
VREADER reader,
int expected
)
function metharg_size
static int metharg_size (
SM_METHOD_ARGUMENT * arg
)
function metharg_to_disk
static void metharg_to_disk (
OR_BUF * buf,
SM_METHOD_ARGUMENT * arg
)
function methfile_size
static int methfile_size (
SM_METHOD_FILE * file
)
function methfile_to_disk
static int methfile_to_disk (
OR_BUF * buf,
SM_METHOD_FILE * file
)
function methfile_to_disk_lwriter
static inline void methfile_to_disk_lwriter (
void * buf,
void * file
)
function method_size
static int method_size (
SM_METHOD * method
)
function method_to_disk
static int method_to_disk (
OR_BUF * buf,
SM_METHOD * method
)
function method_to_disk_lwriter
static inline void method_to_disk_lwriter (
void * buf,
void * method
)
function methsig_size
static int methsig_size (
SM_METHOD_SIGNATURE * sig
)
function methsig_to_disk
static int methsig_to_disk (
OR_BUF * buf,
SM_METHOD_SIGNATURE * sig
)
function methsig_to_disk_lwriter
static inline void methsig_to_disk_lwriter (
void * buf,
void * sig
)
function object_set_size
static int object_set_size (
DB_OBJLIST * list
)
function object_size
static int object_size (
SM_CLASS * class_,
MOBJ obj,
int * offset_size_ptr
)
function optimize_sets
static int optimize_sets (
SM_CLASS * class_,
MOBJ volatile obj
)
function or_pack_mop
static void or_pack_mop (
OR_BUF * buf,
MOP mop
)
function partition_info_size
static int partition_info_size (
SM_PARTITION * partition_info
)
function partition_info_to_disk
static int partition_info_to_disk (
OR_BUF * buf,
SM_PARTITION * partition_info
)
function partition_info_to_disk_lwriter
static inline void partition_info_to_disk_lwriter (
void * buf,
void * partition_info
)
function property_list_size
static int property_list_size (
DB_SEQ * properties
)
function put_attributes
static int put_attributes (
OR_BUF * buf,
char * obj,
SM_CLASS * class_
)
function put_class_attributes
static void put_class_attributes (
OR_BUF * buf,
SM_CLASS * class_
)
function put_class_varinfo
static int put_class_varinfo (
OR_BUF * buf,
SM_CLASS * class_
)
function put_enumeration
static void put_enumeration (
OR_BUF * buf,
const DB_ENUMERATION * e
)
function put_object_set
static int put_object_set (
OR_BUF * buf,
DB_OBJLIST * list
)
function put_property_list
static void put_property_list (
OR_BUF * buf,
DB_SEQ * properties
)
function put_string
static void put_string (
OR_BUF * buf,
const char * string
)
function put_substructure_set
static void put_substructure_set (
OR_BUF * buf,
DB_LIST * list,
LWRITER writer,
OID * class_,
int repid
)
function put_varinfo
static int put_varinfo (
OR_BUF * buf,
char * obj,
SM_CLASS * class_,
int offset_size
)
function query_spec_size
static int query_spec_size (
SM_QUERY_SPEC * statement
)
function query_spec_to_disk
static int query_spec_to_disk (
OR_BUF * buf,
SM_QUERY_SPEC * query_spec
)
function query_spec_to_disk_lwriter
static inline void query_spec_to_disk_lwriter (
void * buf,
void * query_spec
)
function read_var_table
static OR_VARINFO * read_var_table (
OR_BUF * buf,
int nvars
)
function read_var_table_internal
static OR_VARINFO * read_var_table_internal (
OR_BUF * buf,
int nvars,
int offset_size
)
function repattribute_size
static int repattribute_size (
SM_REPR_ATTRIBUTE * rat
)
function repattribute_to_disk
static int repattribute_to_disk (
OR_BUF * buf,
SM_REPR_ATTRIBUTE * rat
)
function repattribute_to_disk_lwriter
static inline void repattribute_to_disk_lwriter (
void * buf,
void * rat
)
function representation_size
static int representation_size (
SM_REPRESENTATION * rep
)
function representation_to_disk
static int representation_to_disk (
OR_BUF * buf,
SM_REPRESENTATION * rep
)
function representation_to_disk_lwriter
static inline void representation_to_disk_lwriter (
void * buf,
void * rep
)
function resolution_size
static int resolution_size (
SM_RESOLUTION * res
)
function resolution_to_disk
static int resolution_to_disk (
OR_BUF * buf,
SM_RESOLUTION * res
)
function resolution_to_disk_lwriter
static inline void resolution_to_disk_lwriter (
void * buf,
void * res
)
function root_size
static int root_size (
MOBJ rootobj
)
function root_to_disk
static void root_to_disk (
OR_BUF * buf,
ROOT_CLASS * root
)
function string_disk_size
static int string_disk_size (
const char * string
)
function substructure_set_size
static int substructure_set_size (
DB_LIST * list,
LSIZER function
)
function tag_component_namespace
static void tag_component_namespace (
SM_COMPONENT * components,
SM_NAME_SPACE name_space
)
function tf_add_fixup
static int tf_add_fixup (
OR_FIXUP * fix,
DB_OBJECT * obj,
void * ref
)
function tf_attribute_default_expr_to_property
static int tf_attribute_default_expr_to_property (
SM_ATTRIBUTE * attr_list
)
function tf_class_size
static int tf_class_size (
MOBJ classobj
)
function tf_do_fixup
static int tf_do_fixup (
OR_FIXUP * fix
)
function tf_free_fixup
static void tf_free_fixup (
OR_FIXUP * fix
)
function tf_make_fixup
static OR_FIXUP * tf_make_fixup (
void
)
function unpack_allocator
static char * unpack_allocator (
int size
)
Macro Definition Documentation
define TF_FIXUP_REFERENCE_QUANT
#define TF_FIXUP_REFERENCE_QUANT `32`
The documentation for this class was generated from the following file cubrid/src/object/transform_cl.c