PATH  WebObjects 4.0 Documentation > InformixEOAdaptor Reference



InformixAdaptor

Inherits From:
EOAdaptor : NSObject

Inherits From:
com.apple.yellow.informixeoadaptor


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 class has these restrictions: You can't have nested transactions, and the adaptor doesn't support full outer joins.


Method Types

Working with channels and contexts
adaptorChannelClass
adaptorContextClass
Getting information from the connection dictionary
informixConnectionString
informixDefaultForKey
connectionKeys
Error handling
raiseInformixError

Instance Methods


adaptorChannelClass

public java.lang.Class adaptorChannelClass()

Returns the InformixChannel class.


adaptorContextClass

public java.lang.Class adaptorContextClass()

Returns the InformixContext class.


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.


informixConnectionString

public java.lang.String informixConnectionString()

Returns the user name, password, and database name as a string suitable to be supplied as an argument to db_connect().


informixDefaultForKey

public java.lang.String informixDefaultForKey(java.lang.String aString)

Returns the user default setting for key. To get this information it first checks the user defaults, and then the adaptor's internal defaults dictionary.


raiseInformixError

public void raiseInformixError(java.lang.String aString)

Examines Informix structures for error flags and raises an exception if one is found. Extracts the error information in the connection structure and use it to build and raise an exception.





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