OSB_DB Namespace Reference


Detailed Description

I/O layer for OSB objects.

The namespace OSB_DB contains all database related functionality of the OSB library. These are general classes to facilitate database access as well as all database gateways.
See here for all namespaces.

Classes

Typedefs

Enumerations

Functions

Variables


Typedef Documentation

typedef std::list< std::pair<OSB_LIB::TaxkeyTriplet, OSB_LIB::TaxListId> > OSB_DB::Taxkey3Table

Definition at line 54 of file tax-gw.h.


Enumeration Type Documentation

enum OSB_DB::SqlCode

Oracle SQL error codes.

Note that they are negative except for +1403.

Enumerator:
CHILD_FOUND 
NO_PARENT 
DEAD_LOCK 
RESOURCE_BUSY 
UNIQUE_CONSTRAINT_VIOLATED 
SUCCESSFUL_COMPLETION 
NO_DATA_FOUND 

Definition at line 82 of file otl.h.


Function Documentation

DbException OSB_DB::dbException ( const otl_exception &  e  ) 

Convert a OTL exception into DbException.

Remarks:
Callers of the function must include dberror.h.

DbException OSB_DB::dbException ( long  errNo,
const otl_exception &  e 
)

Convert a OTL exception into DbException with specific error number.

Remarks:
Callers of the function must include dberror.h.

ChildFound OSB_DB::childFound ( const otl_exception &  e  ) 

Convert a OTL exception for foreign key violations into DbException.

Remarks:
Callers of the function must include dberror.h.

ChildFound OSB_DB::childFound ( long  errNo,
const otl_exception &  e 
)

Convert a OTL exception for foreign key violations into DbException with specific error number.

Remarks:
Callers of the function must include dberror.h.

std::string OSB_DB::otlErrMsg ( const otl_exception &  e  ) 

Helper function to format the error information from an OTL exception into a std::string. This is useful to convert an otl_exception into an OSB_LIB::OsbException.

Returns:
A string containing the formatted error message.


Variable Documentation

const short OSB_DB::FEW_ROWS = 50

Array size for use in transactions of a few hundred rows.

Definition at line 67 of file otl.h.

const short OSB_DB::MANY_ROWS = 2000

Array size for use in transactions of more than 500 rows.

Definition at line 69 of file otl.h.

const unsigned int OSB_DB::MAX_NAME = 63

Definition at line 71 of file otl.h.

const unsigned int OSB_DB::MAX_DES = 255

Definition at line 72 of file otl.h.

const std::string OSB_DB::DES_DB = "<char[256]>"

Definition at line 73 of file otl.h.

const std::string OSB_DB::NAME_DB = "<char[64]>"

Definition at line 74 of file otl.h.

const std::string OSB_DB::ROWID_DB = "<char[32]>"

Definition at line 75 of file otl.h.


Generated on Sat Sep 2 14:08:52 2006 for OSB Library by  doxygen 1.4.7