Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) Part Number B14308-01 |
|
Applies To
Description
This method returns the options that were set on either the database, dynaset, or OSqlStmt when the object was opened.
Usage
long GetOptions(void) const
Remarks
Database: When a database is created using ODatabase::Open, or using one of the "construct and open" constructors, some options are specified. This method returns those options. The options are a set of flags that are ORed together:
ODATABASE_ORAMODE
ODATABASE_EDIT_NOWAIT
If no options have been set the return value is:
ODATABASE_DEFAULT
See the ODatabase section for more information on these flags.
Dynaset: When a dynaset is created using ODynaset::Open or the "construct and open" constructor, some options are specified. This method returns those options. The options are a set of flags that are ORed together:
ODYNASET_NOBIND
ODYNASET_KEEP_BLANKS
ODYNASET_READONLY
ODYNASET_NOCACHE
If no options have been set, the return value is:
ODYNSET_DEFAULT
See the ODynaset section for more information on these flags.
Sqlstmt: When you create a sqlstmt using OSqlStmt::Open or the "construct and open" constructor, you specify only the ODYNASET_NOBIND option. This method returns this option.
If no option was set, the return value is:
ODYNASET_DEFAULT
Return Value
The object's options; 0 on error.