All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HSEPData::DBStatementCatalog Class Reference

Offers a database statement catalog that will be used by the database infrastructure to manage reusable SQL statement definitions. More...

#include <DBStatementCatalog.h>

+ Collaboration diagram for HSEPData::DBStatementCatalog:

Static Public Member Functions

static void init (string pPath)
 Initializes the static instance of the catalog.
 
static void destroy ()
 Destroys and releases the static instance of the catalog.
 
static string & getStatementRef (string pStatementName)
 Given a statement name, that corresponds with the name for a database sql file without the ".sql" suffix, returns its content.
 
static void reload ()
 Reloads the complete sql catalog.
 

Static Public Attributes

static DBStatementCatalogaInstance = nullptr
 

Detailed Description

Offers a database statement catalog that will be used by the database infrastructure to manage reusable SQL statement definitions.

Take into consideration that only one catalog can exist in the life of an application because it is managed as an static instance.

Definition at line 44 of file DBStatementCatalog.h.

Member Function Documentation

static void HSEPData::DBStatementCatalog::destroy ( )
inlinestatic

Destroys and releases the static instance of the catalog.

Definition at line 85 of file DBStatementCatalog.h.

Referenced by HSEPData::DB::~DB().

+ Here is the caller graph for this function:

static string& HSEPData::DBStatementCatalog::getStatementRef ( string  pStatementName)
inlinestatic

Given a statement name, that corresponds with the name for a database sql file without the ".sql" suffix, returns its content.

Parameters
pStatementName
Returns

Definition at line 98 of file DBStatementCatalog.h.

static void HSEPData::DBStatementCatalog::init ( string  pPath)
inlinestatic

Initializes the static instance of the catalog.

Parameters
pPathWhere to read the SQL files.

Definition at line 77 of file DBStatementCatalog.h.

Referenced by HSEPData::DB::DB().

+ Here is the caller graph for this function:

static void HSEPData::DBStatementCatalog::reload ( )
inlinestatic

Reloads the complete sql catalog.

Definition at line 110 of file DBStatementCatalog.h.

Member Data Documentation

DBStatementCatalog * HSEPData::DBStatementCatalog::aInstance = nullptr
static

Definition at line 71 of file DBStatementCatalog.h.


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