fintp_udal
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FinTP::OracleParameter< T > Class Template Reference

Store parameter information used by the Oracle database instance to execute queries (select) or nonqueries (insert, update, delete) More...

#include <OracleParameter.h>

Inheritance diagram for FinTP::OracleParameter< T >:

Public Member Functions

 OracleParameter (DataParameterBase::PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor. More...
 
 OracleParameter (const string &paramName, DataParameterBase::PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor. More...
 
 OracleParameter (const OracleParameter< T > &source)
 Copy constructor. More...
 
 ~OracleParameter ()
 Destructor. More...
 
void setValue (T columnValue)
 Sets a value. More...
 
getValue () const
 Gets the value. More...
 
void setDimension (const unsigned int dimension)
 Sets a dimension. More...
 
unsigned int getDimension () const
 Gets the dimension. More...
 
void push_back (const string &value)
 
const string & getElement (size_t position) const
 
void ** getBindHandle ()
 Gets bind handle. More...
 
void * getIndicatorValue ()
 
bool isNULLValue () const
 
template<>
void push_back (const string &value)
 
template<>
unsigned int getDimension () const
 
template<>
const string & getElement (size_t position) const
 
template<>
unsigned int getDimension () const
 
template<>
void setDimension (const unsigned int dimension)
 
template<>
void setValue (string columnValue)
 
template<>
string getValue () const
 
template<>
 ~OracleParameter ()
 
- Public Member Functions inherited from FinTP::DataParameter< T >
 DataParameter (PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor parameterDirection type PARAMETER_DIRECTION The type of the parameter (in, out , inout) More...
 
 DataParameter (const string &paramName, PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor. More...
 
 DataParameter (const DataParameter< T > &source)
 Constructor with parameter. More...
 
DataParameter< T > & operator= (const DataParameter< T > &source)
 Stores the parameter type, value and dimension. More...
 
template<>
DataType::DATA_TYPE getParamType ()
 
template<>
DataType::DATA_TYPE getParamType ()
 
template<>
DataType::DATA_TYPE getParamType ()
 
template<>
DataType::DATA_TYPE getParamType ()
 
template<>
 DataParameter (PARAMETER_DIRECTION paramDirection)
 
template<>
 DataParameter (const string &paramName, PARAMETER_DIRECTION paramDirection)
 
template<>
 DataParameter (const DataParameter< string > &source)
 
template<>
DataParameter< string > & operator= (const DataParameter< string > &source)
 
template<>
DataType::DATA_TYPE getParamType ()
 
template<>
DataType::DATA_TYPE getParamType ()
 
- Public Member Functions inherited from FinTP::DataParameterBase
 DataParameterBase (PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor. More...
 
 DataParameterBase (const string &paramName, DataType::DATA_TYPE paramType, PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN, const unsigned int dimension=0)
 Constructor. More...
 
 DataParameterBase (const DataParameterBase &source)
 Constructor. More...
 
DataParameterBaseoperator= (const DataParameterBase &source)
 
virtual ~DataParameterBase ()
 Destructor. More...
 
void setName (const string &name)
 
string getName () const
 
void setDirection (const PARAMETER_DIRECTION paramDirection)
 
PARAMETER_DIRECTION getDirection () const
 
void setType (const DataType::DATA_TYPE dataType)
 
DataType::DATA_TYPE getType () const
 
void * getStoragePointer ()
 
const void * getReadStoragePointer () const
 
virtual void setString (string value)
 
void setInt (int value)
 
void setLong (long value)
 
void setShort (short value)
 
virtual void setDate (string value)
 
int getInt ()
 
long getLong ()
 
short getShort ()
 
string getString ()
 

Private Attributes

OCIBind * m_hBind
 
sb2 m_IndicatorVariable
 

Additional Inherited Members

- Public Types inherited from FinTP::DataParameterBase
enum  PARAMETER_DIRECTION { PARAM_IN, PARAM_OUT, PARAM_INOUT }
 
- Static Public Member Functions inherited from FinTP::DataParameter< T >
static DataType::DATA_TYPE getParamType ()
 
- Protected Attributes inherited from FinTP::DataParameter< T >
m_Value
 

Detailed Description

template<class T>
class FinTP::OracleParameter< T >

Store parameter information used by the Oracle database instance to execute queries (select) or nonqueries (insert, update, delete)

Constructor & Destructor Documentation

Constructor.

Parameters
paramDirectiontype PARAMETER_DIRECTION. The parameter direction (in, out or inout)
template<class T>
FinTP::OracleParameter< T >::OracleParameter ( const string &  paramName,
DataParameterBase::PARAMETER_DIRECTION  paramDirection = DataParameterBase::PARAM_IN 
)
inlineexplicit

Constructor.

Parameters
paramNametype string. The parameter name
paramDirectiontype PARAMETER_DIRECTION The parameter direction (in, out or inout)
template<class T>
FinTP::OracleParameter< T >::OracleParameter ( const OracleParameter< T > &  source)
inline

Copy constructor.

Parameters
sourceThe source object
template<class T>
FinTP::OracleParameter< T >::~OracleParameter ( )
inline

Destructor.

template<>
FinTP::OracleParameter< string >::~OracleParameter ( )
inline

Member Function Documentation

template<class T>
void** FinTP::OracleParameter< T >::getBindHandle ( )
inlinevirtual

Gets bind handle.

Returns
Pointer to a OCIBind*. Used for calls to OCIBindByPos

Reimplemented from FinTP::DataParameterBase.

template<class T>
unsigned int FinTP::OracleParameter< T >::getDimension ( ) const
inlinevirtual

Gets the dimension.

Returns
The dimension.

Reimplemented from FinTP::DataParameterBase.

template<>
unsigned int FinTP::OracleParameter< vector< string > >::getDimension ( ) const
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<>
unsigned int FinTP::OracleParameter< string >::getDimension ( ) const
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<class T>
const string& FinTP::OracleParameter< T >::getElement ( size_t  position) const
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<>
const string & FinTP::OracleParameter< vector< string > >::getElement ( size_t  position) const
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<class T>
void* FinTP::OracleParameter< T >::getIndicatorValue ( )
inlinevirtual
template<class T>
T FinTP::OracleParameter< T >::getValue ( ) const
inlinevirtual

Gets the value.

Returns
The value.

Implements FinTP::DataParameter< T >.

template<>
string FinTP::OracleParameter< string >::getValue ( ) const
inlinevirtual
template<class T>
bool FinTP::OracleParameter< T >::isNULLValue ( ) const
inlinevirtual
template<class T>
void FinTP::OracleParameter< T >::push_back ( const string &  value)
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<>
void FinTP::OracleParameter< vector< string > >::push_back ( const string &  value)
inlinevirtual

Reimplemented from FinTP::DataParameterBase.

template<class T>
void FinTP::OracleParameter< T >::setDimension ( const unsigned int  dimension)
inlinevirtual

Sets a dimension.

Parameters
dimensionThe dimension.

Reimplemented from FinTP::DataParameter< T >.

template<>
void FinTP::OracleParameter< string >::setDimension ( const unsigned int  dimension)
inlinevirtual

Reimplemented from FinTP::DataParameter< T >.

template<class T>
void FinTP::OracleParameter< T >::setValue ( columnValue)
inlinevirtual

Sets a value.

Parameters
columnValueThe column value.

Implements FinTP::DataParameter< T >.

template<>
void FinTP::OracleParameter< string >::setValue ( string  columnValue)
inline

Member Data Documentation

template<class T>
OCIBind* FinTP::OracleParameter< T >::m_hBind
private
template<class T>
sb2 FinTP::OracleParameter< T >::m_IndicatorVariable
private

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