public int getConcurrency() throws SQLException { checkClosed(); return resultsetconcurrency; }
public int getFetchDirection() throws SQLException { checkClosed(); return fetchdirection; }
public boolean rowDeleted() throws SQLException { checkClosed(); return false; }
public void clearWarnings() throws SQLException { checkClosed(); warnings = null; }
public Statement getStatement() throws SQLException { checkClosed(); return (Statement) statement; }
public int getFetchSize() throws SQLException { checkClosed(); return fetchSize; }
public boolean rowInserted() throws SQLException { checkClosed(); return false; }
public String getCursorName() throws SQLException { checkClosed(); return null; }
public boolean isFirst() throws SQLException { checkClosed(); if (onInsertRow) return false; return ((row_offset + current_row) == 0); }
public boolean rowUpdated() throws SQLException { checkClosed(); return false; }
public int getType() throws SQLException { checkClosed(); return resultsettype; }
public boolean wasNull() throws SQLException { checkClosed(); return wasNullFlag; }
public boolean isBeforeFirst() throws SQLException { checkClosed(); if (onInsertRow) return false; return ((row_offset + current_row) < 0 && rows.size() > 0); }
public boolean isAfterLast() throws SQLException { checkClosed(); if (onInsertRow) return false; final int rows_size = rows.size(); return (current_row >= rows_size && rows_size > 0); }
public java.net.URL getURL(int columnIndex) throws SQLException { checkClosed(); throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(int)"); }
public Ref getRef(int i) throws SQLException { checkClosed(); //The backend doesn't yet have SQL3 REF types throw org.postgresql.Driver.notImplemented(this.getClass(), "getRef(int)"); }
public Object getObjectImpl(int i, java.util.Map map) throws SQLException { checkClosed(); if (map == null || map.isEmpty()) { return getObject(i); } throw org.postgresql.Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)"); }
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; }
private void checkScrollable() throws SQLException { checkClosed(); if (resultsettype == ResultSet.TYPE_FORWARD_ONLY) throw new PSQLException(GT.tr("Operation requires a scrollable ResultSet, but this ResultSet is FORWARD_ONLY."), PSQLState.INVALID_CURSOR_STATE); }
private void checkUpdateable() throws SQLException { checkClosed(); if (!isUpdateable()) throw new PSQLException(GT.tr("ResultSet is not updateable. The query that generated this result set must select only one table, and must select all primary keys from that table. See the JDBC 2.1 API Specification, section 5.6 for more details."), PSQLState.INVALID_CURSOR_STATE); if (updateValues == null) { // allow every column to be updated without a rehash. updateValues = new HashMap((int)(fields.length / 0.75), 0.75f); } }