Пример #1
0
 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;
 }
Пример #2
0
 @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();
   }
 }
Пример #3
0
 private ParameterList[] getParameterListsToExecute() {
   if (_parameterLists.length < 1) {
     return new ParameterList[] {_preparedQuery.createParameterList()};
   }
   return _parameterLists;
 }