public void setCursorName(String name) throws SQLException { checkClosed(); // No-op. }
public void setEscapeProcessing(boolean enable) throws SQLException { checkClosed(); replaceProcessingEnabled = enable; }
public int getMaxRows() throws SQLException { checkClosed(); return maxrows; }
public int getQueryTimeout() throws SQLException { checkClosed(); return timeout; }
public SQLWarning getWarnings() throws SQLException { checkClosed(); return warnings; }
public void setByte(int parameterIndex, byte x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setInt(int parameterIndex, int x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT4); }
public short getShort(int parameterIndex) throws SQLException { checkClosed(); checkIndex (parameterIndex, Types.SMALLINT, "Short"); if (callResult[parameterIndex-1] == null) return 0; return ((Integer)callResult[parameterIndex-1]).shortValue (); }
public java.sql.Timestamp getTimestamp(int parameterIndex) throws SQLException { checkClosed(); checkIndex (parameterIndex, Types.TIMESTAMP, "Timestamp"); return (java.sql.Timestamp)callResult[parameterIndex-1]; }
public Object getObject(int parameterIndex) throws SQLException { checkClosed(); checkIndex (parameterIndex); return callResult[parameterIndex-1]; }
public void addBatch() throws SQLException { checkClosed(); if (batchStatements == null) { batchStatements = new ArrayList(); batchParameters = new ArrayList(); } // we need to create copies of our parameters, otherwise the values can be changed batchStatements.add(preparedQuery); batchParameters.add(preparedParameters.copy()); }
public java.math.BigDecimal getBigDecimal(int parameterIndex) throws SQLException { checkClosed(); checkIndex (parameterIndex, Types.NUMERIC, "BigDecimal"); return ((BigDecimal)callResult[parameterIndex-1]); }
public long getLastOID() throws SQLException { checkClosed(); if (result == null) return 0; return result.getInsertOID(); }
public boolean getBoolean(int parameterIndex) throws SQLException { checkClosed(); checkIndex (parameterIndex, Types.BIT, "Boolean"); if (callResult[parameterIndex-1] == null) return false; return ((Boolean)callResult[parameterIndex-1]).booleanValue (); }
public java.sql.ResultSet getResultSet() throws SQLException { checkClosed(); if (result == null) return null; return (ResultSet) result.getResultSet(); }
public void setNull(int i, int t, String s) throws SQLException { checkClosed(); setNull(i, t); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkClosed(); if (x == null) setNull(parameterIndex, Types.DECIMAL); else bindLiteral(parameterIndex, x.toString(), Oid.NUMERIC); }
public int getUpdateCount() throws SQLException { checkClosed(); if (result == null || result.getResultSet() != null) return -1; return result.getUpdateCount(); }
public void setFetchSize(int rows) throws SQLException { checkClosed(); if (rows < 0) throw new PSQLException(GT.tr("Fetch size must be a value greater to or equal to 0."), PSQLState.INVALID_PARAMETER_VALUE); fetchSize = rows; }
public boolean executeWithFlags(String p_sql, int flags) throws SQLException { checkClosed(); p_sql = replaceProcessing(p_sql); Query simpleQuery = connection.getQueryExecutor().createSimpleQuery(p_sql); execute(simpleQuery, null, QueryExecutor.QUERY_ONESHOT | flags); this.lastSimpleQuery = simpleQuery; return (result != null && result.getResultSet() != null); }