public Batch createBatch() { return new Batch( this.statementRewriter, this.connection, globalStatementAttributes, log, timingCollector, foreman.createChild()); }
public Query<Map<String, Object>> createQuery(String sql) { return new Query<Map<String, Object>>( new Binding(), new DefaultMapper(), statementLocator, statementRewriter, this, statementBuilder, sql, new ConcreteStatementContext(globalStatementAttributes), log, timingCollector, Collections.<StatementCustomizer>emptyList(), new MappingRegistry(mappingRegistry), foreman.createChild(), containerFactoryRegistry.createChild()); }