CUBRID Engine  latest
db_virt.c File Reference
#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 "object_primitive.h"
#include "set_object.h"
#include "virtual_object.h"
#include "parser.h"
#include "view_transform.h"

Go to the source code of this file.

Macros

#define ERROR_SET(error, code)
 

Functions

void db_namelist_free (DB_NAMELIST *list)
 
int db_namelist_add (DB_NAMELIST **list, const char *name)
 
int db_namelist_append (DB_NAMELIST **list, const char *name)
 
DB_OBJECTdb_create_vclass (const char *name)
 
char * db_get_vclass_ldb_name (DB_OBJECT *op)
 
int db_is_real_instance (DB_OBJECT *obj)
 
DB_OBJECTdb_real_instance (DB_OBJECT *obj)
 
int db_instance_equal (DB_OBJECT *obj1, DB_OBJECT *obj2)
 
int db_is_updatable_object (DB_OBJECT *obj)
 
int db_is_updatable_attribute (DB_OBJECT *obj, const char *attr_name)
 
int db_add_query_spec (MOP vclass, const char *query)
 
int db_drop_query_spec (DB_OBJECT *vclass, const int query_no)
 
int db_change_query_spec (DB_OBJECT *vclass, const char *new_query, const int query_no)
 
DB_QUERY_SPECdb_get_query_specs (DB_OBJECT *obj)
 
DB_QUERY_SPECdb_query_spec_next (DB_QUERY_SPEC *query_spec)
 
const char * db_query_spec_string (DB_QUERY_SPEC *query_spec)
 
DB_NAMELISTdb_get_object_id (MOP vclass)
 
int db_is_vclass (DB_OBJECT *op)
 

Macro Definition Documentation

#define ERROR_SET (   error,
  code 
)
Value:
do { \
error = code; \
} while (0)
void er_set(int severity, const char *file_name, const int line_no, int err_id, int num_args,...)
static void error(const char *msg)
Definition: gencat.c:331
#define ARG_FILE_LINE
Definition: error_manager.h:44

Definition at line 51 of file db_virt.c.

Referenced by db_add_query_spec(), db_change_query_spec(), db_drop_query_spec(), db_is_updatable_attribute(), and db_is_updatable_object().

Function Documentation

int db_change_query_spec ( DB_OBJECT vclass,
const char *  new_query,
const int  query_no 
)
DB_NAMELIST* db_get_object_id ( MOP  vclass)

Definition at line 669 of file db_virt.c.

References NULL.

char* db_get_vclass_ldb_name ( DB_OBJECT op)

Definition at line 199 of file db_virt.c.

References NULL.

int db_is_real_instance ( DB_OBJECT obj)

Definition at line 213 of file db_virt.c.

References CHECK_1ARG_ZERO, CHECK_CONNECT_ZERO, DB_FETCH_READ, db_object::is_vid, locator_is_class(), and vid_is_base_instance().

Referenced by db_real_instance().

Here is the caller graph for this function:

int db_namelist_add ( DB_NAMELIST **  list,
const char *  name 
)

Definition at line 84 of file db_virt.c.

References CHECK_2ARGS_ZERO, CHECK_CONNECT_FALSE, error(), nlist_add(), and NULL.

int db_namelist_append ( DB_NAMELIST **  list,
const char *  name 
)

Definition at line 108 of file db_virt.c.

References CHECK_2ARGS_ZERO, CHECK_CONNECT_FALSE, error(), nlist_append(), and NULL.

Referenced by do_set_object_id().

Here is the caller graph for this function:

void db_namelist_free ( DB_NAMELIST list)

Definition at line 71 of file db_virt.c.

References nlist_free().

Referenced by do_set_object_id().

Here is the caller graph for this function:

DB_QUERY_SPEC* db_query_spec_next ( DB_QUERY_SPEC query_spec)
const char* db_query_spec_string ( DB_QUERY_SPEC query_spec)