![](../../../../../../../../../../../images/previous.gif)
![](../../../../../../../../../../../images/next.gif)
Creating an EOAdaptor Subclass
Enterprise Objects Framework provides concrete adaptors for three standard relational database management systems-Informix, Oracle, and Sybase-as well as a concrete adaptor for ODBC-compliant databases. You may want to create a subclass of one of these adaptors to extend its behavior, or you may want to create a concrete EOAdaptor subclass for a different database or persistent storage system. EOAdaptor provides many default method implementations that are sufficient for concrete subclasses:
- + assignExternalInfoForEntireModel:
- - connectionDictionary
- - contexts
- - databaseEncoding
- - delegate
- - hasOpenChannels
- - name
- + adaptorWithModel:
- + adaptorWithName:
- + setExpressionClassName:adaptorClassName:
- + sharedLoginPanelInstance
- - initWithName:
- - expressionClass
- - runLoginPanel
- - runLoginPanelAndValidateConnectionDictionary
- - setConnectionDictionary:
- - setDelegate:
super
.The remaining EOAdaptor methods must be overridden by concrete adaptor subclasses in terms of the persistent storage system with which it interacts:
- + assignExternalInfoForAttribute:
- + assignExternalInfoForEntity:
- + externalTypesWithModel:
- + internalTypeForExternalType:model:
- - assertConnectionDictionaryIsValid
- - createAdaptorContext
- - defaultExpressionClass
- - fetchedValueForDataValue:attribute:
- - fetchedValueForDateValue:attribute:
- - fetchedValueForNumberValue:attribute:
- - fetchedValueForStringValue:attribute:
- - fetchedValueForValue:attribute:
- - isValidQualifierTypeIn:model:
![](../../../../../../../../../../../images/previous.gif)
![](../../../../../../../../../../../images/next.gif)
Copyright © 1998, Apple Computer, Inc. All rights reserved.