|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.core.services.ConnectionService
A connection related service specific to a database definition.
Constructor Summary | |
ConnectionService()
|
Method Summary | |
java.sql.Connection |
createConnection(java.lang.String profileName,
java.lang.String dbName)
Creates a jdbc connection from the given connection profile name and database name. |
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 ConnectionService()
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.SQLException
public IConnectionInitializer getConnectionInitializer()
org.eclipse.datatools.common.ui.preferences.AbstractDBPreferenceFieldPage
public java.sql.Connection createConnection(java.lang.String profileName, java.lang.String dbName)
profileName
- dbName
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |