OracleChannel
Inherits from: EOAdaptorChannel : NSObject
Package: com.apple.yellow.oracleeoadaptorjava
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
Static Methods
oracleTableNamesSQL
public static String oracleTableNamesSQL()
setOracleTableNamesSQL
public static void setOracleTableNamesSQL(String 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
describeTableNames
public NSArray describeTableNames()
fetchBufferLength
public int fetchBufferLength()
raiseOracleError
public void raiseOracleError()
setFetchBufferLength
public void setFetchBufferLength(int length)