예제 #1
0
 public Batch createBatch() {
   return new Batch(
       this.statementRewriter,
       this.connection,
       globalStatementAttributes,
       log,
       timingCollector,
       foreman.createChild());
 }
예제 #2
0
 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());
 }