Package scriptella.core
Class Session
java.lang.Object
scriptella.core.Session
A helper class for EtlContext to store and work with connections/executors.
Available from EtlContext
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()voidenableProgress(ExecutionProgress progress) Registers live counters on the execution thread; no connection escapes.voidexecute(EtlContext ctx) longlongReturns update counts reported by this session's connections.voidrollback()
-
Constructor Details
-
Session
-
-
Method Details
-
execute
-
enableProgress
Registers live counters on the execution thread; no connection escapes. -
getExecutedStatementsCount
public long getExecutedStatementsCount() -
getUpdateCount
public long getUpdateCount()Returns update counts reported by this session's connections. -
close
public void close() -
commit
public void commit() -
rollback
public void rollback()
-