Inherits From:
EOAdaptor : NSObject
Declared in: SybaseEOAdaptor/SybaseAdaptor.h
Class Description
A SybaseAdaptor represents a single connection to a Sybase database server, and is responsible for keeping login and model information, performing Sybase-specific formatting of SQL expressions, and reporting errors.
The features SybaseAdaptor adds to EOAdaptor are as follows:
Overrides the EOAdaptor method externalTypesWithModel:
to return the Sybase database types.
See also:
+ internalTypeForExternalType:model:
internalTypeForExternalType:model:
+ (NSString *)internalTypeForExternalType: (NSString *)extType model: (EOModel *)model
Overrides the EOAdaptor method internalTypeForExternalType:model:
to return the name of the Objective-C class used to represent values stored in the database as extType for the model model.
See also:
+ externalTypesWithModel:
primitiveTypeForExternalType:model:
+ (NSString *)primitiveTypeForExternalType:
(NSString *)externalType model:
(EOModel *)model
Returns the primitive type on which a given custom type, defined on the server, is based.
Instance Methods
connectionKeys
- (NSArray *)connectionKeys
Returns an NSArray containing the keys in the receiver's connection dictionary. You can use this method to prompt the user to supply values for the connection dictionary.
prepareEnvironmentForConnect
- (void)prepareEnvironmentForConnect
A call to this method should preceed all calls to ct_connect
() to set the LC_ALL
environment variable setting to the value specified in the model connection dictionary.
See also:
- resetEnvironmentAfterConnect
resetEnvironmentAfterConnect
- (void)resetEnvironmentAfterConnect
A call to this method should follow all calls to ct_connect
() to set the LC_ALL
environment variable setting to the value specified in the model connection dictionary.
See also:
- prepareEnvironmentForConnect
sybaseContextDidDisconnect:
- (void)sybaseContextDidDisconnect:
(SybaseContext *)aSybaseContext
Callback method that is invoked after the associated Sybase context disconnects.
sybaseContextWillConnect:
- (void)sybaseContextWillDisconnect:
(SybaseContext *)aSybaseContext
Callback method that is invoked just before the associated Sybase context disconnects.