Skip to content

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

Type Name
SM_CLASS_TYPE sm_get_class_type (SM_CLASS * class_)
int smt_add_attribute (SM_TEMPLATE * template_, const char * name, const char * domain_string, DB_DOMAIN * domain)
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)
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)
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)
int smt_add_class_method (SM_TEMPLATE * template_, const char * name, const char * function)
int smt_add_class_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name, const char * alias)
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)
int smt_add_method (SM_TEMPLATE * template_, const char * name, const char * function)
int smt_add_method_any (SM_TEMPLATE * template_, const char * name, const char * function, SM_NAME_SPACE name_space)
int smt_add_method_file (SM_TEMPLATE * template_, const char * filename)
int smt_add_query_spec (SM_TEMPLATE * template_, const char * specification)
int smt_add_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name, const char * alias)
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)
int smt_add_set_attribute_domain (SM_TEMPLATE * template_, const char * name, int class_attribute, const char * domain_string, DB_DOMAIN * domain)
int smt_add_super (SM_TEMPLATE * template_, MOP super_class)
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)
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)
int smt_change_constraint_comment (SM_TEMPLATE * ctemplate, const char * index_name, const char * comment)
int smt_change_constraint_status (SM_TEMPLATE * ctemplate, const char * index_name, SM_INDEX_STATUS index_status)
int smt_change_method_implementation (SM_TEMPLATE * template_, const char * name, int class_method, const char * function)
int smt_change_query_spec (SM_TEMPLATE * def, const char * query, const int index)
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)
int smt_class_delete (SM_TEMPLATE * template_, const char * name)
SM_TEMPLATE * smt_copy_class (const char * new_name, const char * existing_name, SM_CLASS ** class_)
SM_TEMPLATE * smt_copy_class_mop (const char * name, MOP op, SM_CLASS ** class_)
SM_TEMPLATE * smt_def_class (const char * name)
SM_TEMPLATE * smt_def_typed_class (const char * name, SM_CLASS_TYPE ct)
int smt_delete (SM_TEMPLATE * template_, const char * name)
int smt_delete_any (SM_TEMPLATE * template_, const char * name, SM_NAME_SPACE name_space)
int smt_delete_class_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name)
int smt_delete_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name)
int smt_delete_set_attribute_domain (SM_TEMPLATE * template_, const char * name, int class_attribute, const char * domain_string, DB_DOMAIN * domain)
int smt_delete_super (SM_TEMPLATE * template_, MOP super_class)
int smt_delete_super_connect (SM_TEMPLATE * template_, MOP super_class)
void smt_downcase_all_class_info (void)
int smt_drop_constraint (SM_TEMPLATE * template_, const char ** att_names, const char * constraint_name, int class_attribute, SM_ATTRIBUTE_FLAG constraint)
int smt_drop_method_file (SM_TEMPLATE * template_, const char * name)
int smt_drop_query_spec (SM_TEMPLATE * def, const int index)
SM_TEMPLATE * smt_edit_class (const char * name)
SM_TEMPLATE * smt_edit_class_mop (MOP op, DB_AUTH db_auth_type)
int smt_find_attribute (SM_TEMPLATE * template_, const char * name, int class_attribute, SM_ATTRIBUTE ** attp)
SM_CLASS_TYPE smt_get_class_type (SM_TEMPLATE * template_)
int smt_quit (SM_TEMPLATE * template_)
int smt_rename_any (SM_TEMPLATE * template_, const char * name, const bool class_namespace, const char * new_name)
int smt_rename_method_file (SM_TEMPLATE * template_, const char * old_name, const char * new_name)
int smt_reset_method_files (SM_TEMPLATE * template_)
int smt_reset_query_spec (SM_TEMPLATE * template_)
int smt_set_attribute_default (SM_TEMPLATE * template_, const char * name, int class_attribute, DB_VALUE * proposed_value, DB_DEFAULT_EXPR * default_expr)
int smt_set_attribute_on_update (SM_TEMPLATE * template_, const char * name, int class_attribute, DB_DEFAULT_EXPR_TYPE on_update)
int smt_set_loader_commands (SM_TEMPLATE * template_, const char * commands)

Public Static Functions

Type Name
int add_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name, const char * alias, SM_NAME_SPACE name_space)
int change_constraints_comment_partitioned_class (MOP obj, const char * index_name, const char * comment)
int change_constraints_status_partitioned_class (MOP obj, const char * index_name, SM_INDEX_STATUS index_status)
int check_alias_delete (SM_TEMPLATE * template_, const char * name, SM_NAME_SPACE name_space, int error)
int check_domain_class_type (SM_TEMPLATE * template_, DB_OBJECT * domain_classobj)
int check_local_definition (SM_TEMPLATE * template_, const char * name, const char * alias, SM_NAME_SPACE name_space)
int check_namespace (SM_TEMPLATE * temp, const char * name, const bool class_namespace)
int check_resolution_name (MOP classmop, const char * name, int class_name)
SM_TEMPLATE * def_class_internal (const char * name, int class_type)
int delete_resolution (SM_TEMPLATE * template_, MOP super_class, const char * name, SM_NAME_SPACE name_space)
SM_RESOLUTION * find_alias (SM_RESOLUTION * reslist, const char * name, SM_NAME_SPACE name_space)
int find_any (SM_TEMPLATE * template_, const char * name, int class_stuff, SM_COMPONENT ** thing)
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)
SM_COMPONENT * find_component (SM_TEMPLATE * template_, const char * name, int class_stuff)
int find_method (SM_TEMPLATE * template_, const char * name, int class_method, SM_METHOD ** methodp)
int find_signature (SM_TEMPLATE * template_, const char * name, int class_method, const char * signame, SM_METHOD ** methodp, SM_METHOD_SIGNATURE ** sigp)
int get_domain (SM_TEMPLATE * tmp, const char * domain_string, DB_DOMAIN ** domain)
int get_domain_internal (SM_TEMPLATE * tmp, const char * domain_string, DB_DOMAIN ** domainp, int check_internal)
int resolve_class_domain (SM_TEMPLATE * tmp, DB_DOMAIN * domain)
int smt_add_attribute_to_list (SM_ATTRIBUTE ** att_list, SM_ATTRIBUTE * att, const bool add_first, const char * add_after_attribute)
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)
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)
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)
int smt_change_attribute_pos_in_list (SM_ATTRIBUTE ** att_list, SM_ATTRIBUTE * att, const bool change_first, const char * change_after_attribute)
int smt_change_class_shared_attribute_domain (SM_ATTRIBUTE * att, DB_DOMAIN * new_domain)
int smt_check_foreign_key (SM_TEMPLATE * template_, const char * constraint_name, SM_ATTRIBUTE ** atts, int n_atts, SM_FOREIGN_KEY_INFO * fk_info)
int smt_check_type_collation_match_4_fk (SM_ATTRIBUTE * attr1, SM_ATTRIBUTE * attr2)
int smt_drop_constraint_from_property (SM_TEMPLATE * template_, const char * constraint_name, SM_ATTRIBUTE_FLAG constraint)
SM_CLASS_CONSTRAINT * smt_find_constraint (SM_TEMPLATE * ctemplate, const char * constraint_name)
MOP smt_find_owner_of_constraint (SM_TEMPLATE * ctemplate, const char * constraint_name)
int smt_is_change_status_allowed (SM_TEMPLATE * ctemplate, const char * index_name)
int smt_set_attribute_orig_default_value (SM_ATTRIBUTE * att, DB_VALUE * new_orig_value, DB_DEFAULT_EXPR * default_expr)

Macros

Type Name
define DOWNCASE_NAME (a, b) /* multi line expression */

Public Functions Documentation

function sm_get_class_type

SM_CLASS_TYPE sm_get_class_type (
    SM_CLASS * class_
) 

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

int smt_add_class_method (
    SM_TEMPLATE * template_,
    const  char * name,
    const  char * function
) 

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

int smt_add_method (
    SM_TEMPLATE * template_,
    const  char * name,
    const  char * function
) 

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

int smt_add_method_file (
    SM_TEMPLATE * template_,
    const  char * filename
) 

function smt_add_query_spec

int smt_add_query_spec (
    SM_TEMPLATE * template_,
    const  char * specification
) 

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

int smt_add_super (
    SM_TEMPLATE * template_,
    MOP super_class
) 

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

int smt_change_query_spec (
    SM_TEMPLATE * def,
    const  char * query,
    const  int index
) 

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

int smt_class_delete (
    SM_TEMPLATE * template_,
    const  char * name
) 

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

SM_TEMPLATE * smt_copy_class_mop (
    const  char * name,
    MOP op,
    SM_CLASS ** class_
) 

function smt_def_class

SM_TEMPLATE * smt_def_class (
    const  char * name
) 

function smt_def_typed_class

SM_TEMPLATE * smt_def_typed_class (
    const  char * name,
    SM_CLASS_TYPE ct
) 

function smt_delete

int smt_delete (
    SM_TEMPLATE * template_,
    const  char * name
) 

function smt_delete_any

int smt_delete_any (
    SM_TEMPLATE * template_,
    const  char * name,
    SM_NAME_SPACE name_space
) 

function smt_delete_class_resolution

int smt_delete_class_resolution (
    SM_TEMPLATE * template_,
    MOP super_class,
    const  char * name
) 

function smt_delete_resolution

int smt_delete_resolution (
    SM_TEMPLATE * template_,
    MOP super_class,
    const  char * name
) 

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

int smt_delete_super (
    SM_TEMPLATE * template_,
    MOP super_class
) 

function smt_delete_super_connect

int smt_delete_super_connect (
    SM_TEMPLATE * template_,
    MOP super_class
) 

function smt_downcase_all_class_info

void smt_downcase_all_class_info (
    void
) 

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

int smt_drop_method_file (
    SM_TEMPLATE * template_,
    const  char * name
) 

function smt_drop_query_spec

int smt_drop_query_spec (
    SM_TEMPLATE * def,
    const  int index
) 

function smt_edit_class

SM_TEMPLATE * smt_edit_class (
    const  char * name
) 

function smt_edit_class_mop

SM_TEMPLATE * smt_edit_class_mop (
    MOP op,
    DB_AUTH db_auth_type
) 

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

SM_CLASS_TYPE smt_get_class_type (
    SM_TEMPLATE * template_
) 

function smt_quit

int smt_quit (
    SM_TEMPLATE * template_
) 

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

int smt_reset_method_files (
    SM_TEMPLATE * template_
) 

function smt_reset_query_spec

int smt_reset_query_spec (
    SM_TEMPLATE * template_
) 

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

int smt_set_loader_commands (
    SM_TEMPLATE * template_,
    const  char * 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

static int check_domain_class_type (
    SM_TEMPLATE * template_,
    DB_OBJECT * domain_classobj
) 

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

static int check_namespace (
    SM_TEMPLATE * temp,
    const  char * name,
    const  bool class_namespace
) 

function check_resolution_name

static int check_resolution_name (
    MOP classmop,
    const  char * name,
    int class_name
) 

function def_class_internal

static SM_TEMPLATE * def_class_internal (
    const  char * name,
    int class_type
) 

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

static int get_domain (
    SM_TEMPLATE * tmp,
    const  char * domain_string,
    DB_DOMAIN ** 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

static int resolve_class_domain (
    SM_TEMPLATE * tmp,
    DB_DOMAIN * 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

static int smt_change_class_shared_attribute_domain (
    SM_ATTRIBUTE * att,
    DB_DOMAIN * new_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

static int smt_check_type_collation_match_4_fk (
    SM_ATTRIBUTE * attr1,
    SM_ATTRIBUTE * attr2
) 

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

static MOP smt_find_owner_of_constraint (
    SM_TEMPLATE * ctemplate,
    const  char * constraint_name
) 

function smt_is_change_status_allowed

static int smt_is_change_status_allowed (
    SM_TEMPLATE * ctemplate,
    const  char * index_name
) 

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

#define DOWNCASE_NAME (
    a,
    b
) `/* multi line expression */`


The documentation for this class was generated from the following file cubrid/src/object/schema_template.c