PB#beginTransaction() opens a single jdbc connection via
PB#serviceConnectionManager().localBegin().
If you call PB#serviceConnectionManager().getConnection() later
it returns the already opened connection.
The PB instance will release the used connection during
PB#commitTransaction() or PB#abortTransaction() or PB#close().
NOTE: Never call Connection.close() on the connection requested from the ConnectionManager.
Cleanup of used connection is done by OJB itself.
setBatchMode(boolean mode) Sets the batch mode on or off - this
switch only works if you set attribute batch-mode
in jdbc-connection-descriptor true and your database
support batch mode.
PB#beginTransaction() opens a single jdbc connection via
PB#serviceConnectionManager().localBegin().
If you call PB#serviceConnectionManager().getConnection() later
it returns the already opened connection.
The PB instance will release the used connection during
PB#commitTransaction() or PB#abortTransaction() or PB#close().
NOTE: Never call Connection.close() on the connection requested from the ConnectionManager.
Cleanup of used connection is done by OJB itself. If you need to release a used connection
call
ConnectionManagerImpl.releaseConnection() .
Sets the batch mode on or off - this
switch only works if you set attribute batch-mode
in jdbc-connection-descriptor true and your database
support batch mode.
Parameters: mode - the batch mode