@Bean DefaultDSLContext dsl() { return new DefaultDSLContext(configuration()); }
@Override public Batch batch(Collection<? extends Query> queries) { return batch(queries.toArray(EMPTY_QUERY)); }
@Override public void attach(Attachable... attachables) { attach(Arrays.asList(attachables)); }
@Override public Batch batchStore(Collection<? extends UpdatableRecord<?>> records) { return batchStore(records.toArray(EMPTY_UPDATABLE_RECORD)); }
@Override public Batch batchInsert(Collection<? extends TableRecord<?>> records) { return batchInsert(records.toArray(EMPTY_TABLE_RECORD)); }
@Override public Batch batchDelete(Collection<? extends UpdatableRecord<?>> records) { return batchDelete(records.toArray(EMPTY_UPDATABLE_RECORD)); }
@Override public Batch batchUpdate(Collection<? extends UpdatableRecord<?>> records) { return batchUpdate(records.toArray(EMPTY_UPDATABLE_RECORD)); }
@Override public Batch batch(Collection<? extends Query> queries) { return batch(queries.toArray(new Query[queries.size()])); }
@Override public void attach(Attachable... attachables) { attach(Arrays.asList(attachables)); }
@Override public Batch batchStore(Collection<? extends UpdatableRecord<?>> records) { return batchStore(records.toArray(new UpdatableRecord[records.size()])); }
@Override public Batch batchInsert(Collection<? extends UpdatableRecord<?>> records) { return batchInsert(records.toArray(new UpdatableRecord[records.size()])); }
@Override public Batch batchDelete(Collection<? extends UpdatableRecord<?>> records) { return batchDelete(records.toArray(new UpdatableRecord[records.size()])); }
@Override public Batch batchUpdate(Collection<? extends UpdatableRecord<?>> records) { return batchUpdate(records.toArray(new UpdatableRecord[records.size()])); }
/** * Create an executor from a custom configuration. * * @param configuration The configuration */ public static DSLContext using(Configuration configuration) { return new DefaultDSLContext(configuration); }
@Override public Batch batch(Query query, Object[]... bindings) { return batch(query).bind(bindings); }
/** * Create an executor with a dialect configured. * <p> * Without a connection or data source, this executor cannot execute * queries. Use it to render SQL only. * * @param dialect The dialect to use with objects created from this executor */ public static DSLContext using(SQLDialect dialect) { return new DefaultDSLContext(dialect, null); }