org.eclipse.datatools.connectivity.oda.profile
Class OdaConnectionWrapper
java.lang.Object
org.eclipse.datatools.connectivity.VersionProviderConnection
org.eclipse.datatools.connectivity.oda.profile.OdaConnectionWrapper
- All Implemented Interfaces:
- IConnection, IServerVersionProvider
public class OdaConnectionWrapper
- extends VersionProviderConnection
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OdaConnectionWrapper
public OdaConnectionWrapper(IConnectionProfile profile)
getRawConnection
public java.lang.Object getRawConnection()
- Description copied from interface:
IConnection
- Returns the native object representing the connection to the server. For
example, a java.sql.Connection object for a JDBC connection.
- Returns:
- an object representing the native connection to the server.
close
public void close()
- Description copied from interface:
IConnection
- Closes the underlying native connection object. This causes other users
of this connection to be notified of this connection's closure.
getConnectException
public java.lang.Throwable getConnectException()
- Description copied from interface:
IConnection
- Return exception in connection
- Returns:
- exception thrown when connecting to the server
getProviderVersion
public Version getProviderVersion()
- Returns:
- the version of the server (e.g. 12.5)
getProviderName
public java.lang.String getProviderName()
- Returns:
- the name of the provider (e.g. ASE)
getTechnologyVersion
public Version getTechnologyVersion()
- Returns:
- the version of the technology running on the server (e.g. 1.1)
getTechnologyName
public java.lang.String getTechnologyName()
- Returns:
- the technology name; null if not supported (e.g. JMS)
open
public void open()
throws OdaException
- Attempts to establish a live connection based on the
connection properties of the profile instance
used to create this connection.
It is up to individual ODA driver to process the
connection properties.
- Throws:
OdaException - if the underlying ODA driver
fails to open a live connection