|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Uses the global options to initialize the connection |
void |
init(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn,
ILaunchConfiguration configuration)
Uses the given launch configuration to initialize the connection. |
void |
revert(DatabaseIdentifier databaseIdentifier,
java.sql.Connection conn)
Reverts to database default options when put back the connection to the connection pool. |
Method Detail |
public void init(DatabaseIdentifier databaseIdentifier, java.sql.Connection conn)
public void init(DatabaseIdentifier databaseIdentifier, java.sql.Connection conn, ILaunchConfiguration configuration)
databaseIdentifier
- conn
- the connection objectconfiguration
- public void revert(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 |