/** * {@inheritDoc} */ @Override public final String getSQL() { return getSQL(getParamType(Tools.settings(configuration()))); }
/** * {@inheritDoc} */ @Override public final String getSQL() { return getSQL(getParamType(configuration().settings())); }
/** * Close the statement if necessary. * <p> * [#1886] If there is an open (cached) statement and its bind values are * inlined due to a {@link StatementType#STATIC_STATEMENT} setting, the * statement should be closed. * * @param param The param that was changed */ private final void closeIfNecessary(Param<?> param) { // This is relevant when there is an open statement, only if (keepStatement() && statement != null) { // When an inlined param is being changed, the previous statement // has to be closed, regardless if variable binding is performed if (param.isInline()) { close(); } // If all params are inlined, the previous statement always has to // be closed else if (getParamType(configuration().settings()) == INLINED) { close(); } } }
/** * Close the statement if necessary. * <p> * [#1886] If there is an open (cached) statement and its bind values are * inlined due to a {@link StatementType#STATIC_STATEMENT} setting, the * statement should be closed. * * @param param The param that was changed */ private final void closeIfNecessary(Param<?> param) { // This is relevant when there is an open statement, only if (keepStatement() && statement != null) { // When an inlined param is being changed, the previous statement // has to be closed, regardless if variable binding is performed if (param.isInline()) { close(); } // If all params are inlined, the previous statement always has to // be closed else if (getParamType(configuration().settings()) == INLINED) { close(); } } }
: SettingsTools.getParamType(settings()) == ParamType.FORCE_INDEXED ? ParamType.INDEXED : null;