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

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

#include <ODBCParameter.h>

Inheritance diagram for FinTP::ODBCParameter< T >:

Public Member Functions

 ODBCParameter (DataParameterBase::PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 
 ODBCParameter (const string &paramName, DataParameterBase::PARAMETER_DIRECTION paramDirection=DataParameterBase::PARAM_IN)
 Constructor. More...
 
 ODBCParameter (const ODBCParameter< T > &source)
 
 ~ODBCParameter ()
 
void * getIndicatorValue ()
 
void setValue (T columnValue)
 
void push_back (const string &value)
 
const string & getElement (size_t position) const
 
getValue () const
 
void setDimension (const unsigned int dimension)
 
unsigned int getDimension () const
 
bool isNULLValue () const
 
template<>
void push_back (const string &value)
 
template<>
unsigned int getDimension () const
 
template<>
const string & getElement (size_t position) const
 
template<>
void setValue (vector< string > columnValue)
 
template<>
unsigned int getDimension () const
 
template<>
void setDimension (const unsigned int dimension)
 
template<>
void setValue (string columnValue)
 
template<>
string getValue () const
 
template<>
 ~ODBCParameter ()
 
- 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 ** getBindHandle ()
 
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

SQLLEN m_StrLen_or_IndPtr
 

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::ODBCParameter< T >

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

Constructor & Destructor Documentation

template<class T>
FinTP::ODBCParameter< T >::ODBCParameter ( const string &  paramName,
DataParameterBase::PARAMETER_DIRECTION  paramDirection = DataParameterBase::PARAM_IN 
)
inline

Constructor.

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

Member Function Documentation

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameterBase.

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

Reimplemented from FinTP::DataParameter< T >.

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

Reimplemented from FinTP::DataParameter< T >.

template<class T>
void FinTP::ODBCParameter< T >::setValue ( columnValue)
inlinevirtual
template<>
void FinTP::ODBCParameter< vector< string > >::setValue ( vector< string >  columnValue)
inline
template<>
void FinTP::ODBCParameter< string >::setValue ( string  columnValue)
inline

Member Data Documentation

template<class T>
SQLLEN FinTP::ODBCParameter< T >::m_StrLen_or_IndPtr
private

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