OracleAdaptor
Inherits from: EOAdaptor : NSObject
Package: com.apple.yellow.oracleeoadaptorjava
Class Description
An OracleAdaptor represents a single connection to an Oracle database server, and is responsible for keeping login and model information, performing Oracle-specific formatting of SQL expressions, and reporting errors.
The OracleAdaptor class has these restrictions: You can't have nested transactions, and the adaptor doesn't support full outer joins.
Constants
OracleAdaptor defines the following string constants for use as connection dictionary keys.
Constant | Corresponding value in the connection dictionary |
ServerIdKey | The server ID. Used as the string to connect to the database if values for HostMachineKey, UserNameKey, and PasswordKey are not present in the database. |
HostMachineKey | The name of the host machine. If this key is not present, the string used to log in to the database is of the form "userName/password@serverId". |
UserNameKey | The name of the user to log in as. |
PasswordKey | The user's password. |
ConnectionStringKey | The connection string used to log in to a database server. If this key is present, ServerIdKey, HostMachineKey, UserNameKey, and PasswordKey are ignored. |
NlsLangKey | The setting to NLS_LANG, which is used to specify the language and character set for server connections. On J systems this option defaults to japanese_japan.jeuc. |
See "The Connection Dictionary" (page 6) in the OracleEOAdaptor framework introduction for more information on the connection dictionary and its entries.
OracleAdaptor also defines a string constant for use as a key in an exception's userInfo dictionary (see raiseOracleError in the OracleChannel class specification).
Constant | Corresponding value in an exception's userInfo dictionary |
OracleErrorKey | The Oracle OCI client library error code. |
Instance Methods
connectionKeys
public NSArray connectionKeys()
fetchedValueForDateValue
public NSGregorianDate fetchedValueForDateValue(
NSGregorianDate value,
EOAttribute attribute)
fetchedValueForNumberValue
public Number fetchedValueForNumberValue(
Number value,
EOAttribute attribute)
oracleConnectionString
public String oracleConnectionString()
orlon()
.