Skip to content

File schema_template.h

FileList > cubrid > src > object > schema_template.h

Go to the source code of this file

  • #include "work_space.h"
  • #include "class_object.h"

Public Functions

Type Name
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 * implementation)
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 * attr_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 * implementation)
int smt_add_method_any (SM_TEMPLATE * template_, const char * name, const char * implementation, 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_def_expr, DB_DEFAULT_EXPR_TYPE new_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 * implementation)
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 * filename)
int smt_drop_query_spec (SM_TEMPLATE * template_, const int index)
SM_TEMPLATE * smt_edit_class (const char * name)
SM_TEMPLATE * smt_edit_class_mop (MOP class_, 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_attribute_domain (SM_TEMPLATE * template_, const char * name, int class_attribute)
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 * 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 Functions Documentation

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 * implementation
) 

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 * attr_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 * implementation
) 

function smt_add_method_any

int smt_add_method_any (
    SM_TEMPLATE * template_,
    const  char * name,
    const  char * implementation,
    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_def_expr,
    DB_DEFAULT_EXPR_TYPE new_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 * implementation
) 

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 * filename
) 

function smt_drop_query_spec

int smt_drop_query_spec (
    SM_TEMPLATE * template_,
    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 class_,
    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_attribute_domain

int smt_reset_attribute_domain (
    SM_TEMPLATE * template_,
    const  char * name,
    int class_attribute
) 

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 * 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
) 


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