use of org.eclipse.scout.rt.server.jdbc.internal.exec.PreparedStatementCache in project scout.rt by eclipse.
the class AbstractSqlService method getStatementCache.
/**
* @return the statement cache used for this {@link ITransaction} transaction
*/
protected final IStatementCache getStatementCache() {
ITransaction tx = Assertions.assertNotNull(ITransaction.CURRENT.get(), "Transaction required");
IStatementCache res = (IStatementCache) tx.getMember(PreparedStatementCache.TRANSACTION_MEMBER_ID);
if (res == null) {
res = new PreparedStatementCache(getJdbcStatementCacheSize());
tx.registerMember((ITransactionMember) res);
}
return res;
}
use of org.eclipse.scout.rt.server.jdbc.internal.exec.PreparedStatementCache in project scout.rt by eclipse.
the class SqlServiceMock method selectInto.
@Override
public void selectInto(String s, Object... bindBases) {
createPlainTextLog(s, bindBases);
createStatementProcessor(s, bindBases, 0).processSelectInto(getTransaction(), new PreparedStatementCache(1), null);
}
Aggregations