Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > ODBCEOAdaptor Reference

Table of Contents

ODBCChannel


Inherits from: EOAdaptorChannel : NSObject
Declared in: ODBCEOAdaptor/ODBCChannel.h




Class Description


An ODBCChannel represents an independent communication channel to the database server its ODBCAdaptor is connected to. All of an ODBCChannel's operations take place within the context of transactions controlled or tracked by its ODBCContext. An ODBCContext can manage multiple ODBCChannels, and a channel is associated with only one context.

The features ODBCChannel adds to EOAdaptorChannel are methods for returning the ODBC Statement Handle (HSTMT), and for returning a dictionary-formatted result from SQLTypeInfo().




Instance Methods



closeChannel

- (void)closeChannel

Overrides the EOAdaptorChannel method closeChannel to close the channel so that it can't perform operations with the server. Any fetch in progress is canceled. This method has the side effect of closing the receiver's adaptor context's connection with the database if the receiver is its adaptor context's last open channel.

odbcStatement

- (void *)odbcStatement

Returns the ODBC Statement Handle HSTMT as a void*; you must cast the returned value to HSTMT to work with it.

odbcTypeInfo

- (NSDictionary *)odbcTypeInfo

Returns the result from SQLTypeInfo(), formatted in an NSDictionary ready to incorporate into a model file.


Table of Contents