- bool GetPrev(void);
- bool operator--(int);
- bool GetFirst(void);
- bool GetLast(void);
-
- bool IsCursorClosedOnCommit(void);
- bool IsColNull(int colNo);
- UWORD GetRowNum(void);
- void GetSelectStmt(char *pSqlStmt, int typeOfSelect, bool distinct);
- void GetDeleteStmt(char *pSqlStmt, int typeOfDel, const char *pWhereClause = 0);
- void GetUpdateStmt(char *pSqlStmt, int typeOfUpd, const char *pWhereClause = 0);
- void GetWhereClause(char *pWhereClause, int typeOfWhere, const char *qualTableName = 0, bool useLikeComparison=FALSE);
- bool CanSelectForUpdate(void);
- bool CanUpdByROWID(void);
- void ClearMemberVars(void);
- bool SetQueryTimeout(UDWORD nSeconds);
- void SetColDefs (int index, const char *fieldName, int dataType, void *pData, int cType,
- int size, bool keyField = FALSE, bool upd = TRUE,
- bool insAllow = TRUE, bool derivedCol = FALSE);
- wxColDataPtr* SetColDefs (wxColInf *colInfs, ULONG numCols);
-
- HSTMT *NewCursor(bool setCursor = FALSE, bool bindColumns = TRUE);
- bool DeleteCursor(HSTMT *hstmtDel);
- void SetCursor(HSTMT *hstmtActivate = (void **) DEFAULT_CURSOR);
- HSTMT GetCursor(void) { return(hstmt); }
- ULONG Count(const char *args="*");
- int DB_STATUS(void) { return(pDb->DB_STATUS); }
- bool Refresh(void);
- bool SetNull(int colNo);
- bool SetNull(const char *colName);
+ bool GetPrev(void);
+ bool operator--(int);
+ bool GetFirst(void);
+ bool GetLast(void);
+
+ bool IsCursorClosedOnCommit(void);
+ UWORD GetRowNum(void);
+
+ void BuildSelectStmt(wxString &pSqlStmt, int typeOfSelect, bool distinct);
+ void BuildSelectStmt(wxChar *pSqlStmt, int typeOfSelect, bool distinct);
+
+ void BuildDeleteStmt(wxString &pSqlStmt, int typeOfDel, const wxString &pWhereClause=wxEmptyString);
+ void BuildDeleteStmt(wxChar *pSqlStmt, int typeOfDel, const wxString &pWhereClause=wxEmptyString);
+
+ void BuildUpdateStmt(wxString &pSqlStmt, int typeOfUpd, const wxString &pWhereClause=wxEmptyString);
+ void BuildUpdateStmt(wxChar *pSqlStmt, int typeOfUpd, const wxString &pWhereClause=wxEmptyString);
+
+ void BuildWhereClause(wxString &pWhereClause, int typeOfWhere, const wxString &qualTableName=wxEmptyString, bool useLikeComparison=FALSE);
+ void BuildWhereClause(wxChar *pWhereClause, int typeOfWhere, const wxString &qualTableName=wxEmptyString, bool useLikeComparison=FALSE);
+
+#if wxODBC_BACKWARD_COMPATABILITY
+// The following member functions are deprecated. You should use the BuildXxxxxStmt functions (above)
+ void GetSelectStmt(char *pSqlStmt, int typeOfSelect, bool distinct)
+ { BuildSelectStmt(pSqlStmt,typeOfSelect,distinct); }
+ void GetDeleteStmt(char *pSqlStmt, int typeOfDel, const char *pWhereClause = NULL)
+ { BuildDeleteStmt(pSqlStmt,typeOfDel,pWhereClause); }
+ void GetUpdateStmt(char *pSqlStmt, int typeOfUpd, const char *pWhereClause = NULL)
+ { BuildUpdateStmt(pSqlStmt,typeOfUpd,pWhereClause); }
+ void GetWhereClause(char *pWhereClause, int typeOfWhere,
+ const char *qualTableName = NULL, bool useLikeComparison=FALSE)
+ { BuildWhereClause(pWhereClause,typeOfWhere,qualTableName,useLikeComparison); }
+#endif
+ bool CanSelectForUpdate(void);
+ bool CanUpdByROWID(void);
+ void ClearMemberVar(UWORD colNo, bool setToNull=FALSE);
+ void ClearMemberVars(bool setToNull=FALSE);
+ bool SetQueryTimeout(UDWORD nSeconds);
+
+ wxDbColDef *GetColDefs() { return colDefs; }
+ void SetColDefs(UWORD index, const wxString &fieldName, int dataType,
+ void *pData, SWORD cType,
+ int size, bool keyField = FALSE, bool upd = TRUE,
+ bool insAllow = TRUE, bool derivedCol = FALSE);
+ wxDbColDataPtr *SetColDefs(wxDbColInf *colInfs, UWORD numCols);
+
+ bool CloseCursor(HSTMT cursor);
+ bool DeleteCursor(HSTMT *hstmtDel);
+ void SetCursor(HSTMT *hstmtActivate = (void **) wxDB_DEFAULT_CURSOR);
+ HSTMT GetCursor(void) { return(hstmt); }
+ HSTMT *GetNewCursor(bool setCursor = FALSE, bool bindColumns = TRUE);
+#if wxODBC_BACKWARD_COMPATABILITY
+// The following member function is deprecated. You should use the GetNewCursor
+ HSTMT *NewCursor(bool setCursor = FALSE, bool bindColumns = TRUE) { return GetNewCursor(setCursor,bindColumns); }
+#endif
+
+ ULONG Count(const wxString &args=_T("*"));
+ int DB_STATUS(void) { return(pDb->DB_STATUS); }