Class: cSQLStatement
*****************************************************************************
*** Class : cSQLStatement ***
*** Purpose: Statement object for embedded sql ***
*** ***
*** Description: ***
*** An object is created for each statement. These will be children ***
*** of cSQLConnection objects which manage the create and destruction ***
*** of these. ***
*****************************************************************************
Class Hierarchy:
ARRAY

cSQLStatementClass Definition
Properties
Integer
phCLIHandle
Integer
phStmtConnection
Integer
piBindFile
Integer
piLastArgument
Integer
piLastColumn
String
psDriverID
Functions and Procedures

Construct_object(Integer Image)
String
DFDateToSQLDate(Date dDFDate)
***
*** Function: DFDateToSQLDate
*** Purpose : Convert a DataFlex date to a SQL Date. Use dummy zero dates.
***

FreeHandle()
***
*** Procedure: FreeHandle
*** Purpose : Free a handle. Since a handle is stored in an
*** cSQLStatement object, we destroy the object.
***

HandleError(Integer ihstmt Integer ihdbc String sDrvrId String sOriginMsg)
***
*** Procedure: HandleError
*** Puprose : Handle an error that has occured while checking properties.
***
String
RemoveComponentIdentifier(String sDiagMessage)
***
*** Function: RemoveComponentIdentifier
*** Purpose : Remove the component identifier from a diagnostic message
***

SQLBindFile(Integer iFileNum)
***
*** Procedure: SQLBindFile
*** Purpose : Add a file to the files used to place the statement result in.
***

SQLCall()
***
*** Procedure: SQLCall
*** Purpose : Call a stored procedure
***

SQLClose()
***
*** Procedure: SQLClose
*** Purpose : Close a statement and free all alllocated resources
***
String
SQLColAttribute(Integer iCol Integer iAttribId)
***
*** Function: SQLColAttribute
*** Purpose : Get a column's attribute
***
Integer
SQLColumnMap(String sColname)
***
*** Function: SQLColumnMap
*** Purpose : Map a column name to a number, if the name id not found no
*** error is generated the returned number will be 0 (zero) in
*** that case
***
String
SQLColumnValue(Integer iCol)
***
*** Function: SQLColumnValue
*** Purpose : Return the value of a column in a fetched row of a given
*** statement.
***
String
SQLDateToDFDate(String sSQLDate)
***
*** Function: SQLDateToDFDate
*** Purpose : Convert a SQL date to a DataFlex Date. Use dummy zero dates.
***
{ Visibility=Private }

SQLExecDirect(String sStatement)
***
*** Procedure: SQLExecDirect
*** Purpose : Prepare and execute a statement
***

SQLExecute()
***
*** Procedure: SQLExecute
*** Purpose : Execute a prepared statement
***
Integer
SQLFetch()
***
*** Procedure: SQLFetch
*** Purpose : Fetch the next row
*** Returns : 0 = No more data
*** <>0 = Success
***

SQLFetchActivatesBuffer(Integer iFileNum Integer bState)
***
*** Procedure: SQLFetchActivatesBuffer
*** Purpose : Setup a file that will be acivated after a succesfull
*** fetch on the statement
***
String
SQLGetArgument(Integer iArgnum)
***
*** Function: SQLGetArgument
*** Purpose : Get the specified argument from a procedure
***
String
SQLGetData(Integer iCol Integer iLen)
*************************************************************************
*** Function: SQLGetData ***
*** Purpose : Get data of a column. ***
*************************************************************************
String
SQLGetMessage(Integer iMessageNum)
String
SQLGetNextArgument()
***
*** Function: SQLGetNextArgument
*** Purpose : Get the next argument
***

SQLIllegalAttribute(String sErrText String sOriginMsg)
***
*** Procedure: SQLIllegalAttribute
*** Purpose : Handle an illegal attribute error
***
String
SQLNextColumn()
***
*** Function: SQLNextColumn
*** Purpose : Get the next column
***
Integer
SQLNextResultSet()
***
*** Function: SQLNextResultSet
*** Purpose : Switch to the next set
*** Returns : 0 = No more result sets
*** <>0 = Switched to next set
***

SQLPrepare(String sStatement)
***
*** Procedure: SQLPrepare
*** Purpose : Prepare a statement for execution
***
String
SQLPrivateColAttribute(Integer iCol Integer iAttribId Integer ihdbc String sDrvrId Integer ihstmt)
Integer
SQLPrivateColumnIsLegal(Integer ihdbc String sDrvrId Integer ihstmt Integer iCol)
***
*** Function: SQLPrivateColumnIsLegal
*** Purpose : Check if a column number is legal
***
String
SQLPrivateColumnValue(Integer iCol Integer ihdbc String sDrvrId Integer ihstmt)
String
SQLPrivateStmtAttribute(Integer iAttribId Integer ihdbc String sDrvrId Integer ihstmt)
String
SQLReturnValue()
***
*** Function: SQLReturnValue
*** Purpose : Get the reutn value of a stored function
***

SQLSetArgument(Integer iArgnum String sArgument)
***
*** Procedure: SQLSetArgument
*** Purpose : Set the next argument
***

SQLSetNextArgument(String sArgument)
***
*** Function: SQLSetNextArgument
*** Purpose : Pass the next argument
***

SQLSetProcedureName(String sProcName String sSchemaArg)
***
*** Procedure: SQLSetProcedureName
*** Purpsoe : Preapre for calling a stored procedure, pass the procedure name.
***
String
SQLStmtAttribute(Integer iAttribId)
***
*** Function: SQLStmtAttribute
*** Purpose : Get a statement attribute
***

StmtError(Integer iErrNum String sErrText String sOriginMsg)
***
*** Procedure: StmtError
*** Purpose : Handle general error not related to the properties
***

StoreHandleInfo(Integer iCLIHandle String sDrvrId Integer iParentHandle)
***
*** Procedure: StoreHandleInfo
*** Purpose : Store basic information about the statement handle.
***
Instances
Break_Array | Report.pkg | 222 |
Button_Ids | Dfclient.pkg | 498 |
ColCkBox | Dfsellst.pkg | 129 |
EV | Dfdtcent.pkg | 41 |
EV | Dfenrad.pkg | 93 |
Export_Array | Dd_cddeo.pkg | 42 |
item$group | dep_item.pkg | 85 |
item_group_ids | dep_item.pkg | 67 |
oArgs | cCommandLine.pkg | 22 |
oColParams | Dfdata.pkg | 70 |
oDFColorArray | Df_print.pkg | 982 |
oDiagramArray | Df_print.pkg | 1061 |
oEntryValues | Dd_pklst.pkg | 52 |
oRecords | Datalist.pkg | 178 |
Radio_Objects | Dfrad_mx.pkg | 45 |
RptTotal | Dfwinrpt.pkg | 61 |
Seq_Channel_List | seq_chnl.pkg | 57 |
Statushelp_Array | Windows.pkg | 3030 |
Statushelp_Array | Sthlp_mx.pkg | 11 |
Statushelp_Array | Datadict.pkg | 1184 |
System_File_obj | Datadict.pkg | 1193 |
WinQLErrors | CrystalReport.pkg | 962 |
References (1):