|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionsRepository
Interface implemented by the object returned by
JdbcTransactionService.getCurrentTransaction
.
Used by ConnectionProxy
s to access a Connection
by its id.
Generally used internally only.
Method Summary | |
---|---|
void |
endAllConnections(boolean close,
boolean commit)
Terminate all connections enlisted in the current transaction. |
java.sql.Connection |
getConnection(java.lang.String id,
javax.sql.DataSource ds)
Get a Connection by its id for the current
transaction (in the current thread). |
Method Detail |
---|
java.sql.Connection getConnection(java.lang.String id, javax.sql.DataSource ds) throws java.sql.SQLException
Connection
by its id
for the current
transaction (in the current thread).
If this connection does not exist yet then it is created by the
underlying DataSource
and it is "enlisted" into the current
transaction.
id
- unique identifier of the Connectionds
- DataSource to be used to create new Connection if needed
id
and the current
transaction
java.sql.SQLException
void endAllConnections(boolean close, boolean commit) throws java.sql.SQLException
JdbcTransactionService
.
close
- true
if connections should be closed immediately
or notcommit
- true
if all connections should be committed
before closing, false
if they should be rolled back
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |