private Object execute() { if (!isNative() && _query.getOperation() != QueryOperations.OP_SELECT) throw new InvalidStateException(_loc.get("not-select-query", getQueryString()), null, null, false); try { lock(); Map params = getParameterValues(); boolean registered = preExecute(params); Object result = _query.execute(params); if (registered) { postExecute(result); } return result; } catch (LockTimeoutException e) { throw new QueryTimeoutException(e.getMessage(), new Throwable[]{e}, this); } finally { unlock(); } }
private Object execute() { if (!isNative() && _query.getOperation() != QueryOperations.OP_SELECT) throw new InvalidStateException(_loc.get("not-select-query", getQueryString()), null, null, false); try { lock(); Map params = getParameterValues(); boolean registered = preExecute(params); Object result = _query.execute(params); if (registered) { postExecute(result); } return result; } catch (LockTimeoutException e) { throw new QueryTimeoutException(e.getMessage(), new Throwable[]{e}, this); } finally { unlock(); } }
private Object execute() { if (!isNative() && _query.getOperation() != QueryOperations.OP_SELECT) throw new InvalidStateException(_loc.get("not-select-query", getQueryString()), null, null, false); try { lock(); Map params = getParameterValues(); boolean registered = preExecute(params); Object result = _query.execute(params); if (registered) { postExecute(result); } return result; } catch (LockTimeoutException e) { throw new QueryTimeoutException(e.getMessage(), new Throwable[]{e}, this); } finally { unlock(); } }
private Object execute() { if (!isNative() && _query.getOperation() != QueryOperations.OP_SELECT) throw new InvalidStateException(_loc.get("not-select-query", getQueryString()), null, null, false); try { lock(); Map params = getParameterValues(); boolean registered = preExecute(params); Object result = _query.execute(params); if (registered) { postExecute(result); } return result; } catch (LockTimeoutException e) { throw new QueryTimeoutException(e.getMessage(), new Throwable[]{e}, this); } finally { unlock(); } }