use of org.eclipse.scout.rt.server.jdbc.AbstractSqlTransactionMember in project scout.rt by eclipse.
the class StatementProcessor method registerActiveStatement.
protected void registerActiveStatement(Statement s) throws SQLException {
ITransaction tx = ITransaction.CURRENT.get();
if (tx == null) {
return;
}
ITransactionMember member = tx.getMember(getCallerService().getTransactionMemberId());
if (member instanceof AbstractSqlTransactionMember) {
((AbstractSqlTransactionMember) member).registerActiveStatement(s);
}
}
use of org.eclipse.scout.rt.server.jdbc.AbstractSqlTransactionMember in project scout.rt by eclipse.
the class StatementProcessor method unregisterActiveStatement.
protected void unregisterActiveStatement(Statement s) {
ITransaction tx = ITransaction.CURRENT.get();
if (tx == null) {
return;
}
ITransactionMember member = tx.getMember(getCallerService().getTransactionMemberId());
if (member instanceof AbstractSqlTransactionMember) {
((AbstractSqlTransactionMember) member).unregisterActiveStatement(s);
}
}
Aggregations