MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / executeSQL

Method executeSQL

jOOQ/src/main/java/org/jooq/impl/LoaderImpl.java:765–782  ·  view source on GitHub ↗
(final Iterator<? extends Object[]> iterator)

Source from the content-addressed store, hash-verified

763 }
764
765 private final void executeSQL(final Iterator<? extends Object[]> iterator) {
766 configuration.dsl().connection(connection -> {
767 Configuration c = configuration.derive(new DefaultConnectionProvider(connection));
768
769 if (FALSE.equals(c.settings().isCachePreparedStatementInLoader())) {
770 executeSQL(iterator, c.dsl());
771 }
772
773 else {
774 try (CachedPSListener cache = new CachedPSListener()) {
775 executeSQL(iterator, c
776 .derive(combine(new DefaultExecuteListenerProvider(cache), c.executeListenerProviders()))
777 .dsl()
778 );
779 }
780 }
781 });
782 }
783
784 private final void executeSQL(Iterator<? extends Object[]> iterator, DSLContext ctx) {
785 Object[] row = null;

Callers 3

executeJSONMethod · 0.95
executeCSVMethod · 0.95
executeRowsMethod · 0.95

Calls 15

deriveMethod · 0.95
settingsMethod · 0.95
dslMethod · 0.95
fields0Method · 0.95
addValue0Method · 0.95
addValueForUpdate0Method · 0.95
bindMethod · 0.95
mapMethod · 0.95
commitMethod · 0.95
rollbackMethod · 0.95

Tested by

no test coverage detected