|
Class Description |
ODBC Statement |
|
Class Name |
OStatement |
|
Parent Class |
ULogObject |
|
Header Name |
|
|
Library |
libpsODBC |
|
Language |
C++ |
|
Date Written |
November 1, 1999 |
|
Last Updated |
February 2, 2004 |
|
Last Updated By |
Brian N. Ceccarelli |
|
Notes |
This header file processes the ODBC Statement Handle. You |
|
See Also |
|
# |
Inline |
Pure Virtual |
Virtual |
Method |
Description |
|
1 |
|
|
|
Constructor |
|
|
2 |
|
|
|
Cancel a Currently Executing Statement |
|
|
3 |
|
|
|
ps_int32 osClearBindings(ps_int8 keep_pending_results_in_tact_sw = 0) |
Clear ODBC Parameter and Column Bindings |
|
4 |
|
|
|
Commit a Transaction |
|
|
5 |
|
|
|
Write Errors on the ODBC Statement and Translate the ODBC Return Code to a DBPowerSuite Return Code |
|
|
6 |
|
|
|
Write All ODBC Messages Pending on an ODBC Statement |
|
|
7 |
|
|
|
Execute an Adhoc SQL Statement |
|
|
8 |
|
|
|
ps_int32 osExecute(OParameter column[], ps_int32 number_of_columns, ps_int32* number_of_rows = NULL) |
Execute an Adhoc SQL Statement |
|
9 |
|
|
|
Execute an Adhoc SQL Statement |
|
|
10 |
|
|
|
ps_int32 osExecutePreparedSQL(ps_int32* number_of_rows = NULL) |
Execute a Prepared SQL Statement |
|
11 |
|
|
|
Execute a Prepared SQL Statement |
|
|
12 |
|
|
|
Execute a Prepared SQL Statement |
|
|
13 |
|
|
|
ps_int32 osExecuteSQL(const ps_char* sql, ps_int32* number_of_rows = NULL) |
Execute a SQL Statement |
|
14 |
|
|
|
Execute a SQL Statement |
|
|
15 |
|
|
|
Execute a SQL Statement |
|
|
16 |
|
|
|
Finalize an OStatement |
|
|
17 |
|
|
|
Get the Cancel Switch |
|
|
18 |
|
|
|
OConnection & osGetConnection() const |
|
|
19 |
|
|
|
HDBC osGetConnectionHandle() const |
|
|
20 |
|
|
|
Get the Deadlock Victim Switch |
|
|
21 |
|
|
|
ps_int32 osGetDeadlockWaitTimeBetweenRetries() const |
|
|
22 |
|
|
|
ps_int8 osGetDiscardResultsSw() const |
|
|
23 |
|
|
|
OEnvironment & osGetEnvironment() const |
|
|
24 |
|
|
|
HENV osGetEnvironmentHandle() const |
|
|
25 |
|
|
|
ps_int32 osGetMaximumRowsPerSet() const |
|
|
26 |
|
|
|
Messages * osGetMessages() const |
|
|
27 |
|
|
|
ps_int32 osGetNumberOfDeadlockRetries() const |
|
|
28 |
|
|
|
ps_int32 osGetNumberOfODBCErrors() const |
|
|
29 |
|
|
|
ps_int32 osGetNumberOfParameterSets() const |
|
|
30 |
|
|
|
Get the SQLState for the OStatement |
|
|
31 |
|
|
|
Get SQL State Switch |
|
|
32 |
|
|
|
HSTMT osGetStatementHandle() const |
|
|
33 |
|
|
|
ps_int32 osGetStatementType() const |
|
|
34 |
|
|
|
ps_int32 osGetStructureSizeForParameterRowWiseBinding() const |
|
|
35 |
|
|
|
ps_int32 osGetStructureSizeForRowWiseBinding() const |
|
|
36 |
|
|
|
ps_int8 osGetUseTimeoutsSw() const |
|
|
37 |
|
|
|
Allocate a ODBC Statement |
|
|
38 |
|
|
|
Allocate a ODBC Statement |
|
|
39 |
|
|
|
ps_int8 osIsStatementAllocatedSw() const |
|
|
40 |
|
|
|
Prepare a Statement |
|
|
41 |
|
|
|
Rollback a Transaction |
|
|
42 |
|
|
|
Turn Off/On Always Clear Bindings |
|
|
43 |
|
|
|
Set the Column Descriptions Callback Method |
|
|
44 |
|
|
|
ps_int32 osSetColumns(ps_int32 number_of_columns = 0, OParameter column[] = NULL) |
Assign Each Result Row Set Column to an OParameter |
|
45 |
|
|
|
Set the Method Which is Executed Every Time a Deadlock Condition is Received From the ODBC Data Source |
|
|
46 |
|
|
|
Set Wait Time Before Resending a SQL Command After Deadlocked |
|
|
47 |
|
|
|
Turn On/Off Discarding of Results |
|
|
48 |
|
|
|
ps_int32 osSetMaximumRowsPerSet(ps_int32 max_rows_in_a_set = 1, ps_uint16* row_status_array = NULL) |
Set the Maximums Rows Per Set |
|
49 |
|
|
|
ps_int32 osSetNumberOfDeadlockRetries(ps_int32 number_of_retries = ODBC_OSTMT_DEADLOCK_RETRIES) |
Set the Number of Times This Class Resends a SQL Command Upon Receiving a Deadlock Victim Error |
|
50 |
|
|
|
ps_int32 osSetNumberOfParameterSets(ps_int32 max_rows_in_a_set = 1) |
Set the Number of Parameter Sets |
|
51 |
|
|
|
ps_int32 osSetParameters(ps_int32 number_of_parameters = 0, OParameter parameter[] = NULL) |
Set the Parameters for a SQL Query |
|
52 |
|
|
|
ps_int32 osSetQueryTimeout(ps_int32 timeout_seconds = ODBC_OSTMT_QUERY_TIMEOUT) |
Set the Timeout for a SQL Statement to Execute |
|
53 |
|
|
|
Set the Method Which is Executed Every Time a Row is Received From the ODBC Data Source |
|
|
54 |
|
|
|
ps_int32 osSetRowsAffectedCallback(ORowsAffectedCallback fptr, ps_void* user_data = NULL) |
Set the Method Called Every Time the ODBC Data Source Finishes Sending a Result Set |
|
55 |
|
|
|
Set the SQLState for the OStatement |
|
|
56 |
|
|
|
Set the SQL Query |
|
|
57 |
|
|
|
ps_int32 osSetStructureSizeForParameterRowWiseBinding(ps_int32 structure_size_in_bytes = 0) |
Set Structure Size for Parameter Row-Wise Binding |
|
58 |
|
|
|
ps_int32 osSetStructureSizeForRowWiseBinding(ps_int32 structure_size_in_bytes = 0) |
Set Structure Size for Row-Wise Binding |
|
59 |
|
|
|
Destructor |
|
# |
Inline |
Pure Virtual |
Virtual |
Method |
Description |
|
1 |
|
|
|
Bind Program Variables to Query Result Columns |
|
|
2 |
|
|
|
Bind Program Variables to Parameters |
|
|
3 |
|
|
|
Get the Number of Columns And Call the User's Column Headings Callback |
|
|
4 |
|
|
|
Call the User's Deadlock Callback |
|
|
5 |
|
|
|
Fetch Data from the ODBC Data Source |
|
|
6 |
|
|
|
Free Parameter Marker Values Text Memory |
|
|
7 |
|
|
|
ps_int32 osGetColumnDescriptions(ps_int32& number_of_results_columns_retrieved) |
Get Descriptions of Row Result Columns from the Data Source |
|
8 |
|
|
|
Get Parameter Marker Values Text |
|
|
9 |
|
|
|
ps_int32 osResetBindingCharacteristics(ps_int8 deadlock_test_sw = 1) |
Reset Binding Characteristics |
|
10 |
|
|
|
Call the User's Row Callback |
|
|
11 |
|
|
|
The ODBC Rows Affected Callback |
|
|
12 |
|
|
|
Save the SQL Statement Internally |
|
# |
Inline |
Pure Virtual |
Virtual |
Method |
Description |
Go to DBPowerSuite 7.9 Application Programming Interface.
Updated: Thu Jun 18 21:13:23 2009