/**
* Reads all data from the database and send it to the sink.
*/
public void run() {
final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
try {
dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
private DatabaseContext2 dbCtxInner = dbCtx;
@Override
protected void doInTransactionWithoutResult(TransactionStatus arg0) {
runImpl(dbCtxInner);
} });
} finally {
dbCtx.release();
}
}