@Override public boolean getMoreResults(int current) throws SQLException { return rawStatement.getMoreResults(current); }
@Override public boolean getMoreResults() throws SQLException { return rawStatement.getMoreResults(); }
@Override public boolean getMoreResults(int current) throws SQLException { return rawStatement.getMoreResults(current); }
@Override public boolean getMoreResults() throws SQLException { return rawStatement.getMoreResults(); }
/** {@inheritDoc} */ @Override public boolean getMoreResults() throws SQLException { return delegate.getMoreResults(); }
/** {@inheritDoc} */ @Override public boolean getMoreResults(int current) throws SQLException { return delegate.getMoreResults(current); }
counts.add(new Pair(ph, (long) -1)); isresult = stmt.getMoreResults(); } while (isresult);
@Override public ResultSet execute(PreparedStatement statement) { // sql logged by StatementPreparerImpl try { final ResultSet rs; try { jdbcExecuteStatementStart(); if ( !statement.execute() ) { while ( !statement.getMoreResults() && statement.getUpdateCount() != -1 ) { // do nothing until we hit the resultset } } rs = statement.getResultSet(); } finally { jdbcExecuteStatementEnd(); } postExtract( rs, statement ); return rs; } catch (SQLException e) { throw sqlExceptionHelper.convert( e, "could not execute statement" ); } }
@Override public boolean goToNext() { if ( currentReturnState == null ) { return false; } if ( currentReturnState.indicatesMoreOutputs() ) { // prepare the next return state try { final boolean isResultSet = jdbcStatement.getMoreResults(); currentReturnState = buildCurrentReturnState( isResultSet ); } catch (SQLException e) { throw convert( e, "Error calling CallableStatement.getMoreResults" ); } } // and return return currentReturnState != null && currentReturnState.indicatesMoreOutputs(); }
@Override public boolean getMoreResults() throws SQLException { return ps.getMoreResults(); }
@Override public boolean getMoreResults(int current) throws SQLException { return ps.getMoreResults(current); }
@Override public boolean getMoreResults() throws SQLException { return ps.getMoreResults(); }
@Override public boolean getMoreResults(int current) throws SQLException { return ps.getMoreResults(current); }
hasResults = st.getMoreResults(Statement.CLOSE_CURRENT_RESULT); hasUpdateCount = st.getUpdateCount() != -1; } catch (SQLException ex) {
if (explainStmt.getMoreResults()) { try (ResultSet rset = explainStmt.getResultSet()) { StringBuilder sb = new StringBuilder();
/** * Standard Statement method call. */ public boolean getMoreResults(int i) throws SQLException { return pstmt.getMoreResults(i); }
@Override public boolean getMoreResults(int current) throws SQLException { checkState(); return realPreparedStatement.getMoreResults(current); }
@Override public boolean getMoreResults() throws SQLException { checkState(); return realPreparedStatement.getMoreResults(); }
@Override public boolean getMoreResults() throws SQLException { checkClosed(); return delegate.getMoreResults(); }
@Test public void testGetMoreResults() throws Exception { PreparedStatement preparedStatement = createMock(PreparedStatement.class); expect(preparedStatement.getMoreResults()).andReturn(Boolean.TRUE); preparedStatement.close(); replay(preparedStatement); JdbcCompiledStatement stmt = new JdbcCompiledStatement(preparedStatement, StatementType.SELECT, false); stmt.getMoreResults(); stmt.close(); verify(preparedStatement); }