- 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 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(char *pSqlStmt, int typeOfSelect, bool distinct);
+ void BuildDeleteStmt(char *pSqlStmt, int typeOfDel, const char *pWhereClause = 0);
+ void BuildUpdateStmt(char *pSqlStmt, int typeOfUpd, const char *pWhereClause = 0);
+ void BuildWhereClause(char *pWhereClause, int typeOfWhere, const char *qualTableName = 0, 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 = 0)
+ { BuildDeleteStmt(pSqlStmt,typeOfDel,pWhereClause); }
+ void GetUpdateStmt(char *pSqlStmt, int typeOfUpd, const char *pWhereClause = 0)
+ { BuildUpdateStmt(pSqlStmt,typeOfUpd,pWhereClause); }
+ void GetWhereClause(char *pWhereClause, int typeOfWhere,
+ const char *qualTableName = 0, bool useLikeComparison=FALSE)
+ { BuildWhereClause(pWhereClause,typeOfWhere,qualTableName,useLikeComparison); }
+#endif
+ bool CanSelectForUpdate(void);
+ bool CanUpdByROWID(void);
+ void ClearMemberVars(void);
+ bool SetQueryTimeout(UDWORD nSeconds);
+
+ wxDbColDef *GetColDefs() { return colDefs; }
+ 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);
+ wxDbColDataPtr *SetColDefs(wxDbColInf *colInfs, ULONG 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 char *args="*");
+ int DB_STATUS(void) { return(pDb->DB_STATUS); }
+
+ bool IsColNull(int colNo);
+ bool SetNull(int colNo);
+ bool SetNull(const char *colName);