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

#include <OracleDatabaseProvider.h>

Inheritance diagram for FinTP::OracleDatabaseFactory:

Public Member Functions

 OracleDatabaseFactory ()
 Store informations used by the Database instances. More...
 
DatabasecreateDatabase ()
 Creates the provider specific database. More...
 
DataParameterBasecreateParameter (DataType::DATA_TYPE paramType, DataParameterBase::PARAMETER_DIRECTION parameterDirection)
 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 DataColumnBaseinternalCreateColumn (DataType::DATA_TYPE columnType, unsigned int dimension, int scale, const string &name)
 Create column. More...
 
static unsigned short int getOracleSqlType (const DataType::DATA_TYPE type, const int dimension)
 Gets the Oracle SQL type as defined in Oracle Call Interface. More...
 
static unsigned short int getOracleDataType (const DataType::DATA_TYPE type)
 
static int getOracleParameterDirection (DataParameterBase::PARAMETER_DIRECTION paramDirection)
 
static DataType::DATA_TYPE getDataType (const short int type, const int dimension)
 Gets internal datatype. More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

FinTP::OracleDatabaseFactory::OracleDatabaseFactory ( )
inline

Store informations used by the Database instances.

Member Function Documentation

DataColumnBase * OracleDatabaseFactory::createColumn ( DataType::DATA_TYPE  columnType,
unsigned int  dimension,
int  scale,
const string &  name 
)
virtual
Note
calls internalCreateColumn

Implements FinTP::DatabaseProviderFactory.

Database * OracleDatabaseFactory::createDatabase ( )
virtual

Creates the provider specific database.

Returns
The new database.

Implements FinTP::DatabaseProviderFactory.

DataParameterBase * OracleDatabaseFactory::createParameter ( DataType::DATA_TYPE  paramType,
DataParameterBase::PARAMETER_DIRECTION  parameterDirection 
)
virtual

Create parameter.

Parameters
paramTypetype DATA_TYPE. The parameter data type
parameterDirectiontype PARAMETER_DIRECTION. The parameter direction

Implements FinTP::DatabaseProviderFactory.

DataType::DATA_TYPE OracleDatabaseFactory::getDataType ( const short int  type,
const int  dimension 
)
static

Gets internal datatype.

Note
dimension isn't used
Parameters
typeThe Oracle SQL type as defined in Oracle Call Interface.
dimensionIrelevant parameter
Returns
The data type.
unsigned short int OracleDatabaseFactory::getOracleDataType ( const DataType::DATA_TYPE  type)
static
Note
Very similar to getOracleSqlType but sometimes returns different. Why?
int OracleDatabaseFactory::getOracleParameterDirection ( DataParameterBase::PARAMETER_DIRECTION  paramDirection)
static
Note
Returns 0. Useless function?
unsigned short int OracleDatabaseFactory::getOracleSqlType ( const DataType::DATA_TYPE  type,
const int  dimension 
)
static

Gets the Oracle SQL type as defined in Oracle Call Interface.

Parameters
typeThe internal datatype .
dimensionOnly applicable to DataType::CHAR_TYPE. If larger than 4000 SQLT_LNG will be returned, else SQLT_STR
Returns
The Oracle SQL type.
Note
Only used once in OracleDatabase.cpp.
string FinTP::OracleDatabaseFactory::getParamPlaceholder ( const unsigned int  i) const
inlinevirtual

Returns a string representing a sql statement parameter placeholder.

Parameters
iThe bind parameter index.
Returns
The parameter placeholder.

Implements FinTP::DatabaseProviderFactory.

string FinTP::OracleDatabaseFactory::getParamPlaceholder ( const string &  paramname) const
inlinevirtual

Returns a string representing a sql statement parameter placeholder.

Parameters
paramnameThe bind parameter name.
Returns
The parameter placeholder.

Implements FinTP::DatabaseProviderFactory.

string FinTP::OracleDatabaseFactory::getTrimFunc ( const string &  value) const
inlinevirtual

Returns sql statement call to a provider specific trim function.

Parameters
valueThe string used in the trim function call.
Returns
The trim function call.

Implements FinTP::DatabaseProviderFactory.

DataColumnBase * OracleDatabaseFactory::internalCreateColumn ( DataType::DATA_TYPE  columnType,
unsigned int  dimension,
int  scale,
const string &  name 
)
static

Create column.

Parameters
columnTypetype DATA_TYPE. The column's datatype.
dimensiontype int. The column's dimension.
scaletype int. The column's scale.
nametype string. The column's name.

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