PATH  WebObjects 4.0 Documentation > InformixEOAdaptor Reference



InformixContext

Inherits From:
EOAdaptorContext : NSObject

Inherits From:
com.apple.yellow.informixeoadaptor


Class Description

An InformixContext 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 InformixContext may in turn have several InformixChannels, which handle actual access to the data on the server.

The features the InformixContext class adds to EOAdaptorContext are methods for setting Informix-specific characteristics for the context.


Method Types

Managing a connection to the server
connect
connection
disconnect
isConnected
Returning information about an InformixContext
fetchesInProgress
hasTransactions
isOnLine

Instance Methods


connect

public void connect()

Opens a connection to the database server. InformixChannel sends this message to InformixContext when it (InformixChannel) is about to open a channel to the server.

See also: disconnect


connection

public int connection()

Returns an identifier for the receiver's connection to the server.


disconnect

public void disconnect()

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

See also: connect


fetchesInProgress

public int fetchesInProgress()

Returns the number of fetches the receiver has in progress.


hasTransactions

public boolean hasTransactions()

Returns true to indicate that the receiver has transactions in process, false otherwise.


isConnected

public boolean isConnected()

Returns true if the receiver has an open connection to the database, false otherwise.

See also: connect, disconnect, isConnected


isOnLine

public boolean isOnLine()

Returns true if Is the server an Informix on-line server, false otherwise.





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