public int getFetchDirection() throws SQLException { checkClosed(); return fetchdirection; }
public boolean rowInserted() throws SQLException { checkClosed(); return false; }
public void clearWarnings() throws SQLException { checkClosed(); warnings = null; }
public int getType() throws SQLException { checkClosed(); return resultsettype; }
public int getFetchSize() throws SQLException { checkClosed(); return fetchSize; }
public boolean wasNull() throws SQLException { checkClosed(); return wasNullFlag; }
public String getCursorName() throws SQLException { checkClosed(); return null; }
public boolean rowDeleted() throws SQLException { checkClosed(); return false; }
public boolean isBeforeFirst() throws SQLException { checkClosed(); if (onInsertRow) { return false; } return ((row_offset + current_row) < 0 && !rows.isEmpty()); }
public boolean isAfterLast() throws SQLException { checkClosed(); if (onInsertRow) { return false; } final int rows_size = rows.size(); if (row_offset + rows_size == 0) { return false; } return (current_row >= rows_size); }
public int getRow() throws SQLException { checkClosed(); if (onInsertRow) { return 0; } final int rows_size = rows.size(); if (current_row < 0 || current_row >= rows_size) { return 0; } return row_offset + current_row + 1; }
public boolean isFirst() throws SQLException { checkClosed(); if (onInsertRow) { return false; } final int rows_size = rows.size(); if (row_offset + rows_size == 0) { return false; } return ((row_offset + current_row) == 0); }
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 ResultSetMetaData getMetaData() throws SQLException { checkClosed(); if (rsMetaData == null) { rsMetaData = createMetaData(); } return rsMetaData; }
public java.net.URL getURL(int columnIndex) throws SQLException { connection.getLogger().log(Level.FINEST, " getURL columnIndex: {0}", columnIndex); checkClosed(); throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(int)"); }
public Object getObjectImpl(int i, Map<String, Class<?>> map) throws SQLException { checkClosed(); if (map == null || map.isEmpty()) { return getObject(i); } throw org.postgresql.Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)"); }
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); } }
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 synchronized void cancelRowUpdates() throws SQLException { checkClosed(); if (onInsertRow) { throw new PSQLException(GT.tr("Cannot call cancelRowUpdates() when on the insert row."), PSQLState.INVALID_CURSOR_STATE); } if (doingUpdates) { doingUpdates = false; clearRowBuffer(true); } }
public int findColumn(String columnName) throws SQLException { checkClosed(); int col = findColumnIndex(columnName); if (col == 0) { throw new PSQLException( GT.tr("The column name {0} was not found in this ResultSet.", columnName), PSQLState.UNDEFINED_COLUMN); } return col; }