private ParameterList createParameterList(List<SqpValue> parameters) throws SqpException { ParameterList parameterList = _preparedQuery.createParameterList(); ParameterBinder binder = new ParameterBinder(_connection, parameterList); for (int i = 0; i < parameters.size(); i++) { binder.bindParameter(i, parameters.get(i)); } return parameterList; }
@Override public void close() { // This should be a non-blocking operation. Actual close will happen when another query is // executed if (_preparedQuery != null) { _preparedQuery.close(); } }
private ParameterList[] getParameterListsToExecute() { if (_parameterLists.length < 1) { return new ParameterList[] {_preparedQuery.createParameterList()}; } return _parameterLists; }