org.eclipse.datatools.connectivity.oda.profile
Class OdaConnectionWrapper

java.lang.Object
  extended by org.eclipse.datatools.connectivity.VersionProviderConnection
      extended by org.eclipse.datatools.connectivity.oda.profile.OdaConnectionWrapper
All Implemented Interfaces:
IConnection, IServerVersionProvider

public class OdaConnectionWrapper
extends VersionProviderConnection


Constructor Summary
OdaConnectionWrapper(IConnectionProfile profile)
           
 
Method Summary
 void close()
          Closes the underlying native connection object.
 java.lang.Throwable getConnectException()
          Return exception in connection
 java.lang.String getProviderName()
           
 Version getProviderVersion()
           
 java.lang.Object getRawConnection()
          Returns the native object representing the connection to the server.
 java.lang.String getTechnologyName()
           
 Version getTechnologyVersion()
           
 void open()
          Attempts to establish a live connection based on the connection properties of the profile instance used to create this connection.
 
Methods inherited from class org.eclipse.datatools.connectivity.VersionProviderConnection
getConnectionFactoryClass, getConnectionProfile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdaConnectionWrapper

public OdaConnectionWrapper(IConnectionProfile profile)
Method Detail

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