/** * <p>Creates a Statement object that will produce ResultSet objects of the type * resultSetType and concurrency level resultSetConcurrency.</p> * @param intvalue indicating the ResultSet's type * @param intValue indicating the ResultSet's concurrency * @return Statement object. */ public StatementImpl createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { return createStatement(resultSetType, resultSetConcurrency, ResultSet.HOLD_CURSORS_OVER_COMMIT); }
/** * <p>Creates a Statement object that will produce ResultSet objects of the type * resultSetType and concurrency level resultSetConcurrency.</p> * @param intvalue indicating the ResultSet's type * @param intValue indicating the ResultSet's concurrency * @return Statement object. */ public StatementImpl createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { return createStatement(resultSetType, resultSetConcurrency, ResultSet.HOLD_CURSORS_OVER_COMMIT); }
public StatementImpl createStatement() throws SQLException { return createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); }
public StatementImpl createStatement() throws SQLException { return createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); }
@Test public void testMaxOpenStatements() throws SQLException { ConnectionImpl conn = getMMConnection(); for(int i = 0; i < 1000; i++){ conn.createStatement(); } try{ conn.createStatement(); fail("MaxOpenStatements not limited to required number."); } catch (TeiidSQLException ex){ assertThat(ex.getMessage(), CoreMatchers.containsString(JDBCPlugin.Event.TEIID20036.name())); } } }
this.connection.setExecutionProperty(key, this.props.getProperty(key)); StatementImpl s = this.connection.createStatement(); try { s.execute("select teiid_session_set('resolve_groupby_positional', true)"); //$NON-NLS-1$
private void sqlExecute(final String sql, final ResultsFuture<Integer> completion) throws SQLException { String modfiedSQL = fixSQL(sql); final boolean autoCommit = connection.getAutoCommit(); final StatementImpl stmt = connection.createStatement(); executionFuture = stmt.submitExecute(modfiedSQL, null); this.executingStatement = stmt.getRequestIdentifier();