CUBRID Engine  latest
transform.c File Reference
#include "config.h"
#include <stdlib.h>
#include "error_manager.h"
#include "object_representation.h"
#include "object_domain.h"
#include "object_primitive.h"
#include "transform.h"
#include "intl_support.h"
#include "language_support.h"
#include "system_catalog.h"
Include dependency graph for transform.c:

Go to the source code of this file.

Functions

bool tf_is_catalog_class (OID *class_oid)
 
void tf_compile_meta_classes ()
 
int tf_install_meta_classes ()
 

Variables

static META_ATTRIBUTE domain_atts []
 
META_CLASS tf_Metaclass_domain
 
static META_ATTRIBUTE att_atts []
 
META_CLASS tf_Metaclass_attribute
 
static META_ATTRIBUTE metharg_atts []
 
META_CLASS tf_Metaclass_metharg
 
static META_ATTRIBUTE methsig_atts []
 
META_CLASS tf_Metaclass_methsig
 
static META_ATTRIBUTE meth_atts []
 
META_CLASS tf_Metaclass_method
 
static META_ATTRIBUTE methfile_atts []
 
META_CLASS tf_Metaclass_methfile
 
static META_ATTRIBUTE res_atts []
 
META_CLASS tf_Metaclass_resolution
 
static META_ATTRIBUTE repatt_atts []
 
META_CLASS tf_Metaclass_repattribute
 
static META_ATTRIBUTE rep_atts []
 
META_CLASS tf_Metaclass_representation
 
static META_ATTRIBUTE class_atts []
 
META_CLASS tf_Metaclass_class
 
static META_ATTRIBUTE query_spec_atts []
 
META_CLASS tf_Metaclass_query_spec
 
static META_ATTRIBUTE partition_atts []
 
META_CLASS tf_Metaclass_partition
 
static META_ATTRIBUTE root_atts []
 
META_CLASS tf_Metaclass_root = { "rootclass", {META_PAGE_ROOT, 0, META_VOLUME}, 0, 0, 0, &root_atts[0] }
 
static META_CLASSMeta_classes []
 
static CT_ATTR ct_class_atts []
 
static CT_ATTR ct_attribute_atts []
 
static CT_ATTR ct_attrid_atts []
 
static CT_ATTR ct_domain_atts []
 
static CT_ATTR ct_method_atts []
 
static CT_ATTR ct_methsig_atts []
 
static CT_ATTR ct_metharg_atts []
 
static CT_ATTR ct_methfile_atts []
 
static CT_ATTR ct_queryspec_atts []
 
static CT_ATTR ct_resolution_atts []
 
static CT_ATTR ct_index_atts []
 
static CT_ATTR ct_indexkey_atts []
 
static CT_ATTR ct_partition_atts []
 
CT_CLASS ct_Class
 
CT_CLASS ct_Attribute
 
CT_CLASS ct_Attrid
 
CT_CLASS ct_Domain
 
CT_CLASS ct_Method
 
CT_CLASS ct_Methsig
 
CT_CLASS ct_Metharg
 
CT_CLASS ct_Methfile
 
CT_CLASS ct_Queryspec
 
CT_CLASS ct_Partition
 
CT_CLASS ct_Resolution
 
CT_CLASS ct_Index
 
CT_CLASS ct_Indexkey
 
CT_CLASSct_Classes []
 

Function Documentation

int tf_install_meta_classes ( void  )

Definition at line 603 of file transform.c.

References NO_ERROR.

Referenced by boot_create_all_volumes().

Here is the caller graph for this function:

bool tf_is_catalog_class ( OID class_oid)

Definition at line 523 of file transform.c.

References NULL, and OID_EQ.

Referenced by xbtree_find_unique().

Here is the caller graph for this function:

Variable Documentation

META_ATTRIBUTE att_atts[]
static
Initial value:
= {
{"id", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"type", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"offset", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"order", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"class", DB_TYPE_OBJECT, 1, META_CLASS_NAME, 0, 0, NULL},
{"flags", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"index_fileid", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"index_root_pageid", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"index_volid_key", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"name", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"value", DB_TYPE_VARIABLE, 1, NULL, 0, 0, NULL},
{"original_value", DB_TYPE_VARIABLE, 0, NULL, 0, 0, NULL},
{"domain", DB_TYPE_SET, 1, META_DOMAIN_NAME, 0, 0, NULL},
{"triggers", DB_TYPE_SET, 1, "object", 0, 0, NULL},
{"properties", DB_TYPE_SET, 0, NULL, 0, 0, NULL},
{"comment", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_CLASS_NAME
Definition: transform.h:105
#define META_DOMAIN_NAME
Definition: transform.h:107
#define NULL
Definition: freelistheap.h:34

Definition at line 72 of file transform.c.

META_ATTRIBUTE class_atts[]
static

Definition at line 181 of file transform.c.

Referenced by classobj_install_template().

CT_CLASS ct_Attribute
Initial value:
= {
(sizeof (ct_attribute_atts) / sizeof (ct_attribute_atts[0])),
}
#define CT_ATTRIBUTE_NAME
Definition: transform.h:120
#define OID_INITIALIZER
Definition: oid.h:36
static CT_ATTR ct_attribute_atts[]
Definition: transform.c:309

Definition at line 423 of file transform.c.

Referenced by catcls_get_or_value_from_attribute().

CT_ATTR ct_attribute_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"attr_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"attr_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"from_attr_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"data_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"def_order", NULL_ATTRID, DB_TYPE_INTEGER},
{"from_class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"is_nullable", NULL_ATTRID, DB_TYPE_INTEGER},
{"default_value", NULL_ATTRID, DB_TYPE_VARCHAR},
{"comment", NULL_ATTRID, DB_TYPE_VARCHAR}
}
#define NULL_ATTRID

Definition at line 309 of file transform.c.

CT_CLASS ct_Attrid
Initial value:
= {
(sizeof (ct_attrid_atts) / sizeof (ct_attrid_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
static CT_ATTR ct_attrid_atts[]
Definition: transform.c:323
#define NULL
Definition: freelistheap.h:34

Definition at line 430 of file transform.c.

Referenced by catcls_get_or_value_from_attrid().

CT_ATTR ct_attrid_atts[]
static
Initial value:

Definition at line 323 of file transform.c.

CT_ATTR ct_class_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"inst_attr_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"shared_attr_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"inst_meth_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"class_meth_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"class_attr_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"is_system_class", NULL_ATTRID, DB_TYPE_INTEGER},
{"class_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"owner", NULL_ATTRID, DB_TYPE_OBJECT},
{"collation_id", NULL_ATTRID, DB_TYPE_INTEGER},
{"tde_algorithm", NULL_ATTRID, DB_TYPE_INTEGER},
{"class_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"sub_classes", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"super_classes", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"inst_attrs", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"shared_attrs", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"class_attrs", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"inst_meths", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"class_meths", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"meth_files", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"query_specs", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"indexes", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"comment", NULL_ATTRID, DB_TYPE_VARCHAR},
{"partition", NULL_ATTRID, DB_TYPE_SEQUENCE}
}
#define NULL_ATTRID

Definition at line 282 of file transform.c.

CT_CLASS* ct_Classes[]
Initial value:
= {
}
CT_CLASS ct_Index
Definition: transform.c:493
CT_CLASS ct_Queryspec
Definition: transform.c:472
CT_CLASS ct_Metharg
Definition: transform.c:458
CT_CLASS ct_Methsig
Definition: transform.c:451
CT_CLASS ct_Partition
Definition: transform.c:479
CT_CLASS ct_Class
Definition: transform.c:416
CT_CLASS ct_Method
Definition: transform.c:444
#define NULL
Definition: freelistheap.h:34
CT_CLASS ct_Domain
Definition: transform.c:437
CT_CLASS ct_Indexkey
Definition: transform.c:500
CT_CLASS ct_Attribute
Definition: transform.c:423
CT_CLASS ct_Methfile
Definition: transform.c:465

Definition at line 507 of file transform.c.

Referenced by catcls_compile_catalog_classes().

CT_CLASS ct_Domain
Initial value:
= {
(sizeof (ct_domain_atts) / sizeof (ct_domain_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_DOMAIN_NAME
Definition: transform.h:121
static CT_ATTR ct_domain_atts[]
Definition: transform.c:328

Definition at line 437 of file transform.c.

Referenced by catcls_get_or_value_from_domain().

CT_ATTR ct_domain_atts[]
static
Initial value:
= {
{"object_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"data_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"prec", NULL_ATTRID, DB_TYPE_INTEGER},
{"scale", NULL_ATTRID, DB_TYPE_INTEGER},
{"code_set", NULL_ATTRID, DB_TYPE_INTEGER},
{"collation_id", NULL_ATTRID, DB_TYPE_INTEGER},
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"enumeration", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"set_domains", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"json_schema", NULL_ATTRID, DB_TYPE_STRING}
}
#define NULL_ATTRID

Definition at line 328 of file transform.c.

CT_CLASS ct_Index
Initial value:
= {
(sizeof (ct_index_atts) / sizeof (ct_index_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_INDEX_NAME
Definition: transform.h:128
static CT_ATTR ct_index_atts[]
Definition: transform.c:383

Definition at line 493 of file transform.c.

Referenced by catcls_get_or_value_from_indexes().

CT_ATTR ct_index_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"index_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"is_unique", NULL_ATTRID, DB_TYPE_INTEGER},
{"key_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"key_attrs", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"is_reverse", NULL_ATTRID, DB_TYPE_INTEGER},
{"is_primary_key", NULL_ATTRID, DB_TYPE_INTEGER},
{"is_foreign_key", NULL_ATTRID, DB_TYPE_INTEGER},
{"filter_expression", NULL_ATTRID, DB_TYPE_VARCHAR},
{"have_function", NULL_ATTRID, DB_TYPE_INTEGER},
{"comment", NULL_ATTRID, DB_TYPE_VARCHAR},
{"status", NULL_ATTRID, DB_TYPE_INTEGER}
}
#define NULL_ATTRID

Definition at line 383 of file transform.c.

CT_CLASS ct_Indexkey
Initial value:
= {
(sizeof (ct_indexkey_atts) / sizeof (ct_indexkey_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
static CT_ATTR ct_indexkey_atts[]
Definition: transform.c:398
#define CT_INDEXKEY_NAME
Definition: transform.h:129

Definition at line 500 of file transform.c.

Referenced by catcls_get_or_value_from_indexes().

CT_ATTR ct_indexkey_atts[]
static
Initial value:
= {
{"index_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"key_attr_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"key_order", NULL_ATTRID, DB_TYPE_INTEGER},
{"asc_desc", NULL_ATTRID, DB_TYPE_INTEGER},
{"key_prefix_length", NULL_ATTRID, DB_TYPE_INTEGER},
{"func", NULL_ATTRID, DB_TYPE_VARCHAR}
}
#define NULL_ATTRID

Definition at line 398 of file transform.c.

CT_CLASS ct_Metharg
Initial value:
= {
(sizeof (ct_metharg_atts) / sizeof (ct_metharg_atts[0])),
}
static CT_ATTR ct_metharg_atts[]
Definition: transform.c:358
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_METHARG_NAME
Definition: transform.h:124

Definition at line 458 of file transform.c.

Referenced by catcls_get_or_value_from_method_argument().

CT_ATTR ct_metharg_atts[]
static
Initial value:
= {
{"meth_sig_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"data_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"index_of", NULL_ATTRID, DB_TYPE_INTEGER},
}
#define NULL_ATTRID

Definition at line 358 of file transform.c.

CT_CLASS ct_Methfile
Initial value:
= {
(sizeof (ct_methfile_atts) / sizeof (ct_methfile_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_METHFILE_NAME
Definition: transform.h:125
static CT_ATTR ct_methfile_atts[]
Definition: transform.c:365

Definition at line 465 of file transform.c.

Referenced by catcls_get_or_value_from_method_file().

CT_ATTR ct_methfile_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"from_class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"path_name", NULL_ATTRID, DB_TYPE_VARCHAR}
}
#define NULL_ATTRID

Definition at line 365 of file transform.c.

CT_CLASS ct_Method
Initial value:
= {
(sizeof (ct_method_atts) / sizeof (ct_method_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
static CT_ATTR ct_method_atts[]
Definition: transform.c:341
#define CT_METHOD_NAME
Definition: transform.h:122

Definition at line 444 of file transform.c.

Referenced by catcls_get_or_value_from_method().

CT_ATTR ct_method_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"meth_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"meth_type", NULL_ATTRID, DB_TYPE_INTEGER},
{"from_meth_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"from_class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"signatures", NULL_ATTRID, DB_TYPE_SEQUENCE}
}
#define NULL_ATTRID

Definition at line 341 of file transform.c.

CT_CLASS ct_Methsig
Initial value:
= {
(sizeof (ct_methsig_atts) / sizeof (ct_methsig_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_METHSIG_NAME
Definition: transform.h:123
static CT_ATTR ct_methsig_atts[]
Definition: transform.c:350

Definition at line 451 of file transform.c.

Referenced by catcls_get_or_value_from_method_signiture().

CT_ATTR ct_methsig_atts[]
static
Initial value:
= {
{"meth_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"arg_count", NULL_ATTRID, DB_TYPE_INTEGER},
{"func_name", NULL_ATTRID, DB_TYPE_VARCHAR},
{"return_value", NULL_ATTRID, DB_TYPE_SEQUENCE},
{"arguments", NULL_ATTRID, DB_TYPE_SEQUENCE}
}
#define NULL_ATTRID

Definition at line 350 of file transform.c.

CT_CLASS ct_Partition
Initial value:
= {
(sizeof (ct_partition_atts) / sizeof (ct_partition_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define CT_PARTITION_NAME
Definition: transform.h:134
static CT_ATTR ct_partition_atts[]
Definition: transform.c:407

Definition at line 479 of file transform.c.

Referenced by catcls_get_or_value_from_partition().

CT_ATTR ct_partition_atts[]
static
Initial value:
= {
{"index_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"pexpr", NULL_ATTRID, DB_TYPE_VARCHAR},
{"comment", NULL_ATTRID, DB_TYPE_VARCHAR}
}
#define NULL_ATTRID

Definition at line 407 of file transform.c.

CT_CLASS ct_Queryspec
Initial value:
= {
(sizeof (ct_queryspec_atts) / sizeof (ct_queryspec_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
static CT_ATTR ct_queryspec_atts[]
Definition: transform.c:371
#define CT_QUERYSPEC_NAME
Definition: transform.h:126

Definition at line 472 of file transform.c.

Referenced by catcls_get_or_value_from_query_spec().

CT_ATTR ct_queryspec_atts[]
static
Initial value:

Definition at line 371 of file transform.c.

CT_CLASS ct_Resolution
Initial value:
= {
(sizeof (ct_resolution_atts) / sizeof (ct_resolution_atts[0])),
}
#define OID_INITIALIZER
Definition: oid.h:36
#define NULL
Definition: freelistheap.h:34
static CT_ATTR ct_resolution_atts[]
Definition: transform.c:376

Definition at line 486 of file transform.c.

Referenced by catcls_get_or_value_from_resolution().

CT_ATTR ct_resolution_atts[]
static
Initial value:
= {
{"class_of", NULL_ATTRID, DB_TYPE_OBJECT},
{"namespace", NULL_ATTRID, DB_TYPE_INTEGER},
{"res_name", NULL_ATTRID, DB_TYPE_VARCHAR}
}
#define NULL_ATTRID

Definition at line 376 of file transform.c.

META_ATTRIBUTE domain_atts[]
static
Initial value:
= {
{"type", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"precision", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"scale", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"codeset", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"collation_id", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"class", DB_TYPE_OBJECT, 1, META_CLASS_NAME, 0, 0, NULL},
{"enumeration", DB_TYPE_SET, 1, NULL, 0, 0, NULL},
{"set_domain", DB_TYPE_SET, 1, META_DOMAIN_NAME, 1, 0, NULL},
{"json_schema", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_CLASS_NAME
Definition: transform.h:105
#define META_DOMAIN_NAME
Definition: transform.h:107
#define NULL
Definition: freelistheap.h:34

Definition at line 54 of file transform.c.

META_CLASS* Meta_classes[]
static
Initial value:
= {
}
META_CLASS tf_Metaclass_methsig
Definition: transform.c:115
META_CLASS tf_Metaclass_method
Definition: transform.c:128
META_CLASS tf_Metaclass_repattribute
Definition: transform.c:162
META_CLASS tf_Metaclass_domain
Definition: transform.c:67
META_CLASS tf_Metaclass_class
Definition: transform.c:221
META_CLASS tf_Metaclass_representation
Definition: transform.c:176
META_CLASS tf_Metaclass_root
Definition: transform.c:256
META_CLASS tf_Metaclass_resolution
Definition: transform.c:151
META_CLASS tf_Metaclass_attribute
Definition: transform.c:91
META_CLASS tf_Metaclass_query_spec
Definition: transform.c:230
#define NULL
Definition: freelistheap.h:34
META_CLASS tf_Metaclass_metharg
Definition: transform.c:102
META_CLASS tf_Metaclass_partition
Definition: transform.c:244
META_CLASS tf_Metaclass_methfile
Definition: transform.c:139

Definition at line 263 of file transform.c.

META_ATTRIBUTE meth_atts[]
static
Initial value:
= {
{"class", DB_TYPE_OBJECT, 1, META_CLASS_NAME, 0, 0, NULL},
{"id", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"name", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"signatures", DB_TYPE_SET, 1, META_METHSIG_NAME, 1, 0, NULL},
{"properties", DB_TYPE_SET, 0, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
#define META_METHSIG_NAME
Definition: transform.h:109
DB_TYPE
Definition: dbtype_def.h:670
#define META_CLASS_NAME
Definition: transform.h:105
#define NULL
Definition: freelistheap.h:34

Definition at line 120 of file transform.c.

META_ATTRIBUTE metharg_atts[]
static
Initial value:
= {
{"type", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"index", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"domain", DB_TYPE_SET, 1, META_DOMAIN_NAME, 1, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_DOMAIN_NAME
Definition: transform.h:107
#define NULL
Definition: freelistheap.h:34

Definition at line 96 of file transform.c.

META_ATTRIBUTE methfile_atts[]
static
Initial value:
= {
{"class", DB_TYPE_OBJECT, 1, META_CLASS_NAME, 0, 0, NULL},
{"name", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"properties", DB_TYPE_SET, 0, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_CLASS_NAME
Definition: transform.h:105
#define NULL
Definition: freelistheap.h:34

Definition at line 133 of file transform.c.

META_ATTRIBUTE methsig_atts[]
static
Initial value:
= {
{"arg_count", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"function_name", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"string_def", DB_TYPE_STRING, 0, NULL, 0, 0, NULL},
{"return_value", DB_TYPE_SET, 1, META_METHARG_NAME, 1, 0, NULL},
{"arguments", DB_TYPE_SET, 1, META_METHARG_NAME, 1, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define NULL
Definition: freelistheap.h:34
#define META_METHARG_NAME
Definition: transform.h:108

Definition at line 107 of file transform.c.

META_ATTRIBUTE partition_atts[]
static
Initial value:
= {
{"ptype", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"pname", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"pexpr", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"pvalues", DB_TYPE_SEQUENCE, 0, NULL, 0, 0, NULL},
{"comment", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define NULL
Definition: freelistheap.h:34

Definition at line 235 of file transform.c.

META_ATTRIBUTE query_spec_atts[]
static
Initial value:
= {
{"specification", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define NULL
Definition: freelistheap.h:34

Definition at line 226 of file transform.c.

META_ATTRIBUTE rep_atts[]
static
Initial value:
= {
{"id", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"fixed_count", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"variable_count", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"fixed_size", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"attributes", DB_TYPE_SET, 0, META_REPATTRIBUTE_NAME, 1, 0, NULL},
{"properties", DB_TYPE_SET, 0, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define NULL
Definition: freelistheap.h:34
#define META_REPATTRIBUTE_NAME
Definition: transform.h:114

Definition at line 167 of file transform.c.

META_ATTRIBUTE repatt_atts[]
static
Initial value:
= {
{"id", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"type", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"domain", DB_TYPE_SET, 1, META_DOMAIN_NAME, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_DOMAIN_NAME
Definition: transform.h:107
#define NULL
Definition: freelistheap.h:34

Definition at line 156 of file transform.c.

META_ATTRIBUTE res_atts[]
static
Initial value:
= {
{"class", DB_TYPE_OBJECT, 1, META_CLASS_NAME, 0, 0, NULL},
{"type", DB_TYPE_INTEGER, 1, NULL, 0, 0, NULL},
{"name", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{"alias", DB_TYPE_STRING, 1, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define META_CLASS_NAME
Definition: transform.h:105
#define NULL
Definition: freelistheap.h:34

Definition at line 144 of file transform.c.

META_ATTRIBUTE root_atts[]
static
Initial value:
= {
{"heap_fileid", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"heap_volid", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"heap_pageid", DB_TYPE_INTEGER, 0, NULL, 0, 0, NULL},
{"name", DB_TYPE_STRING, 0, NULL, 0, 0, NULL},
{NULL, (DB_TYPE) 0, 0, NULL, 0, 0, NULL}
}
DB_TYPE
Definition: dbtype_def.h:670
#define NULL
Definition: freelistheap.h:34

Definition at line 249 of file transform.c.

META_CLASS tf_Metaclass_attribute
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_PAGE_ATTRIBUTE
Definition: transform.h:90
#define META_ATTRIBUTE_NAME
Definition: transform.h:106
static META_ATTRIBUTE att_atts[]
Definition: transform.c:72

Definition at line 91 of file transform.c.

Referenced by attribute_size(), attribute_to_disk(), catcls_get_or_value_from_attribute(), catcls_get_or_value_from_attrid(), disk_to_attribute(), and put_class_attributes().

META_CLASS tf_Metaclass_class
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_CLASS_NAME
Definition: transform.h:105
#define META_PAGE_CLASS
Definition: transform.h:85
static META_ATTRIBUTE class_atts[]
Definition: transform.c:181

Definition at line 221 of file transform.c.

Referenced by boot_restart_server(), catcls_convert_attr_id_to_name(), catcls_get_or_value_from_class(), catcls_vclass_install(), createdb(), disk_to_class(), put_class_varinfo(), tf_class_size(), tf_class_to_disk(), and tf_disk_to_class().

META_CLASS tf_Metaclass_domain
Initial value:
}
static META_ATTRIBUTE domain_atts[]
Definition: transform.c:54
#define META_VOLUME
Definition: transform.h:83
#define META_DOMAIN_NAME
Definition: transform.h:107
#define META_PAGE_DOMAIN
Definition: transform.h:89

Definition at line 67 of file transform.c.

Referenced by attribute_to_disk(), catcls_get_or_value_from_domain(), disk_to_domain2(), domain_size(), domain_to_disk(), metharg_to_disk(), and repattribute_to_disk().

META_CLASS tf_Metaclass_metharg
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_PAGE_METHARG
Definition: transform.h:91
static META_ATTRIBUTE metharg_atts[]
Definition: transform.c:96
#define META_METHARG_NAME
Definition: transform.h:108

Definition at line 102 of file transform.c.

Referenced by catcls_get_or_value_from_method_argument(), disk_to_metharg(), metharg_size(), metharg_to_disk(), and methsig_to_disk().

META_CLASS tf_Metaclass_methfile
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_METHFILE_NAME
Definition: transform.h:111
#define META_PAGE_METHFILE
Definition: transform.h:94
static META_ATTRIBUTE methfile_atts[]
Definition: transform.c:133

Definition at line 139 of file transform.c.

Referenced by catcls_get_or_value_from_method_file(), disk_to_methfile(), methfile_size(), methfile_to_disk(), and put_class_attributes().

META_CLASS tf_Metaclass_method
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_PAGE_METHOD
Definition: transform.h:93
static META_ATTRIBUTE meth_atts[]
Definition: transform.c:120
#define META_METHOD_NAME
Definition: transform.h:110

Definition at line 128 of file transform.c.

Referenced by catcls_get_or_value_from_method(), disk_to_method(), method_size(), method_to_disk(), and put_class_attributes().

META_CLASS tf_Metaclass_methsig
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_METHSIG_NAME
Definition: transform.h:109
static META_ATTRIBUTE methsig_atts[]
Definition: transform.c:107
#define META_PAGE_METHSIG
Definition: transform.h:92

Definition at line 115 of file transform.c.

Referenced by catcls_get_or_value_from_method_signiture(), disk_to_methsig(), method_to_disk(), methsig_size(), and methsig_to_disk().

META_CLASS tf_Metaclass_partition
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_PARTITION_NAME
Definition: transform.h:116
static META_ATTRIBUTE partition_atts[]
Definition: transform.c:235
#define META_PAGE_PARTITION
Definition: transform.h:97

Definition at line 244 of file transform.c.

Referenced by catcls_get_or_value_from_partition(), disk_to_partition_info(), partition_info_size(), partition_info_to_disk(), and put_class_attributes().

META_CLASS tf_Metaclass_query_spec
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_PAGE_QUERY_SPEC
Definition: transform.h:96
#define META_QUERY_SPEC_NAME
Definition: transform.h:115
static META_ATTRIBUTE query_spec_atts[]
Definition: transform.c:226

Definition at line 230 of file transform.c.

Referenced by catcls_get_or_value_from_query_spec(), disk_to_query_spec(), put_class_attributes(), query_spec_size(), and query_spec_to_disk().

META_CLASS tf_Metaclass_repattribute
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
static META_ATTRIBUTE repatt_atts[]
Definition: transform.c:156
#define META_PAGE_REPATTRIBUTE
Definition: transform.h:95
#define META_REPATTRIBUTE_NAME
Definition: transform.h:114

Definition at line 162 of file transform.c.

Referenced by disk_to_repattribute(), repattribute_size(), repattribute_to_disk(), and representation_to_disk().

META_CLASS tf_Metaclass_representation
Initial value:
0, 0, &rep_atts[0]
}
#define META_VOLUME
Definition: transform.h:83
#define META_PAGE_REPRESENTATION
Definition: transform.h:87
static META_ATTRIBUTE rep_atts[]
Definition: transform.c:167
#define META_REPRESENTATION_NAME
Definition: transform.h:113

Definition at line 176 of file transform.c.

Referenced by disk_to_representation(), put_class_attributes(), representation_size(), and representation_to_disk().

META_CLASS tf_Metaclass_resolution
Initial value:
}
#define META_VOLUME
Definition: transform.h:83
#define META_RESOLUTION_NAME
Definition: transform.h:112
#define META_PAGE_RESOLUTION
Definition: transform.h:88
static META_ATTRIBUTE res_atts[]
Definition: transform.c:144

Definition at line 151 of file transform.c.

Referenced by catcls_get_or_value_from_resolution(), disk_to_resolution(), put_class_attributes(), resolution_size(), and resolution_to_disk().

META_CLASS tf_Metaclass_root = { "rootclass", {META_PAGE_ROOT, 0, META_VOLUME}, 0, 0, 0, &root_atts[0] }

Definition at line 256 of file transform.c.

Referenced by disk_to_root(), root_size(), and root_to_disk().