PATH  WebObjects 4.0 Documentation > SybaseEOAdaptor Reference



OracleAdaptor

Inherits From:
EOAdaptor : NSObject

Inherits From:
com.apple.yellow.oracleeoadaptorjava


Class Description

An OracleAdaptor represents a single connection to an Oracle database server, and is responsible for keeping login and model information, performing Oracle-specific formatting of SQL expressions, and reporting errors.

The OracleAdaptor 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
Testing the connection dictionary
assertConnectionDictionaryIsValid
Getting information from the connection dictionary
connectionKeys
oracleConnectionString

Instance Methods


adaptorChannelClass

public java.lang.Class adaptorChannelClass()

Returns the OracleChannel class.


adaptorContextClass

public java.lang.Class adaptorContextClass()

Returns the OracleContext class.


assertConnectionDictionaryIsValid

public void assertConnectionDictionaryIsValid()

Overrides the EOAdaptor method assertConnectionDictionaryIsValid to verify that the receiver can connect to the database with its connection dictionary. Briefly forms a connection to the server to validate the connection dictionary and then closes the connection. The adaptor uses this method in conjunction with displaying a server login panel. Raises an exception if an error occurs.

Note that this method doesn't open a connection to the database-that happens when the first adaptor channel is sent an message.


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.


oracleConnectionString

public java.lang.String oracleConnectionString()

Returns the user name, password, host machine, and server id as a string suitable to be supplied as an argument to orlon().





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