|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionInitializer
As we are using connection pool and some configurations of the pooled connection may have been changed during last session, we should reset them into the default status everytime a connection is retrieved from the pool.
Method Summary | |
---|---|
void |
init(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Uses the global options to initialize the connection |
void |
init(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn,
org.eclipse.debug.core.ILaunchConfiguration configuration)
Uses the given launch configuration to initialize the connection. |
void |
revert(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Reverts to database default options when put back the connection to the connection pool. |
Method Detail |
---|
void init(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier, java.sql.Connection conn)
void init(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier, java.sql.Connection conn, org.eclipse.debug.core.ILaunchConfiguration configuration)
databaseIdentifier
- conn
- the connection objectconfiguration
- void revert(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier, java.sql.Connection conn)
databaseIdentifier
- conn
- the connection object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |