CUBRID Engine  latest
db_old.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 "set_object.h"
#include "virtual_object.h"
#include "parser.h"

Go to the source code of this file.

Functions

int db_list_length (DB_LIST *list)
 
DB_OBJECTdb_objlist_get (DB_OBJLIST *list, int index)
 
void db_objlist_print (DB_OBJLIST *list)
 
DB_NAMELISTdb_namelist_copy (DB_NAMELIST *list)
 
DB_NAMELISTdb_namelist_sort (DB_NAMELIST *names)
 
void db_namelist_remove (DB_NAMELIST **list, const char *name)
 
void db_namelist_print (DB_NAMELIST *list)
 
DB_NAMELISTdb_get_attribute_names (MOP obj)
 
DB_NAMELISTdb_get_shared_attribute_names (MOP obj)
 
DB_NAMELISTdb_get_class_attribute_names (MOP obj)
 
DB_NAMELISTdb_get_ordered_attribute_names (MOP obj)
 
DB_NAMELISTdb_get_method_names (MOP obj)
 
DB_NAMELISTdb_get_class_method_names (MOP obj)
 
DB_NAMELISTdb_get_superclass_names (MOP obj)
 
DB_NAMELISTdb_get_subclass_names (MOP obj)
 
DB_NAMELISTdb_get_method_file_names (MOP obj)
 
const char * db_get_method_function (MOP obj, const char *name)
 
DB_DOMAINdb_get_attribute_domain (MOP obj, const char *name)
 
DB_TYPE db_get_attribute_type (MOP obj, const char *name)
 
DB_OBJECTdb_get_attribute_class (MOP obj, const char *name)
 
int db_is_indexed (MOP classmop, const char *attname)
 
int db_print_mop (DB_OBJECT *obj, char *buffer, int maxlen)
 
char * db_get_method_source_file (MOP obj, const char *name)
 

Function Documentation

DB_OBJECT* db_get_attribute_class ( MOP  obj,
const char *  name 
)
DB_DOMAIN* db_get_attribute_domain ( MOP  obj,
const char *  name 
)
DB_TYPE db_get_attribute_type ( MOP  obj,
const char *  name 
)

Definition at line 647 of file db_old.c.

References ARG_FILE_LINE, CHECK_CONNECT_ZERO_TYPE, DB_TYPE_NULL, ER_ERROR_SEVERITY, ER_OBJ_INVALID_ARGUMENTS, er_set(), NULL, and sm_att_type_id().

Referenced by db_is_updatable_attribute().

Here is the caller graph for this function:

const char* db_get_method_function ( MOP  obj,
const char *  name 
)
char* db_get_method_source_file ( MOP  obj,
const char *  name 
)

Definition at line 761 of file db_old.c.

References CHECK_2ARGS_NULL, CHECK_CONNECT_NULL, and sm_get_method_source_file().

int db_is_indexed ( MOP  classmop,
const char *  attname 
)

Definition at line 705 of file db_old.c.

References CHECK_2ARGS_ZERO, CHECK_CONNECT_FALSE, NO_ERROR, and sm_get_index().

int db_list_length ( DB_LIST list)

Definition at line 69 of file db_old.c.

References ws_list_length().

Referenced by db_fetch_list(), and sch_trigger().

Here is the caller graph for this function:

DB_NAMELIST* db_namelist_copy ( DB_NAMELIST list)

Definition at line 148 of file db_old.c.

References CHECK_CONNECT_NULL, and nlist_copy().

void db_namelist_print ( DB_NAMELIST list)

Definition at line 233 of file db_old.c.

References db_namelist::name, db_namelist::next, and NULL.

void db_namelist_remove ( DB_NAMELIST **  list,
const char *  name 
)

Definition at line 213 of file db_old.c.

References db_namelist::next, nlist_free(), nlist_remove(), and NULL.

DB_OBJECT* db_objlist_get ( DB_OBJLIST list,
int  index 
)

Definition at line 96 of file db_old.c.

References i, db_objlist::next, and NULL.

void db_objlist_print ( DB_OBJLIST list)
int db_print_mop ( DB_OBJECT obj,
char *  buffer,
int  maxlen 
)

Definition at line 733 of file db_old.c.

References CHECK_2ARGS_ZERO, CHECK_CONNECT_ZERO, and help_describe_mop().

Referenced by object_to_string().

Here is the caller graph for this function: