|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface which enables an application to provide additional parameters when requesting a Connection. These parameters are provided in a ConnectionSpec object.
Field Summary | |
---|---|
static java.lang.String |
IMMEDIATE_PURGE
With the IMMEDIATE_PURGE option, the purged pool will behave as follows after the purge call: No new transactions will be allowed to start on any connections obtained prior to the purgePoolContents() call. |
static java.lang.String |
NORMAL_PURGE
With the NORMAL_PURGE option, the purged pool will behave as follows after the purge call: Existing in-flight transactions will be allowed to continue work Shared connection requests will be honored Free connections are cleanup and destroyed In use connection (i.e. |
Method Summary | |
---|---|
java.sql.Connection |
getConnection(JDBCConnectionSpec connSpec)
Obtains a Connection based on the information provided in the JDBCConnectionSpec object. |
java.sql.Connection |
getConnection(WSCciConnectionSpec connSpec)
|
Methods inherited from interface javax.sql.DataSource |
---|
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Field Detail |
public static final java.lang.String NORMAL_PURGE
close()
calls issued on any connections obtained prior to the purgePool
call will
be done synchronously (i.e. wait for the jdbc driver to come back before proceeding)
public static final java.lang.String IMMEDIATE_PURGE
purgePoolContents()
call. Instead,
a StaleConnectionException is thrown purgePoolContents()
call. Instead,
a StaleConnectionException is thrown close()
calls issued on any connections obtained prior to the purgePoolContents()
call will be
done asynchronously (i.e. no wait time)
Method Detail |
public java.sql.Connection getConnection(JDBCConnectionSpec connSpec) throws java.sql.SQLException
connSpec
- information used to establish the Connection, such as user name,
password, and type map. This value should never be null.
java.sql.SQLException
- if an error occurs while obtaining a Connection.public java.sql.Connection getConnection(WSCciConnectionSpec connSpec) throws java.sql.SQLException
connSpec
- information used to establish the Connection, such as user name,
password, and AccessIntent. This value should never be null, however, an empty
WSConnectionSpec may be used instead.
java.sql.SQLException
- if an error occurs while obtaining a Connection.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |