fintp_udal
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FinTP::Db2DatabaseFactory Class Reference

DB2DatabaseFactory derived from the ODBCDatabaseFactory class that implements specific DB2 operations Database factory produces a new DB2 instance. More...

#include <Db2DatabaseProvider.h>

Inheritance diagram for FinTP::Db2DatabaseFactory:

Public Member Functions

 Db2DatabaseFactory ()
 
DatabasecreateDatabase ()
 Creates the provider specific database. More...
 
- Public Member Functions inherited from FinTP::ODBCDatabaseFactory
 ODBCDatabaseFactory (const string &provider)
 Base class for database provider specific objects creations. More...
 
 ~ODBCDatabaseFactory ()
 
DataParameterBasecreateParameter (DataType::DATA_TYPE paramType, DataParameterBase::PARAMETER_DIRECTION parameterDirection=DataParameterBase::PARAM_IN)
 Create parameter. More...
 
DataColumnBasecreateColumn (DataType::DATA_TYPE columnType, unsigned int dimension, int scale, const string &name="")
 
string getParamPlaceholder (const unsigned int i) const
 Returns a string representing a sql statement parameter placeholder. More...
 
string getParamPlaceholder (const string &paramname) const
 Returns a string representing a sql statement parameter placeholder. More...
 
string getTrimFunc (const string &value) const
 Returns sql statement call to a provider specific trim function. More...
 
- Public Member Functions inherited from FinTP::DatabaseProviderFactory
virtual ~DatabaseProviderFactory ()
 
DataParameterBasecreateParameter (DataType::DATA_TYPE paramType)
 
DataColumnBasecreateColumn (DataType::DATA_TYPE columnType, unsigned int dimension, int scale)
 
string name () const
 Getter method of the provider name. More...
 

Static Public Member Functions

static short int getDb2SqlType (const DataType::DATA_TYPE type, const int dimension)
 Convert Db2DataType to and from another DataType. More...
 
static short int getDb2DataType (const DataType::DATA_TYPE type)
 
static DataType::DATA_TYPE getDataType (const short int type, const int dimension)
 
- Static Public Member Functions inherited from FinTP::ODBCDatabaseFactory
static DataColumnBaseinternalCreateColumn (DataType::DATA_TYPE columnType, unsigned int dimension, int scale, const string &name="")
 Create column. More...
 
static short int getODBCSqlType (const DataType::DATA_TYPE type, const int dimension)
 
static short int getODBCDataType (const DataType::DATA_TYPE type)
 
static int getODBCParameterDirection (DataParameterBase::PARAMETER_DIRECTION paramDirection)
 
static DataType::DATA_TYPE getDataType (const short int type, const int dimension)
 

Additional Inherited Members

- Protected Member Functions inherited from FinTP::DatabaseProviderFactory
 DatabaseProviderFactory (const string &providername)
 
- Protected Attributes inherited from FinTP::DatabaseProviderFactory
string m_Name
 

Detailed Description

DB2DatabaseFactory derived from the ODBCDatabaseFactory class that implements specific DB2 operations Database factory produces a new DB2 instance.

Constructor & Destructor Documentation

FinTP::Db2DatabaseFactory::Db2DatabaseFactory ( )
inline

Member Function Documentation

Database * Db2DatabaseFactory::createDatabase ( )
virtual

Creates the provider specific database.

Returns
The new database.

Implements FinTP::ODBCDatabaseFactory.

DataType::DATA_TYPE Db2DatabaseFactory::getDataType ( const short int  type,
const int  dimension 
)
static
short int Db2DatabaseFactory::getDb2DataType ( const DataType::DATA_TYPE  type)
static
short int Db2DatabaseFactory::getDb2SqlType ( const DataType::DATA_TYPE  type,
const int  dimension 
)
static

Convert Db2DataType to and from another DataType.


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