OracleChannel
Inherits from: EOAdaptorChannel : NSObject
Declared in: OracleEOAdaptor/OracleChannel.h
OracleEOAdaptor/OracleDescription.h
Class Description
An OracleChannel represents an independent communication channel to the database server its OracleAdaptor is connected to. All of an OracleChannel's operations take place within the context of transactions controlled or tracked by its OracleContext. An OracleContext can manage multiple OracleChannels, and a channel is associated with only one context.
The features OracleChannel adds to EOAdaptorChannel are as follows:
- Oracle-specific error handling
- The ability to configure the fetch buffer
- The ability to read a default list of table names from the database
Method Types
- Finding table names
- + oracleTableNamesSQL
- + setOracleTableNamesSQL:
- - describeTableNames
- Accessing the fetch buffer length
- - fetchBufferLength
- - setFetchBufferLength:
- Error handling
- - raiseOracleError
- - cursorDataArea
Class Methods
oracleTableNamesSQL
+ (NSString *)oracleTableNamesSQL
setOracleTableNamesSQL:
+ (void)setOracleTableNamesSQL:(NSString
*)sql
This setting is used by all OracleChannels in an application. You can specify a different SQL statement using the defaults write command, for example:
% defaults write NSGlobalDomain OracleTableNamesSQL "SELECT TABLE_NAME FROM..."Once you use setOracleTableNamesSQL: to specify
a setting, it supersedes values set with the defaults write
command.
Instance Methods
cursorDataArea
- (struct cda_def *)cursorDataArea
cda_def
)
describing characteristics of the channel. Otherwise, returns NULL
.
This method is commonly used with the method raiseOracleError to
determine why an error occurred.describeTableNames
- (NSArray *)describeTableNames
fetchBufferLength
- (unsigned)fetchBufferLength
raiseOracleError
- (void)raiseOracleError
setFetchBufferLength:
- (void)setFetchBufferLength:(unsigned)length