📄 resultset.h
字号:
*/ ODBCXX_STRING getString(int idx); /** Gets a column's value as a Time * @param idx The column index, starting at 1 */ Time getTime(int idx); /** Gets a column's value as a Timestamp * @param idx The column index, starting at 1 */ Timestamp getTimestamp(int idx); /** Gets a column's value as a double * @param colName The name of the column */ double getDouble(const ODBCXX_STRING& colName); /** Gets a column's value as a bool * @param colName The name of the column */ bool getBoolean(const ODBCXX_STRING& colName); /** Gets a column's value as a signed char * @param colName The name of the column */ signed char getByte(const ODBCXX_STRING& colName); /** Gets a column's value as a chunk of bytes. * @param colName The name of the column */ ODBCXX_BYTES getBytes(const ODBCXX_STRING& colName); /** Gets a column's value as a Date * @param colName The name of the column */ Date getDate(const ODBCXX_STRING& colName); /** Gets a column's value as a float * @param colName The name of the column */ float getFloat(const ODBCXX_STRING& colName); /** Gets a column's value as an int * @param colName The name of the column */ int getInt(const ODBCXX_STRING& colName); /** Gets a column's value as a Long * @param colName The name of the column */ Long getLong(const ODBCXX_STRING& colName); /** Gets a column's value as a short * @param colName The name of the column */ short getShort(const ODBCXX_STRING& colName); /** Gets a column's value as a string * @param colName The name of the column */ ODBCXX_STRING getString(const ODBCXX_STRING& colName); /** Gets a column's value as a Time * @param colName The name of the column */ Time getTime(const ODBCXX_STRING& colName); /** Gets a column's value as a Timestamp * @param colName The name of the column */ Timestamp getTimestamp(const ODBCXX_STRING& colName); /** Fetches a column's value as a stream. * Note that the stream is owned by the result set * and should in no case be deleted by the caller. * Also, the returned stream is only valid while the * cursor remains on this position. * @param idx The column index, starting at 1 */ ODBCXX_STREAM* getAsciiStream(int idx); /** Fetches a column's value as a stream. * Note that the stream is owned by the result set * and should in no case be deleted by the caller. * Also, the returned stream is only valid while the * cursor remains on this position. * @param colName The column name */ ODBCXX_STREAM* getAsciiStream(const ODBCXX_STRING& colName); /** Fetches a column's value as a stream. * Note that the stream is owned by the result set * and should in no case be deleted by the caller. * Also, the returned stream is only valid while the * cursor remains on this position. * @param idx The column index, starting at 1 */ ODBCXX_STREAM* getBinaryStream(int idx); /** Fetches a column's value as a stream. * Note that the stream is owned by the result set * and should in no case be deleted by the caller. * Also, the returned stream is only valid while the * cursor remains on this position. * @param colName The column name */ ODBCXX_STREAM* getBinaryStream(const ODBCXX_STRING& colName); /** Checks if the last fetched column value was NULL. * Note that if this is true, the returned value was undefined. */ bool wasNull() { return lastWasNull_; } /** Sets the value of a column to a double * @param idx The column index, starting at 1 * @param val The value to set */ void updateDouble(int idx, double val); /** Sets the value of a column to a bool * @param idx The column index, starting at 1 * @param val The value to set */ void updateBoolean(int idx, bool val); /** Sets the value of a column to a signed char * @param idx The column index, starting at 1 * @param val The value to set */ void updateByte(int idx, signed char val); /** Sets the value of a column to a chunk of bytes * @param idx The column index, starting at 1 * @param val The value to set */ void updateBytes(int idx, const ODBCXX_BYTES& val); /** Sets the value of a column to a Date * @param idx The column index, starting at 1 * @param val The value to set */ void updateDate(int idx, const Date& val); /** Sets the value of a column to a float * @param idx The column index, starting at 1 * @param val The value to set */ void updateFloat(int idx, float val); /** Sets the value of a column to an int * @param idx The column index, starting at 1 * @param val The value to set */ void updateInt(int idx, int val); /** Sets the value of a column to a Long * @param idx The column index, starting at 1 * @param val The value to set */ void updateLong(int idx, Long val); /** Sets the value of a column to a short * @param idx The column index, starting at 1 * @param val The value to set */ void updateShort(int idx, short val); /** Sets the value of a column to a string * @param idx The column index, starting at 1 * @param val The value to set */ void updateString(int idx, const ODBCXX_STRING& val); /** Sets the value of a column to a Time * @param idx The column index, starting at 1 * @param val The value to set */ void updateTime(int idx, const Time& val); /** Sets the value of a column to a Timestamp * @param idx The column index, starting at 1 * @param val The value to set */ void updateTimestamp(int idx, const Timestamp& val); /** Sets the value of a column to NULL * @param idx The column index, starting at 1 */ void updateNull(int idx); /** Sets the value of a column to a double * @param colName The name of the column * @param val The value to set */ void updateDouble(const ODBCXX_STRING& colName, double val); /** Sets the value of a column to a bool * @param colName The name of the column * @param val The value to set */ void updateBoolean(const ODBCXX_STRING& colName, bool val); /** Sets the value of a column to a signed char * @param colName The name of the column * @param val The value to set */ void updateByte(const ODBCXX_STRING& colName, signed char val); /** Sets the value of a column to a chunk of bytes * @param colName The name of the column * @param val The value to set */ void updateBytes(const ODBCXX_STRING& colName, const ODBCXX_BYTES& val); /** Sets the value of a column to a Date * @param colName The name of the column * @param val The value to set */ void updateDate(const ODBCXX_STRING& colName, const Date& val); /** Sets the value of a column to a float * @param colName The name of the column * @param val The value to set */ void updateFloat(const ODBCXX_STRING& colName, float val); /** Sets the value of a column to an int * @param colName The name of the column * @param val The value to set */ void updateInt(const ODBCXX_STRING& colName, int val); /** Sets the value of a column to a Long * @param colName The name of the column * @param val The value to set */ void updateLong(const ODBCXX_STRING& colName, Long val); /** Sets the value of a column to a short * @param colName The name of the column * @param val The value to set */ void updateShort(const ODBCXX_STRING& colName, short val); /** Sets the value of a column to a string * @param colName The name of the column * @param val The value to set */ void updateString(const ODBCXX_STRING& colName, const ODBCXX_STRING& val); /** Sets the value of a column to a Time * @param colName The name of the column * @param val The value to set */ void updateTime(const ODBCXX_STRING& colName, const Time& val); /** Sets the value of a column to a Timestamp * @param colName The name of the column * @param val The value to set */ void updateTimestamp(const ODBCXX_STRING& colName, const Timestamp& val); /** Sets the value of a column to a stream * @param idx The column index, starting at 1 * @param s The stream to assign * @param len The number of bytes in the stream */ void updateAsciiStream(int idx, ODBCXX_STREAM* s, int len); /** Sets the value of a column to the contens of a stream * @param colName The column name * @param s The stream to assign * @param len The number of bytes in the stream */ void updateAsciiStream(const ODBCXX_STRING& colName, ODBCXX_STREAM* s, int len); /** Sets the value of a column to the contens of a stream * @param idx The column index, starting at 1 * @param s The stream to assign * @param len The number of bytes in the stream */ void updateBinaryStream(int idx, ODBCXX_STREAM* s, int len); /** Sets the value of a column to the contens of a stream * @param colName The column name * @param s The stream to assign * @param len The number of bytes in the stream */ void updateBinaryStream(const ODBCXX_STRING& colName, ODBCXX_STREAM* s, int len); /** Sets the value of a column to NULL * @param colName The column name */ void updateNull(const ODBCXX_STRING& colName); }; } // namespace odbc#endif // __ODBCXX_RESULTSET_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -