Codota Logo
AbstractJdbc2ResultSet.checkUpdateable
Code IndexAdd Codota to your IDE (free)

How to use
checkUpdateable
method
in
org.postgresql.jdbc2.AbstractJdbc2ResultSet

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkUpdateable (Showing top 20 results out of 315)

  • Common ways to obtain AbstractJdbc2ResultSet
private void myMethod () {
AbstractJdbc2ResultSet a =
  • Codota IconPreparedStatement preparedStatement;(AbstractJdbc2ResultSet) preparedStatement.executeQuery()
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

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;
}
origin: postgresql/postgresql

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;
}
origin: postgresql/postgresql

public synchronized void insertRow()
throws SQLException
  checkUpdateable();
origin: postgresql/postgresql

public void refreshRow() throws SQLException
  checkUpdateable();
  if (onInsertRow)
    throw new PSQLException(GT.tr("Can''t refresh the insert row."),
origin: postgresql/postgresql

public synchronized void updateRow()
throws SQLException
  checkUpdateable();
origin: postgresql/postgresql

public synchronized void deleteRow()
throws SQLException
  checkUpdateable();
origin: postgresql/postgresql

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);
  }
}
origin: org.ancoron.postgresql/org.postgresql

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;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

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;
}
origin: org.ancoron.postgresql/org.postgresql

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;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

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;
}
origin: org.ancoron.postgresql/org.postgresql

public synchronized void insertRow()
throws SQLException
  checkUpdateable();
origin: org.ancoron.postgresql/org.postgresql.osgi

public void refreshRow() throws SQLException
  checkUpdateable();
  if (onInsertRow)
    throw new PSQLException(GT.tr("Can''t refresh the insert row."),
origin: org.ancoron.postgresql/org.postgresql

public void refreshRow() throws SQLException
  checkUpdateable();
  if (onInsertRow)
    throw new PSQLException(GT.tr("Can''t refresh the insert row."),
origin: org.ancoron.postgresql/org.postgresql

public synchronized void updateRow()
throws SQLException
  checkUpdateable();
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized void updateRow()
throws SQLException
  checkUpdateable();
origin: org.ancoron.postgresql/org.postgresql.osgi

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);
}
origin: org.ancoron.postgresql/org.postgresql

public synchronized void deleteRow()
throws SQLException
  checkUpdateable();
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized void deleteRow()
throws SQLException
  checkUpdateable();
origin: org.ancoron.postgresql/org.postgresql

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);
  }
}
org.postgresql.jdbc2AbstractJdbc2ResultSetcheckUpdateable

Popular methods of AbstractJdbc2ResultSet

  • absolute
  • addWarning
  • afterLast
  • beforeFirst
  • checkClosed
  • checkColumnIndex
  • checkResultSet
    Checks that the result set is not closed, it's positioned on a valid row and that the given column n
  • checkScrollable
  • clearRowBuffer
  • close
  • createArray
  • findColumn
  • createArray,
  • findColumn,
  • findColumnIndex,
  • getArray,
  • getAsciiStream,
  • getBigDecimal,
  • getBinaryStream,
  • getBlob,
  • getBoolean

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now