|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Context
This interface manages connection and driver-specific configuration information. This interface provides the custom driver with the following functionality:
| Method Summary | |
|---|---|
DriverConfiguration |
getConfiguration()
Returns the connection's configuration information as specified in the driver's .sbo file. |
java.util.Map |
getCredentials()
Returns the connection's credential information. |
java.lang.String |
getDataBase()
Returns the name of the datasource, for example the database, configured when the connection was created. |
ErrorManager |
getErrors()
Returns the ErrorManager associated with a connection. |
PropertySet |
getProperties()
Returns the configuration properties for a connection. |
| Method Detail |
|---|
java.util.Map getCredentials()
Returns the connection's credential information.
Returns a Java map containing the credentials information used to establish a
connection to the data source, for example user and password details.
This information is normally configured as part of the connection creation
process. In the driver's .cod file used by the New Connection wizard,
these are the parameters with the CREDENTIALS category.
java.lang.String getDataBase()
ErrorManager getErrors()
Returns the ErrorManager associated with a connection.
The ErrorManager allows custom drivers
to propagate driver-specific errors to the upper layers.
For example, if a custom driver x encounters an exception
during the parsing of a query, the exception can be caught
and rethrown as a CSException.
ErrorManagerDriverConfiguration getConfiguration()
Returns the connection's configuration information as specified in the
driver's .sbo file.
PropertySet getProperties()
Returns the configuration properties for a connection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||