|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionFactory
Creates Transaction
instances.
Method Summary | |
---|---|
Transaction |
newTransaction(Connection conn)
Creates a Transaction out of an existing connection. |
Transaction |
newTransaction(DataSource dataSource,
TransactionIsolationLevel level,
boolean autoCommit)
Creates a Transaction out of a datasource. |
void |
setProperties(Properties props)
Sets transaction factory custom properties. |
Method Detail |
---|
void setProperties(Properties props)
props
- Transaction newTransaction(Connection conn)
Transaction
out of an existing connection.
conn
- Existing database connection
Transaction newTransaction(DataSource dataSource, TransactionIsolationLevel level, boolean autoCommit)
Transaction
out of a datasource.
dataSource
- DataSource to take the connection fromlevel
- Desired isolation levelautoCommit
- Desired autocommit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |