CUBRID Engine  latest
cubload::server_class_installer Class Reference

#include <load_server_loader.hpp>

Inheritance diagram for cubload::server_class_installer:
Inheritance graph
Collaboration diagram for cubload::server_class_installer:
Collaboration graph

Public Member Functions

 server_class_installer ()=delete
 
 server_class_installer (session &session, error_handler &error_handler)
 
 ~server_class_installer () override=default
 
void set_class_id (class_id clsid) override
 
void check_class (const char *class_name, int class_id) override
 
int install_class (const char *class_name) override
 
void install_class (string_type *class_name, class_command_spec_type *cmd_spec) override
 
bool is_class_ignored (const char *classname)
 
void to_lowercase_identifier (const char *idname, cubmem::extensible_block &eb)
 
- Public Member Functions inherited from cubload::class_installer
virtual ~class_installer ()=default
 

Private Member Functions

LC_FIND_CLASSNAME locate_class (const char *class_name, OID &class_oid)
 
void register_class_with_attributes (const char *class_name, class_command_spec_type *cmd_spec)
 
void get_class_attributes (heap_cache_attrinfo &attrinfo, attribute_type attr_type, or_attribute *&or_attributes, int *n_attributes)
 

Private Attributes

sessionm_session
 
error_handlerm_error_handler
 
class_id m_clsid
 

Detailed Description

Definition at line 43 of file load_server_loader.hpp.

Constructor & Destructor Documentation

cubload::server_class_installer::server_class_installer ( )
delete
cubload::server_class_installer::server_class_installer ( session session,
error_handler error_handler 
)

Definition at line 46 of file load_server_loader.cpp.

cubload::server_class_installer::~server_class_installer ( )
overridedefault

Member Function Documentation

void cubload::server_class_installer::get_class_attributes ( heap_cache_attrinfo attrinfo,
attribute_type  attr_type,
or_attribute *&  or_attributes,
int *  n_attributes 
)
private
int cubload::server_class_installer::install_class ( const char *  class_name)
overridevirtual

Implements cubload::class_installer.

Definition at line 86 of file load_server_loader.cpp.

References NO_ERROR, NULL, and register_class_with_attributes().

bool cubload::server_class_installer::is_class_ignored ( const char *  classname)
LC_FIND_CLASSNAME cubload::server_class_installer::locate_class ( const char *  class_name,
OID class_oid 
)
private

Definition at line 115 of file load_server_loader.cpp.

References BU_LOCK, cubthread::get_entry(), and xlocator_find_class_oid().

Referenced by check_class(), and register_class_with_attributes().

Here is the caller graph for this function:

void cubload::server_class_installer::register_class_with_attributes ( const char *  class_name,
class_command_spec_type cmd_spec 
)
private
void cubload::server_class_installer::set_class_id ( class_id  clsid)
overridevirtual

Implements cubload::class_installer.

Definition at line 55 of file load_server_loader.cpp.

References m_clsid.

void cubload::server_class_installer::to_lowercase_identifier ( const char *  idname,
cubmem::extensible_block eb 
)

Member Data Documentation

class_id cubload::server_class_installer::m_clsid
private

Definition at line 63 of file load_server_loader.hpp.

Referenced by register_class_with_attributes(), and set_class_id().

error_handler& cubload::server_class_installer::m_error_handler
private
session& cubload::server_class_installer::m_session
private

The documentation for this class was generated from the following files: