/** * Get the parameter type from the settings. * <p> * The {@link ParamType} can be overridden by the {@link StatementType}. * If the latter is set to {@link StatementType#STATIC_STATEMENT}, then the * former defaults to {@link ParamType#INLINED}. */ public static final ParamType getParamType(Settings settings) { if (executeStaticStatements(settings)) { return INLINED; } else if (settings != null) { ParamType result = settings.getParamType(); if (result != null) return result; } return INDEXED; }
/** * Get the parameter type from the settings. * <p> * The {@link ParamType} can be overridden by the {@link StatementType}. * If the latter is set to {@link StatementType#STATIC_STATEMENT}, then the * former defaults to {@link ParamType#INLINED}. */ public static final ParamType getParamType(Settings settings) { if (executeStaticStatements(settings)) { return INLINED; } else if (settings != null) { ParamType result = settings.getParamType(); if (result != null) { return result; } } return INDEXED; }
@Override public final int[] execute() throws DataAccessException { // [#1180] Run batch queries with BatchMultiple, if no bind variables // should be used... if (executeStaticStatements(configuration.settings())) { return executeStatic(); } else { return executePrepared(); } }
@Override public final int[] execute() throws DataAccessException { // [#1180] Run batch queries with BatchMultiple, if no bind variables // should be used... if (executeStaticStatements(configuration.settings())) { return executeStatic(); } else { return executePrepared(); } }
@Override public final int[] execute() { // [#1180] Run batch queries with BatchMultiple, if no bind variables // should be used... if (executeStaticStatements(configuration.settings())) { return executeStatic(); } else { return executePrepared(); } }
@Override public final int[] execute() { // [#4554] If no variables are bound this should be treated like a // BatchMultiple as the intention was most likely to call the varargs // version of DSLContext#batch(Query... queries) with a single parameter. if (allBindValues.isEmpty()) { log.info("Single batch", "No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse"); return BatchMultiple.execute(configuration, new Query[] { query }); } checkBindValues(); // [#1180] Run batch queries with BatchMultiple, if no bind variables // should be used... if (executeStaticStatements(configuration.settings())) return executeStatic(); else return executePrepared(); }