Inherits From:
EOAdaptor : NSObject
Inherits From:
com.apple.yellow.sybaseeoadaptor
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:
externalTypesWithModel
(com.apple.yellow.eoaccess.EOModel model)
Overrides the EOAdaptor method externalTypesWithModel:
to return the Sybase database types.
primitiveTypeForExternalTypeInModel
public static java.lang.String primitiveTypeForExternalTypeInModel
(java.lang.String externalType, com.apple.yellow.eoaccess.EOModel 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
public com.apple.yellow.foundation.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
public 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
public 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
public void sybaseContextDidDisconnect
(SybaseContext aSybaseContext)
Callback method that is invoked after the associated Sybase context disconnects.
sybaseContextWillConnect
public void sybaseContextWillDisconnect
(SybaseContext aSybaseContext)
Callback method that is invoked just before the associated Sybase context disconnects.