|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.core.services.DefaultConnectionService
Default implementation for IConnectionService.
| Constructor Summary | |
DefaultConnectionService()
|
|
| Method Summary | |
IControlConnection |
createControlConnection(DatabaseIdentifier databaseIdentifier)
Returns an IControlConnection object which is used for all shared usage to that particular database. |
int |
getConnectionId(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Returns an identifier for the connection. |
IConnectionInitializer |
getConnectionInitializer()
Returns a IConnectionInitializer object which is used to initialize connection to proper state. |
java.lang.Runnable |
getConnectionKiller(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Returns a Runnable which can be used to kill the connection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultConnectionService()
| Method Detail |
public java.lang.Runnable getConnectionKiller(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
IConnectionServiceRunnable which can be used to kill the connection. This Runnable instance
will be used to terminate a running statement. This is necessary because jdbc.sql.Statement.cancel()
and jdbc.sql.Connection.close() wonĄŻt always be able to do the job.
getConnectionKiller in interface IConnectionServicedatabaseIdentifier - uniquely identifies a databaseconn - the connection object
Runnable which can be used to kill the connection.
public int getConnectionId(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
IConnectionService
getConnectionId in interface IConnectionServicedatabaseIdentifier - uniquely identifies a databaseconn - the connection object
public IControlConnection createControlConnection(DatabaseIdentifier databaseIdentifier)
throws java.sql.SQLException
IConnectionService
createControlConnection in interface IConnectionServicedatabaseIdentifier - uniquely identifies a database
java.sql.SQLExceptionpublic IConnectionInitializer getConnectionInitializer()
IConnectionService
getConnectionInitializer in interface IConnectionServiceorg.eclipse.datatools.common.ui.preferences.AbstractDBPreferenceFieldPage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||