PATH  WebObjects 4.0 Documentation > ODBCEOAdaptor Reference



ODBCContext

Inherits From:
EOAdaptorContext : NSObject

Inherits From:
com.apple.yellow.odbceoadaptor


Class Description

An ODBCContext represents a single transaction scope on the database server to which its adaptor object is connected. If the server supports multiple concurrent transaction sessions, the adaptor may have several adaptor contexts. An ODBCContext may in turn have several ODBCChannels, which handle actual access to the data on the server.

The features the ODBCContext class adds to EOAdaptorContext are methods for managing ODBC connections and for getting information about the driver.


Instance Methods


odbcConnect

public void odbcConnect()

Opens a connection to the database server. ODBCChannel sends this message to ODBCContext when it (ODBCChannel) is about to open a channel to the server. This method is called automatically by the framework.


odbcDisconnect

public void odbcDisconnect()

Closes the connection to the database server. ODBCChannel sends this message to ODBCContext when it (ODBCChannel) has just closed a channel to the server.





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