public synchronized void moveToInsertRow() throws SQLException { checkUpdateable(); if (insertStatement != null) { insertStatement = null; } // make sure the underlying data is null clearRowBuffer(false); onInsertRow = true; doingUpdates = false; }
public synchronized void moveToCurrentRow() throws SQLException { checkUpdateable(); if (current_row < 0 || current_row >= rows.size()) { this_row = null; rowBuffer = null; } else { initRowBuffer(); } onInsertRow = false; doingUpdates = false; }
public synchronized void insertRow() throws SQLException checkUpdateable();
public void refreshRow() throws SQLException checkUpdateable(); if (onInsertRow) throw new PSQLException(GT.tr("Can''t refresh the insert row."),
public synchronized void updateRow() throws SQLException checkUpdateable();
public synchronized void deleteRow() throws SQLException checkUpdateable();
protected void updateValue(int columnIndex, Object value) throws SQLException { checkUpdateable(); if (!onInsertRow && (isBeforeFirst() || isAfterLast() || rows.size() == 0)) { throw new PSQLException(GT.tr("Cannot update the ResultSet because it is either before the start or after the end of the results."), PSQLState.INVALID_CURSOR_STATE); } checkColumnIndex(columnIndex); doingUpdates = !onInsertRow; if (value == null) { updateNull(columnIndex); } else { PGResultSetMetaData md = (PGResultSetMetaData)getMetaData(); updateValues.put(md.getBaseColumnName(columnIndex), value); } }
public synchronized void moveToInsertRow() throws SQLException { checkUpdateable(); if (insertStatement != null) { insertStatement = null; } // make sure the underlying data is null clearRowBuffer(false); onInsertRow = true; doingUpdates = false; }
public synchronized void moveToInsertRow() throws SQLException { checkUpdateable(); if (insertStatement != null) { insertStatement = null; } // make sure the underlying data is null clearRowBuffer(false); onInsertRow = true; doingUpdates = false; }
public synchronized void moveToCurrentRow() throws SQLException { checkUpdateable(); if (current_row < 0 || current_row >= rows.size()) { this_row = null; rowBuffer = null; } else { initRowBuffer(); } onInsertRow = false; doingUpdates = false; }
public synchronized void moveToCurrentRow() throws SQLException { checkUpdateable(); if (current_row < 0 || current_row >= rows.size()) { this_row = null; rowBuffer = null; } else { initRowBuffer(); } onInsertRow = false; doingUpdates = false; }
public synchronized void insertRow() throws SQLException checkUpdateable();
public void refreshRow() throws SQLException checkUpdateable(); if (onInsertRow) throw new PSQLException(GT.tr("Can''t refresh the insert row."),
public void refreshRow() throws SQLException checkUpdateable(); if (onInsertRow) throw new PSQLException(GT.tr("Can''t refresh the insert row."),
public synchronized void updateRow() throws SQLException checkUpdateable();
public synchronized void updateRow() throws SQLException checkUpdateable();
protected void updateValue(int columnIndex, Object value) throws SQLException { checkUpdateable(); if (!onInsertRow && (isBeforeFirst() || isAfterLast() || rows.size() == 0)) { throw new PSQLException(GT.tr("Cannot update the ResultSet because it is either before the start or after the end of the results."), PSQLState.INVALID_CURSOR_STATE); } checkColumnIndex(columnIndex); doingUpdates = !onInsertRow; if (value == null) updateNull(columnIndex); else updateValues.put(fields[columnIndex - 1].getColumnName(connection), value); }
public synchronized void deleteRow() throws SQLException checkUpdateable();
public synchronized void deleteRow() throws SQLException checkUpdateable();
protected void updateValue(int columnIndex, Object value) throws SQLException { checkUpdateable(); if (!onInsertRow && (isBeforeFirst() || isAfterLast() || rows.size() == 0)) { throw new PSQLException(GT.tr("Cannot update the ResultSet because it is either before the start or after the end of the results."), PSQLState.INVALID_CURSOR_STATE); } checkColumnIndex(columnIndex); doingUpdates = !onInsertRow; if (value == null) { updateNull(columnIndex); } else { PGResultSetMetaData md = (PGResultSetMetaData)getMetaData(); updateValues.put(md.getBaseColumnName(columnIndex), value); } }