Public Member Functions | Static Public Member Functions

AppSecInc::Databases::ODBC::ODBCParameter Class Reference

An ODBC column. More...

#include <Parameter.h>

Inheritance diagram for AppSecInc::Databases::ODBC::ODBCParameter:
AppSecInc::Databases::ODBC::ODBCBuffer

List of all members.

Public Member Functions

void operator= (const ODBCParameter &)
SQLSMALLINT GetIOType () const
 i/o type, eg. SQL_PARAM_INPUT
SQLSMALLINT GetParameterType () const
 the SQL data type of the parameter, eg. SQL_INTEGER
const std::wstring & GetName () const
 get the name of the parameter
void BindAt (SQLHANDLE hstmt, SQLHDESC hipd, int index)
 bind the parameter to a statement at a given index
 ODBCParameter (const ODBCParameter &parameter)
 constructors
 ODBCParameter (const std::wstring &name, SQLSMALLINT iotype, SQLSMALLINT valuetype, SQLSMALLINT parametertype, SQLINTEGER datasize)
 ODBCParameter (const std::wstring &name, const std::wstring &value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, const std::string &value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, const SYSTEMTIME &value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, const GUID &value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, bool value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, char value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, wchar_t value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, int value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, short value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, float value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 ODBCParameter (const std::wstring &name, double value, SQLSMALLINT iotype=SQL_PARAM_INPUT)
virtual ~ODBCParameter ()

Static Public Member Functions

static ODBCParameter Create (const std::wstring name, const std::wstring &value, SQLSMALLINT sqltype, SQLSMALLINT iotype=SQL_PARAM_INPUT)
 convert a string value into an ODBC parameter

Detailed Description

An ODBC column.


Constructor & Destructor Documentation

ODBCParameter::ODBCParameter ( const ODBCParameter parameter)

constructors

ODBCParameter::ODBCParameter ( const std::wstring &  name,
SQLSMALLINT  iotype,
SQLSMALLINT  valuetype,
SQLSMALLINT  parametertype,
SQLINTEGER  datasize 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
const std::wstring &  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
const std::string &  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
const SYSTEMTIME &  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
const GUID &  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
bool  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
char  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
wchar_t  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
int  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
short  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
float  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::ODBCParameter ( const std::wstring &  name,
double  value,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
)
ODBCParameter::~ODBCParameter ( ) [virtual]

Member Function Documentation

void ODBCParameter::BindAt ( SQLHANDLE  hstmt,
SQLHDESC  hipd,
int  index 
)

bind the parameter to a statement at a given index

ODBCParameter ODBCParameter::Create ( const std::wstring  name,
const std::wstring &  value,
SQLSMALLINT  sqltype,
SQLSMALLINT  iotype = SQL_PARAM_INPUT 
) [static]

convert a string value into an ODBC parameter

SQLSMALLINT AppSecInc::Databases::ODBC::ODBCParameter::GetIOType ( ) const [inline]

i/o type, eg. SQL_PARAM_INPUT

const std::wstring& AppSecInc::Databases::ODBC::ODBCParameter::GetName ( ) const [inline]

get the name of the parameter

SQLSMALLINT AppSecInc::Databases::ODBC::ODBCParameter::GetParameterType ( ) const [inline]

the SQL data type of the parameter, eg. SQL_INTEGER

void ODBCParameter::operator= ( const ODBCParameter rhs)

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


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com