InformixAdaptor
Inherits from: EOAdaptor : NSObject
Declared in: InformixEOAdaptor/InformixAdaptor.h
Class Description
An InformixAdaptor represents a single connection to an Informix database server, and is responsible for keeping login and model information, performing Informix-specific formatting of SQL expressions, and reporting errors.
The InformixAdaptor doesn't support full outer joins.
Constants
InformixAdaptor defines the following string constants for use as connection dictionary keys.
Constant | Corresponding value in the connection dictionary |
dbNameKey | The name of the database. |
userNameKey | The name of the user to log in as. |
passwordKey | The user's password. |
It defines a string constant for use as a key in an exception's userInfo dictionary (see raiseInformixError:).
Constant | Corresponding value in an exception's userInfo dictionary |
InformixErrorKey | The error code raised in the Informix server. The value
is an NSNumber with the error code as its long value,
typically a negative number. |
InformixAdaptor also defines a string constant to identify the user defaults domain for the Informix adaptor.
Constant | Description |
EOF_INFORMIX_ADAPTOR | The name of the user defaults domain for the Informix adaptor. |
Method Types
- Mapping external types to internal types
- + externalToInternalTypeMap
- Getting information from the connection dictionary
- - informixConnectionString
- - informixDefaultForKey:
- - informixPassword
- - informixUserName
- - connectionKeys
- Error handling
- - raiseInformixError:
- Preparing to connect
- - prepareEnvironmentForConnect
- - resetEnvironmentAfterConnect
- Callback methods
- - informixContextDidDisconnect:
- - informixContextWillConnect:
- Getting adaptor-specific classes
- - adaptorContextClass
- - adaptorChannelClass
- - defaultExpressionClass
Class Methods
externalToInternalTypeMap
+ (NSDictionary *)externalToInternalTypeMap
Instance Methods
adaptorChannelClass
- (Class)adaptorChannelClass
adaptorContextClass
- (Class)adaptorContextClass
connectionKeys
- (NSArray *)connectionKeys
defaultExpressionClass
- (Class)defaultExpressionClass
informixConnectionString
- (NSString *)informixConnectionString
informixContextDidDisconnect:
- (void)informixContextDidDisconnect:(InformixContext
*)logon
informixContextWillConnect:
- (void)informixContextWillConnect:(InformixContext
*)logon
informixDefaultForKey:
- (NSString *)informixDefaultForKey:(NSString
*)key
informixPassword
- (NSString *)informixPassword
informixUserName
- (NSString *)informixUserName
prepareEnvironmentForConnect
- (void)prepareEnvironmentForConnect
See Also: - resetEnvironmentAfterConnect
raiseInformixError:
- (void)raiseInformixError:(NSString
*)sqlString
InformixErrorKey
.resetEnvironmentAfterConnect
- (void)resetEnvironmentAfterConnect