#include "CTBodbcStatement.hxx"
Collaboration diagram for CTBodbcStatement:
Public Types | |
enum | { format_bsv = 0, format_bsvh, format_tsv, format_tsvh, format_csv, format_csvh, format_lvp, format_lvph } |
Public Methods | |
CTBodbcStatement (CTBodbcConnect &dbc) | |
~CTBodbcStatement () | |
bool | Prepare (const char *c_stmt) |
bool | Execute () |
bool | Fetch () |
bool | Close () |
bool | UnbindParameter () |
bool | UnbindCol () |
bool | NumResultCols (int &i_ncol) |
bool | DescribeCol (int i_icol, char *c_colname, int i_size, SWORD &i_sqltype, int &i_precision, int &i_scale, bool &b_nullable) |
bool | FetchToStream (ostream &os, int i_format=format_bsv, int i_maxrow=0) |
bool | GetData (int i_icol, SWORD i_ctype, void *p_value, int i_size, bool &b_null) |
bool | GetData (int i_icol, char *c_value, int i_size, bool &b_null) |
bool | GetData (int i_icol, CTBint32 &i_value, bool &b_null) |
bool | GetData (int i_icol, float &f_value, bool &b_null) |
bool | GetData (int i_icol, double &d_value, bool &b_null) |
bool | GetData (int i_icol, CTBodbcTime &time, bool &b_null) |
bool | BindIParameter (int i_ipar, SWORD i_ctype, SWORD i_sqltype, void *p_value) |
bool | BindIParameter (int i_ipar, SWORD i_sqltype, const char *c_pvalue) |
bool | BindIParameter (int i_ipar, SWORD i_sqltype, CTBint32 &i_pvalue) |
bool | BindIParameter (int i_ipar, SWORD i_sqltype, float &f_pvalue) |
bool | BindIParameter (int i_ipar, SWORD i_sqltype, double &d_pvalue) |
bool | BindIParameter (int i_ipar, SWORD i_sqltype, CTBodbcTime &pvalue) |
bool | BindCol (int i_icol, SWORD i_ctype, void *p_value, int i_size, CTBint32 &pi_rsize) |
bool | BindCol (int i_icol, char *c_cvalue, int i_size, CTBint32 &i_rsize) |
bool | BindCol (int i_icol, CTBint32 &i_cvalue, CTBint32 &i_rsize) |
bool | BindCol (int i_icol, float &f_cvalue, CTBint32 &i_rsize) |
bool | BindCol (int i_icol, double &d_cvalue, CTBint32 &i_rsize) |
bool | BindCol (int i_icol, CTBodbcTime &cvalue, CTBint32 &i_rsize) |
void | PrintError (ostream &os=cout) |
Private Methods | |
bool | AllocIfNull () |
Private Attributes | |
CTBodbcConnect & | m_dbc |
HSTMT | m_hstmt |
Definition at line 16 of file CTBodbcStatement.hxx.
|
Definition at line 20 of file CTBodbcStatement.hxx. |
|
Contruct bound to connection.
Definition at line 28 of file CTBodbcStatement.cxx. |
|
Destructor.
Definition at line 37 of file CTBodbcStatement.cxx. |
|
Prepare statement.
Definition at line 50 of file CTBodbcStatement.cxx. |
|
Execute prepared statement.
Definition at line 70 of file CTBodbcStatement.cxx. |
|
Fetch next row.
Definition at line 90 of file CTBodbcStatement.cxx. Referenced by FetchToStream().
|
|
Close cursor.
Definition at line 110 of file CTBodbcStatement.cxx. Referenced by FetchToStream().
|
|
Unbind parameters.
Definition at line 130 of file CTBodbcStatement.cxx. |
|
Unbind columns.
Definition at line 150 of file CTBodbcStatement.cxx. |
|
Get number of result set columns.
Definition at line 170 of file CTBodbcStatement.cxx. Referenced by FetchToStream().
|
|
Get attributes of result column.
Definition at line 202 of file CTBodbcStatement.cxx. Referenced by FetchToStream().
|
|
Fetch and output to stream. Fetches at most i_maxrow rows and writes the result to stream os using the format given by i_format. An unlimited number of rows is fetched when i_maxrow is 0. Definition at line 245 of file CTBodbcStatement.cxx. |
|
Get an unbound column (generic).
Definition at line 510 of file CTBodbcStatement.cxx. Referenced by FetchToStream(), and GetData().
|
|
Get an unbound column (char*) - see above.
Definition at line 15 of file CTBodbcStatement.icc. |
|
Get an unbound column (int) - see above.
Definition at line 24 of file CTBodbcStatement.icc. |
|
Gget an unbound column (float) - see above.
Definition at line 33 of file CTBodbcStatement.icc. |
|
Get an unbound column (double) - see above.
Definition at line 42 of file CTBodbcStatement.icc. |
|
Get an unbound column (time) - see above.
Definition at line 51 of file CTBodbcStatement.icc. |
|
Bind a parameter (generic).
Definition at line 540 of file CTBodbcStatement.cxx. Referenced by BindIParameter().
|
|
Bind a parameter (char*).
Definition at line 570 of file CTBodbcStatement.cxx. |
|
Bind a parameter (int) - see above.
Definition at line 61 of file CTBodbcStatement.icc. |
|
Bind a parameter (float) - see above.
Definition at line 70 of file CTBodbcStatement.icc. |
|
Bind a parameter (double) - see above.
Definition at line 79 of file CTBodbcStatement.icc. |
|
Bind a parameter (time) - see above.
Definition at line 88 of file CTBodbcStatement.icc. |
|
Bind a column (generic).
Definition at line 602 of file CTBodbcStatement.cxx. Referenced by BindCol().
|
|
Bind a column (char*) - see above.
Definition at line 97 of file CTBodbcStatement.icc. |
|
Bind a column (int) - see above.
Definition at line 106 of file CTBodbcStatement.icc. |
|
Bind a column (float) - see above.
Definition at line 115 of file CTBodbcStatement.icc. |
|
Bind a column (double) - see above.
Definition at line 124 of file CTBodbcStatement.icc. |
|
Bind a column (time) - see above.
Definition at line 133 of file CTBodbcStatement.icc. |
|
Print s+c+e errors to stream.
Definition at line 623 of file CTBodbcStatement.cxx. Referenced by AllocIfNull(), BindCol(), BindIParameter(), Close(), DescribeCol(), Execute(), Fetch(), GetData(), NumResultCols(), Prepare(), UnbindCol(), and UnbindParameter().
|
|
Alloc statement if none allocated.
Definition at line 641 of file CTBodbcStatement.cxx. Referenced by BindCol(), BindIParameter(), Execute(), Fetch(), GetData(), and Prepare().
|
|
back reference to dbConnect.
Definition at line 103 of file CTBodbcStatement.hxx. |
|
ODBC statement handle.
Definition at line 104 of file CTBodbcStatement.hxx. |