#include <OracleDatabaseProvider.h>
FinTP::OracleDatabaseFactory::OracleDatabaseFactory |
( |
| ) |
|
|
inline |
Store informations used by the Database instances.
Database * OracleDatabaseFactory::createDatabase |
( |
| ) |
|
|
virtual |
Create parameter.
- Parameters
-
paramType | type DATA_TYPE. The parameter data type |
parameterDirection | type 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
-
type | The Oracle SQL type as defined in Oracle Call Interface. |
dimension | Irelevant parameter |
- Returns
- The data type.
- Note
- Very similar to getOracleSqlType but sometimes returns different. Why?
- 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
-
type | The internal datatype . |
dimension | Only 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
-
i | The 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
-
paramname | The 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
-
value | The string used in the trim function call. |
- Returns
- The trim function call.
Implements FinTP::DatabaseProviderFactory.
Create column.
- Parameters
-
columnType | type DATA_TYPE. The column's datatype. |
dimension | type int. The column's dimension. |
scale | type int. The column's scale. |
name | type string. The column's name. |
The documentation for this class was generated from the following files: