|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A connection related service specific to a database definition.
Clients should extend DefaultConnectionService rather than implement this interface directly.
| 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. |
| Method Detail |
public java.lang.Runnable getConnectionKiller(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Runnable 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.
databaseIdentifier - 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)
databaseIdentifier - uniquely identifies a databaseconn - the connection object
public IControlConnection createControlConnection(DatabaseIdentifier databaseIdentifier)
throws java.sql.SQLException
databaseIdentifier - uniquely identifies a database
java.sql.SQLExceptionpublic IConnectionInitializer getConnectionInitializer()
org.eclipse.datatools.common.ui.preferences.AbstractDBPreferenceFieldPage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||