File schema_template.c¶
FileList > cubrid > src > object > schema_template.c
Go to the source code of this file
#include "config.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <assert.h>#include "error_manager.h"#include "object_representation.h"#include "object_domain.h"#include "work_space.h"#include "object_primitive.h"#include "class_object.h"#include "schema_manager.h"#include "set_object.h"#include "locator_cl.h"#include "authenticate.h"#include "transform_cl.h"#include "statistics.h"#include "virtual_object.h"#include "db.h"#include "release_string.h"#include "execute_schema.h"#include "dbtype.h"
Public Functions¶
Public Static Functions¶
Macros¶
| Type | Name |
|---|---|
| define | DOWNCASE_NAME (a, b) /* multi line expression */ |
Public Functions Documentation¶
function sm_get_class_type¶
function smt_add_attribute¶
int smt_add_attribute (
SM_TEMPLATE * template_,
const char * name,
const char * domain_string,
DB_DOMAIN * domain
)
function smt_add_attribute_any¶
int smt_add_attribute_any (
SM_TEMPLATE * template_,
const char * name,
const char * domain_string,
DB_DOMAIN * domain,
const SM_NAME_SPACE name_space,
const bool add_first,
const char * add_after_attribute,
const char * comment
)
function smt_add_attribute_w_dflt¶
int smt_add_attribute_w_dflt (
DB_CTMPL * def,
const char * name,
const char * domain_string,
DB_DOMAIN * domain,
DB_VALUE * default_value,
const SM_NAME_SPACE name_space,
DB_DEFAULT_EXPR * default_expr,
DB_DEFAULT_EXPR_TYPE * on_update,
const char * comment
)
function smt_add_attribute_w_dflt_w_order¶
int smt_add_attribute_w_dflt_w_order (
DB_CTMPL * def,
const char * name,
const char * domain_string,
DB_DOMAIN * domain,
DB_VALUE * default_value,
const SM_NAME_SPACE name_space,
const bool add_first,
const char * add_after_attribute,
DB_DEFAULT_EXPR * default_expr,
DB_DEFAULT_EXPR_TYPE * on_update,
const char * comment
)
function smt_add_class_method¶
function smt_add_class_resolution¶
int smt_add_class_resolution (
SM_TEMPLATE * template_,
MOP super_class,
const char * name,
const char * alias
)
function smt_add_constraint¶
int smt_add_constraint (
SM_TEMPLATE * template_,
DB_CONSTRAINT_TYPE constraint_type,
const char * constraint_name,
const char ** att_names,
const int * asc_desc,
const int * attrs_prefix_length,
int class_attribute,
SM_FOREIGN_KEY_INFO * fk_info,
SM_PREDICATE_INFO * filter_index,
SM_FUNCTION_INFO * function_index,
const char * comment,
SM_INDEX_STATUS index_status
)
function smt_add_method¶
function smt_add_method_any¶
int smt_add_method_any (
SM_TEMPLATE * template_,
const char * name,
const char * function,
SM_NAME_SPACE name_space
)
function smt_add_method_file¶
function smt_add_query_spec¶
function smt_add_resolution¶
int smt_add_resolution (
SM_TEMPLATE * template_,
MOP super_class,
const char * name,
const char * alias
)
function smt_add_set_argument_domain¶
int smt_add_set_argument_domain (
SM_TEMPLATE * template_,
const char * name,
int class_method,
const char * implementation,
int index,
const char * domain_string,
DB_DOMAIN * domain
)
function smt_add_set_attribute_domain¶
int smt_add_set_attribute_domain (
SM_TEMPLATE * template_,
const char * name,
int class_attribute,
const char * domain_string,
DB_DOMAIN * domain
)
function smt_add_super¶
function smt_assign_argument_domain¶
int smt_assign_argument_domain (
SM_TEMPLATE * template_,
const char * name,
int class_method,
const char * implementation,
int index,
const char * domain_string,
DB_DOMAIN * domain
)
function smt_change_attribute_w_dflt_w_order¶
int smt_change_attribute_w_dflt_w_order (
DB_CTMPL * def,
const char * name,
const char * new_name,
const char * new_domain_string,
DB_DOMAIN * new_domain,
const SM_NAME_SPACE name_space,
DB_VALUE * new_default_value,
DB_DEFAULT_EXPR * new_default_expr,
DB_DEFAULT_EXPR_TYPE on_update_expr,
const bool change_first,
const char * change_after_attribute,
SM_ATTRIBUTE ** found_att
)
function smt_change_constraint_comment¶
int smt_change_constraint_comment (
SM_TEMPLATE * ctemplate,
const char * index_name,
const char * comment
)
function smt_change_constraint_status¶
int smt_change_constraint_status (
SM_TEMPLATE * ctemplate,
const char * index_name,
SM_INDEX_STATUS index_status
)
function smt_change_method_implementation¶
int smt_change_method_implementation (
SM_TEMPLATE * template_,
const char * name,
int class_method,
const char * function
)
function smt_change_query_spec¶
function smt_check_index_exist¶
int smt_check_index_exist (
SM_TEMPLATE * template_,
char ** out_shared_cons_name,
DB_CONSTRAINT_TYPE constraint_type,
const char * constraint_name,
const char ** att_names,
const int * asc_desc,
const SM_PREDICATE_INFO * filter_index,
const SM_FUNCTION_INFO * function_index
)
function smt_class_delete¶
function smt_copy_class¶
SM_TEMPLATE * smt_copy_class (
const char * new_name,
const char * existing_name,
SM_CLASS ** class_
)
function smt_copy_class_mop¶
function smt_def_class¶
function smt_def_typed_class¶
function smt_delete¶
function smt_delete_any¶
function smt_delete_class_resolution¶
function smt_delete_resolution¶
function smt_delete_set_attribute_domain¶
int smt_delete_set_attribute_domain (
SM_TEMPLATE * template_,
const char * name,
int class_attribute,
const char * domain_string,
DB_DOMAIN * domain
)
function smt_delete_super¶
function smt_delete_super_connect¶
function smt_downcase_all_class_info¶
function smt_drop_constraint¶
int smt_drop_constraint (
SM_TEMPLATE * template_,
const char ** att_names,
const char * constraint_name,
int class_attribute,
SM_ATTRIBUTE_FLAG constraint
)
function smt_drop_method_file¶
function smt_drop_query_spec¶
function smt_edit_class¶
function smt_edit_class_mop¶
function smt_find_attribute¶
int smt_find_attribute (
SM_TEMPLATE * template_,
const char * name,
int class_attribute,
SM_ATTRIBUTE ** attp
)
function smt_get_class_type¶
function smt_quit¶
function smt_rename_any¶
int smt_rename_any (
SM_TEMPLATE * template_,
const char * name,
const bool class_namespace,
const char * new_name
)
function smt_rename_method_file¶
int smt_rename_method_file (
SM_TEMPLATE * template_,
const char * old_name,
const char * new_name
)
function smt_reset_method_files¶
function smt_reset_query_spec¶
function smt_set_attribute_default¶
int smt_set_attribute_default (
SM_TEMPLATE * template_,
const char * name,
int class_attribute,
DB_VALUE * proposed_value,
DB_DEFAULT_EXPR * default_expr
)
function smt_set_attribute_on_update¶
int smt_set_attribute_on_update (
SM_TEMPLATE * template_,
const char * name,
int class_attribute,
DB_DEFAULT_EXPR_TYPE on_update
)
function smt_set_loader_commands¶
Public Static Functions Documentation¶
function add_resolution¶
static int add_resolution (
SM_TEMPLATE * template_,
MOP super_class,
const char * name,
const char * alias,
SM_NAME_SPACE name_space
)
function change_constraints_comment_partitioned_class¶
static int change_constraints_comment_partitioned_class (
MOP obj,
const char * index_name,
const char * comment
)
function change_constraints_status_partitioned_class¶
static int change_constraints_status_partitioned_class (
MOP obj,
const char * index_name,
SM_INDEX_STATUS index_status
)
function check_alias_delete¶
static int check_alias_delete (
SM_TEMPLATE * template_,
const char * name,
SM_NAME_SPACE name_space,
int error
)
function check_domain_class_type¶
function check_local_definition¶
static int check_local_definition (
SM_TEMPLATE * template_,
const char * name,
const char * alias,
SM_NAME_SPACE name_space
)
function check_namespace¶
function check_resolution_name¶
function def_class_internal¶
function delete_resolution¶
static int delete_resolution (
SM_TEMPLATE * template_,
MOP super_class,
const char * name,
SM_NAME_SPACE name_space
)
function find_alias¶
static SM_RESOLUTION * find_alias (
SM_RESOLUTION * reslist,
const char * name,
SM_NAME_SPACE name_space
)
function find_any¶
static int find_any (
SM_TEMPLATE * template_,
const char * name,
int class_stuff,
SM_COMPONENT ** thing
)
function find_argument¶
static int find_argument (
SM_TEMPLATE * template_,
const char * name,
int class_method,
const char * signame,
int index,
int create,
SM_METHOD ** methodp,
SM_METHOD_SIGNATURE ** sigp,
SM_METHOD_ARGUMENT ** argp
)
function find_component¶
static SM_COMPONENT * find_component (
SM_TEMPLATE * template_,
const char * name,
int class_stuff
)
function find_method¶
static int find_method (
SM_TEMPLATE * template_,
const char * name,
int class_method,
SM_METHOD ** methodp
)
function find_signature¶
static int find_signature (
SM_TEMPLATE * template_,
const char * name,
int class_method,
const char * signame,
SM_METHOD ** methodp,
SM_METHOD_SIGNATURE ** sigp
)
function get_domain¶
function get_domain_internal¶
static int get_domain_internal (
SM_TEMPLATE * tmp,
const char * domain_string,
DB_DOMAIN ** domainp,
int check_internal
)
function resolve_class_domain¶
function smt_add_attribute_to_list¶
static int smt_add_attribute_to_list (
SM_ATTRIBUTE ** att_list,
SM_ATTRIBUTE * att,
const bool add_first,
const char * add_after_attribute
)
function smt_add_constraint_to_property¶
static int smt_add_constraint_to_property (
SM_TEMPLATE * template_,
SM_CONSTRAINT_TYPE type,
const char * constraint_name,
SM_ATTRIBUTE ** atts,
const int * asc_desc,
const int * attr_prefix_length,
SM_FOREIGN_KEY_INFO * fk_info,
char * shared_cons_name,
SM_PREDICATE_INFO * filter_index,
SM_FUNCTION_INFO * function_index,
const char * comment,
SM_INDEX_STATUS index_status
)
function smt_add_constraint_to_property¶
static int smt_add_constraint_to_property (
SM_TEMPLATE * template_,
SM_CONSTRAINT_TYPE type,
const char * constraint_name,
SM_ATTRIBUTE ** atts,
const int * asc_desc,
const int * attr_prefix_length,
SM_FOREIGN_KEY_INFO * fk_info,
char * shared_cons_name,
SM_PREDICATE_INFO * filter_index,
SM_FUNCTION_INFO * function_index,
int options,
const char * comment,
SM_INDEX_STATUS index_status
)
function smt_change_attribute¶
static int smt_change_attribute (
SM_TEMPLATE * template_,
const char * name,
const char * new_name,
const char * new_domain_string,
DB_DOMAIN * new_domain,
const SM_NAME_SPACE name_space,
const bool change_first,
const char * change_after_attribute,
SM_ATTRIBUTE ** found_att
)
function smt_change_attribute_pos_in_list¶
static int smt_change_attribute_pos_in_list (
SM_ATTRIBUTE ** att_list,
SM_ATTRIBUTE * att,
const bool change_first,
const char * change_after_attribute
)
function smt_change_class_shared_attribute_domain¶
function smt_check_foreign_key¶
static int smt_check_foreign_key (
SM_TEMPLATE * template_,
const char * constraint_name,
SM_ATTRIBUTE ** atts,
int n_atts,
SM_FOREIGN_KEY_INFO * fk_info
)
function smt_check_type_collation_match_4_fk¶
function smt_drop_constraint_from_property¶
static int smt_drop_constraint_from_property (
SM_TEMPLATE * template_,
const char * constraint_name,
SM_ATTRIBUTE_FLAG constraint
)
function smt_find_constraint¶
static SM_CLASS_CONSTRAINT * smt_find_constraint (
SM_TEMPLATE * ctemplate,
const char * constraint_name
)
function smt_find_owner_of_constraint¶
function smt_is_change_status_allowed¶
function smt_set_attribute_orig_default_value¶
static int smt_set_attribute_orig_default_value (
SM_ATTRIBUTE * att,
DB_VALUE * new_orig_value,
DB_DEFAULT_EXPR * default_expr
)
Macro Definition Documentation¶
define DOWNCASE_NAME¶
The documentation for this class was generated from the following file cubrid/src/object/schema_template.c