Skip to content

File db_temp.c

FileList > compat > db_temp.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <stdarg.h>
  • #include <ctype.h>
  • #include <assert.h>
  • #include "authenticate.h"
  • #include "system_parameter.h"
  • #include "storage_common.h"
  • #include "db.h"
  • #include "class_object.h"
  • #include "object_print.h"
  • #include "server_interface.h"
  • #include "boot_cl.h"
  • #include "locator_cl.h"
  • #include "schema_manager.h"
  • #include "schema_template.h"
  • #include "object_accessor.h"
  • #include "set_object.h"
  • #include "virtual_object.h"
  • #include "parser.h"
  • #include "execute_statement.h"
  • #include "execute_schema.h"
  • #include "network_interface_cl.h"

Public Functions

Type Name
void dbt_abort_class (DB_CTMPL * def)
int dbt_add_argument (DB_CTMPL * def, const char * name, int class_method, int index, const char * domain)
int dbt_add_attribute (DB_CTMPL * def, const char * name, const char * domain, DB_VALUE * default_value)
int dbt_add_class_attribute (DB_CTMPL * def, const char * name, const char * domain, DB_VALUE * default_value)
int dbt_add_class_method (DB_CTMPL * def, const char * name, const char * implementation)
int dbt_add_class_resolution (DB_CTMPL * def, MOP super, const char * name, const char * alias)
int dbt_add_constraint (DB_CTMPL * def, DB_CONSTRAINT_TYPE constraint_type, const char * constraint_name, const char ** attnames, int class_attributes, const char * comment)
int dbt_add_foreign_key (DB_CTMPL * def, const char * constraint_name, const char ** attnames, const char * ref_class, const char ** ref_attrs, int del_action, int upd_action, const char * comment)
int dbt_add_method (DB_CTMPL * def, const char * name, const char * implementation)
int dbt_add_method_file (DB_CTMPL * def, const char * name)
int dbt_add_query_spec (DB_CTMPL * def, const char * query)
int dbt_add_resolution (DB_CTMPL * def, MOP super, const char * name, const char * alias)
int dbt_add_set_argument_domain (DB_CTMPL * def, const char * name, int class_method, int index, const char * domain)
int dbt_add_set_attribute_domain (DB_CTMPL * def, const char * name, int class_attribute, const char * domain)
int dbt_add_shared_attribute (DB_CTMPL * def, const char * name, const char * domain, DB_VALUE * default_value)
int dbt_add_super (DB_CTMPL * def, MOP super)
int dbt_change_default (DB_CTMPL * def, const char * name, int class_attribute, DB_VALUE * value)
int dbt_change_domain (DB_CTMPL * def, const char * name, int class_attribute, const char * domain)
int dbt_change_method_implementation (DB_CTMPL * def, const char * name, int class_method, const char * newname)
int dbt_change_query_spec (DB_CTMPL * def, const char * new_query, const int query_no)
int dbt_constrain_non_null (DB_CTMPL * def, const char * name, int class_attribute, int on_or_off)
int dbt_constrain_unique (DB_CTMPL * def, const char * attname, int on_or_off)
DB_CTMPL * dbt_copy_class (const char * new_name, const char * existing_name, SM_CLASS ** class_)
DB_CTMPL * dbt_create_class (const char * name)
DB_CTMPL * dbt_create_vclass (const char * name)
int dbt_drop_attribute (DB_CTMPL * def, const char * name)
int dbt_drop_class_attribute (DB_CTMPL * def, const char * name)
int dbt_drop_class_method (DB_CTMPL * def, const char * name)
int dbt_drop_class_resolution (DB_CTMPL * def, MOP super, const char * name)
int dbt_drop_constraint (DB_CTMPL * def, DB_CONSTRAINT_TYPE constraint_type, const char * constraint_name, const char ** attnames, int class_attributes)
int dbt_drop_method (DB_CTMPL * def, const char * name)
int dbt_drop_method_file (DB_CTMPL * def, const char * name)
int dbt_drop_method_files (DB_CTMPL * def)
int dbt_drop_query_spec (DB_CTMPL * def, const int query_no)
int dbt_drop_resolution (DB_CTMPL * def, MOP super, const char * name)
int dbt_drop_set_attribute_domain (DB_CTMPL * def, const char * name, int class_attribute, const char * domain)
int dbt_drop_shared_attribute (DB_CTMPL * def, const char * name)
int dbt_drop_super (DB_CTMPL * def, MOP super)
int dbt_drop_super_connect (DB_CTMPL * def, MOP super)
DB_CTMPL * dbt_edit_class (MOP classobj)
DB_OBJECT * dbt_finish_class (DB_CTMPL * def)
int dbt_rename (DB_CTMPL * def, const char * name, int class_namespace, const char * newname)
int dbt_rename_method_file (DB_CTMPL * def, const char * old_name, const char * new_name)
int dbt_reset_query_spec (DB_CTMPL * def)
int dbt_set_loader_commands (DB_CTMPL * def, const char * commands)
int dbt_set_object_id (DB_CTMPL * def, DB_NAMELIST * id_list)

Public Static Functions

Type Name
DB_CTMPL * dbt_reserve_name (DB_CTMPL * def, const char * name)

Macros

Type Name
define ATTR_RENAME_SAVEPOINT "aTTrNAMeSAVE"
define ERROR_SET (error, code) /* multi line expression */

Public Functions Documentation

function dbt_abort_class

void dbt_abort_class (
    DB_CTMPL * def
) 

function dbt_add_argument

int dbt_add_argument (
    DB_CTMPL * def,
    const  char * name,
    int class_method,
    int index,
    const  char * domain
) 

function dbt_add_attribute

int dbt_add_attribute (
    DB_CTMPL * def,
    const  char * name,
    const  char * domain,
    DB_VALUE * default_value
) 

function dbt_add_class_attribute

int dbt_add_class_attribute (
    DB_CTMPL * def,
    const  char * name,
    const  char * domain,
    DB_VALUE * default_value
) 

function dbt_add_class_method

int dbt_add_class_method (
    DB_CTMPL * def,
    const  char * name,
    const  char * implementation
) 

function dbt_add_class_resolution

int dbt_add_class_resolution (
    DB_CTMPL * def,
    MOP super,
    const  char * name,
    const  char * alias
) 

function dbt_add_constraint

int dbt_add_constraint (
    DB_CTMPL * def,
    DB_CONSTRAINT_TYPE constraint_type,
    const  char * constraint_name,
    const  char ** attnames,
    int class_attributes,
    const  char * comment
) 

function dbt_add_foreign_key

int dbt_add_foreign_key (
    DB_CTMPL * def,
    const  char * constraint_name,
    const  char ** attnames,
    const  char * ref_class,
    const  char ** ref_attrs,
    int del_action,
    int upd_action,
    const  char * comment
) 

function dbt_add_method

int dbt_add_method (
    DB_CTMPL * def,
    const  char * name,
    const  char * implementation
) 

function dbt_add_method_file

int dbt_add_method_file (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_add_query_spec

int dbt_add_query_spec (
    DB_CTMPL * def,
    const  char * query
) 

function dbt_add_resolution

int dbt_add_resolution (
    DB_CTMPL * def,
    MOP super,
    const  char * name,
    const  char * alias
) 

function dbt_add_set_argument_domain

int dbt_add_set_argument_domain (
    DB_CTMPL * def,
    const  char * name,
    int class_method,
    int index,
    const  char * domain
) 

function dbt_add_set_attribute_domain

int dbt_add_set_attribute_domain (
    DB_CTMPL * def,
    const  char * name,
    int class_attribute,
    const  char * domain
) 

function dbt_add_shared_attribute

int dbt_add_shared_attribute (
    DB_CTMPL * def,
    const  char * name,
    const  char * domain,
    DB_VALUE * default_value
) 

function dbt_add_super

int dbt_add_super (
    DB_CTMPL * def,
    MOP super
) 

function dbt_change_default

int dbt_change_default (
    DB_CTMPL * def,
    const  char * name,
    int class_attribute,
    DB_VALUE * value
) 

function dbt_change_domain

int dbt_change_domain (
    DB_CTMPL * def,
    const  char * name,
    int class_attribute,
    const  char * domain
) 

function dbt_change_method_implementation

int dbt_change_method_implementation (
    DB_CTMPL * def,
    const  char * name,
    int class_method,
    const  char * newname
) 

function dbt_change_query_spec

int dbt_change_query_spec (
    DB_CTMPL * def,
    const  char * new_query,
    const  int query_no
) 

function dbt_constrain_non_null

int dbt_constrain_non_null (
    DB_CTMPL * def,
    const  char * name,
    int class_attribute,
    int on_or_off
) 

function dbt_constrain_unique

int dbt_constrain_unique (
    DB_CTMPL * def,
    const  char * attname,
    int on_or_off
) 

function dbt_copy_class

DB_CTMPL * dbt_copy_class (
    const  char * new_name,
    const  char * existing_name,
    SM_CLASS ** class_
) 

function dbt_create_class

DB_CTMPL * dbt_create_class (
    const  char * name
) 

function dbt_create_vclass

DB_CTMPL * dbt_create_vclass (
    const  char * name
) 

function dbt_drop_attribute

int dbt_drop_attribute (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_class_attribute

int dbt_drop_class_attribute (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_class_method

int dbt_drop_class_method (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_class_resolution

int dbt_drop_class_resolution (
    DB_CTMPL * def,
    MOP super,
    const  char * name
) 

function dbt_drop_constraint

int dbt_drop_constraint (
    DB_CTMPL * def,
    DB_CONSTRAINT_TYPE constraint_type,
    const  char * constraint_name,
    const  char ** attnames,
    int class_attributes
) 

function dbt_drop_method

int dbt_drop_method (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_method_file

int dbt_drop_method_file (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_method_files

int dbt_drop_method_files (
    DB_CTMPL * def
) 

function dbt_drop_query_spec

int dbt_drop_query_spec (
    DB_CTMPL * def,
    const  int query_no
) 

function dbt_drop_resolution

int dbt_drop_resolution (
    DB_CTMPL * def,
    MOP super,
    const  char * name
) 

function dbt_drop_set_attribute_domain

int dbt_drop_set_attribute_domain (
    DB_CTMPL * def,
    const  char * name,
    int class_attribute,
    const  char * domain
) 

function dbt_drop_shared_attribute

int dbt_drop_shared_attribute (
    DB_CTMPL * def,
    const  char * name
) 

function dbt_drop_super

int dbt_drop_super (
    DB_CTMPL * def,
    MOP super
) 

function dbt_drop_super_connect

int dbt_drop_super_connect (
    DB_CTMPL * def,
    MOP super
) 

function dbt_edit_class

DB_CTMPL * dbt_edit_class (
    MOP classobj
) 

function dbt_finish_class

DB_OBJECT * dbt_finish_class (
    DB_CTMPL * def
) 

function dbt_rename

int dbt_rename (
    DB_CTMPL * def,
    const  char * name,
    int class_namespace,
    const  char * newname
) 

function dbt_rename_method_file

int dbt_rename_method_file (
    DB_CTMPL * def,
    const  char * old_name,
    const  char * new_name
) 

function dbt_reset_query_spec

int dbt_reset_query_spec (
    DB_CTMPL * def
) 

function dbt_set_loader_commands

int dbt_set_loader_commands (
    DB_CTMPL * def,
    const  char * commands
) 

function dbt_set_object_id

int dbt_set_object_id (
    DB_CTMPL * def,
    DB_NAMELIST * id_list
) 

Public Static Functions Documentation

function dbt_reserve_name

static DB_CTMPL * dbt_reserve_name (
    DB_CTMPL * def,
    const  char * name
) 

Macro Definition Documentation

define ATTR_RENAME_SAVEPOINT

#define ATTR_RENAME_SAVEPOINT `"aTTrNAMeSAVE"`

define ERROR_SET

#define ERROR_SET (
    error,
    code
) `/* multi line expression */`


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