Package scriptella.core
Class ConnectionManager
java.lang.Object
scriptella.core.ConnectionManager
Manages the primary connection and additional connections
used by new-tx scripts. Each new-tx script element caches
its connection and reuses it across invocations.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionManager(EtlContext ctx, ConnectionEl c) ConnectionManager(EtlContext ctx, ConnectionEl c, ExecutionStatistics.ConnectionInfo statistics) -
Method Summary
-
Constructor Details
-
ConnectionManager
-
ConnectionManager
public ConnectionManager(EtlContext ctx, ConnectionEl c, ExecutionStatistics.ConnectionInfo statistics)
-
-
Method Details
-
getConnection
-
newConnection
Creates a new connection and registers it for transaction management and cleanup. Callers may cache and reuse it. -
rollback
public void rollback() -
commit
public void commit() -
close
public void close() -
getExecutedStatementsCount
public long getExecutedStatementsCount()Returns number of executed statements by managed connections. -
getUpdateCount
public long getUpdateCount()Returns update counts reported by all managed connections.
-