PATH  WebObjects 4.0 Documentation > SybaseEOAdaptor Reference



SybaseAdaptor

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:

The SybaseAdaptor class has these restrictions: A context can only manage one channel at a time, and the adaptor doesn't support full outer joins because the Sybase server itself doesn't support them.


Method Types

Mapping external types to internal types
externalTypesWithModel:
primitiveTypeForExternalTypeInModel
Getting information from the connection dictionary
connectionKeys
Bracketing calls to ct_connect()
prepareEnvironmentForConnect
resetEnvironmentAfterConnect
Callback methods
sybaseContextDidDisconnect
sybaseContextWillConnect

Class Methods


externalTypesWithModel:

public static com.apple.yellow.foundation.NSArray 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.





Copyright © 1998, Apple Computer, Inc. All rights reserved.