code: public ProxyDataSourceBuilder autoRetrieveGeneratedKeys(boolean autoClose, ResultSetProxyLogicFactory factory) {
          this.autoRetrieveGeneratedKeys = true;
          this.autoCloseGeneratedKeys = autoClose;
          this.generatedKeysProxyLogicFactory = factory;
          return this;
      }
docs: Enable auto retrieval of generated keys with proxy created by specified factory.
  
  See detail on {@link #autoRetrieveGeneratedKeys(boolean)}.
  
  @param autoClose set {@code true} to close the generated-keys {@link java.sql.ResultSet} after query listener execution
  @param factory   a factory to create a generated-keys proxy
  @return builder
  @since 1.4.5