Column.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace Databases
6  {
7  namespace ODBC
8  {
10  class ODBCColumn : public ODBCBuffer
11  {
12  private:
14  std::wstring _name;
16  bool _bound;
18  SQLSMALLINT GetBindDataType() const;
19  public:
21  bool IsBound() const { return _bound; }
23  void operator=(const ODBCColumn&);
25  const std::wstring& GetName() const { return _name; }
27  void BindAt(SQLHANDLE hstmt, int index);
29  void GetDataAt(SQLHANDLE hstmt, int index);
30  ODBCColumn(const ODBCColumn& column);
36  ODBCColumn(const std::wstring& name, SQLSMALLINT type, SQLINTEGER size = ODBCBuffer::INVALID_SIZE);
37  virtual ~ODBCColumn();
38  };
39  }
40  }
41 }
42 
43 
44 
const std::wstring & GetName() const
get the name of the column
Definition: Column.h:25
static const SQLINTEGER INVALID_SIZE
invalid data size
Definition: Buffer.h:23
void operator=(const ODBCColumn &)
copy operator for data only, not binding
Definition: Column.cpp:21
bool IsBound() const
returns true if the column has been bound to a statement
Definition: Column.h:21
virtual ~ODBCColumn()
Definition: Column.cpp:27
ODBCColumn(const ODBCColumn &column)
Definition: Column.cpp:14
void BindAt(SQLHANDLE hstmt, int index)
bind the column to a statement at a given index
Definition: Column.cpp:63
An ODBC column.
Definition: Column.h:10
void GetDataAt(SQLHANDLE hstmt, int index)
get all column data
Definition: Column.cpp:78
An ODBC column.
Definition: Buffer.h:10


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