|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Database resultset. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Resultset * >.
Public Types | |
| enum | SeekModeValues { SeekAbsolute = OCI_SFD_ABSOLUTE, SeekRelative = OCI_SFD_RELATIVE } |
| Seek Modes enumerated values. More... | |
| typedef Enum< SeekModeValues > | SeekMode |
| Seek Modes. More... | |
Public Member Functions | |
| template<class TDataType > | |
| TDataType | Get (unsigned int index) const |
| Return the current value of the column at the given index in the resultset. More... | |
| template<class TDataType > | |
| TDataType | Get (const ostring &name) const |
| Return the current value of the column from its name in the resultset. More... | |
| bool | Next () |
| Fetch the next row of the resultset. More... | |
| bool | Prev () |
| Fetch the previous row of the resultset. More... | |
| bool | First () |
| Fetch the first row of the resultset. More... | |
| bool | Last () |
| Fetch the last row of the resultset. More... | |
| bool | Seek (SeekMode mode, int offset) |
| Custom Fetch of the resultset. More... | |
| unsigned int | GetCount () const |
| Retrieve the number of rows fetched so far. | |
| unsigned int | GetCurrentRow () const |
| Retrieve the current row index. More... | |
| unsigned int | GetColumnIndex (const ostring &name) const |
| Return the index of the column in the result from its name. More... | |
| unsigned int | GetColumnCount () const |
| Return the number of columns in the resultset. | |
| Column | GetColumn (unsigned int index) const |
| Return the column from its index in the resultset. More... | |
| Column | GetColumn (const ostring &name) const |
| Return the column from its name in the resultset. More... | |
| bool | IsColumnNull (unsigned int index) const |
| Check if the current row value is null for the column at the given index. More... | |
| bool | IsColumnNull (const ostring &name) const |
| Check if the current row value is null for the column of the given name. More... | |
| Statement | GetStatement () const |
| Return the statement associated with the resultset. | |
| bool | operator++ (int) |
| Convenient operator overloading that performs a call to Next() | |
| bool | operator-- (int) |
| Convenient operator overloading that performs a call to Prev() | |
| bool | operator+= (int offset) |
| Convenient operator overloading that performs a call to Seek() with Resultset::SeekRelative and the given offset. | |
| bool | operator-= (int offset) |
| Convenient operator overloading that performs a call to Seek() with Resultset::SeekRelative and the given offset that is internally negated. | |
Database resultset.
This class wraps the OCILIB object handle OCI_Resultset and its related methods
Definition at line 5716 of file ocilib.hpp.
Seek Modes.
Possible values are Resultset::SeekModeValues
Definition at line 5741 of file ocilib.hpp.
Seek Modes enumerated values.
Definition at line 5726 of file ocilib.hpp.
|
inline |
Return the current value of the column at the given index in the resultset.
| TDataType | - C++ type of the value to retrieve |
| index | - Column position |
Definition at line 5246 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetColl().
|
inline |
Return the current value of the column from its name in the resultset.
| TDataType | - C++ type of the value to retrieve |
| name | - Column name |
Definition at line 5252 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetColl2().
|
inline |
Fetch the next row of the resultset.
Definition at line 4879 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FetchNext().
|
inline |
Fetch the previous row of the resultset.
Definition at line 4884 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FetchPrev().
|
inline |
Fetch the first row of the resultset.
Definition at line 4889 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FetchFirst().
|
inline |
Fetch the last row of the resultset.
Definition at line 4894 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FetchLast().
|
inline |
Custom Fetch of the resultset.
| mode | - Fetch direction |
| offset | - Fetch offset |
Definition at line 4899 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FetchSeek().
|
inline |
Retrieve the current row index.
Definition at line 4909 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetCurrentRow().
|
inline |
Return the index of the column in the result from its name.
| name | - Column name |
Definition at line 4914 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetColumnIndex().
|
inline |
Return the column from its index in the resultset.
| index | - Column index |
Definition at line 4924 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetColumn().
Return the column from its name in the resultset.
| name | - Column name |
Definition at line 4929 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_GetColumn2().
|
inline |
Check if the current row value is null for the column at the given index.
| index | - Column index |
Definition at line 4934 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_IsNull().
|
inline |
Check if the current row value is null for the column of the given name.
| name | - Column name |
Definition at line 4939 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_IsNull2().