Examples of rowDeleted()


Examples of com.sun.star.sdbc.XResultSet.rowDeleted()

        // move the clone to the same record as the RowSet, and delete this record
        cloneRowLocate.moveToBookmark(m_rowLocate.getBookmark());
        final int clonePosition = clone.getRow();
        m_resultSetUpdate.deleteRow();

        assure("clone doesn't know that its current row has been deleted via the RowSet", clone.rowDeleted());
        assure("clone's position changed somehow during deletion", clonePosition == clone.getRow());

        // .....................................................................................................
        // move the row set away from the deleted record. This should still not touch the state of the clone
        m_resultSet.previous();
View Full Code Here

Examples of com.sun.star.sdbc.XResultSet.rowDeleted()

        // .....................................................................................................
        // move the row set away from the deleted record. This should still not touch the state of the clone
        m_resultSet.previous();

        assure("clone doesn't know (anymore) that its current row has been deleted via the RowSet", clone.rowDeleted());
        assure("clone's position changed somehow during deletion and RowSet-movement", clonePosition == clone.getRow());

        // .....................................................................................................
        // move the clone away from the deleted record
        clone.next();
View Full Code Here

Examples of com.sun.star.sdbc.XResultSet.rowDeleted()

        assure("clone's position changed somehow during deletion and RowSet-movement", clonePosition == clone.getRow());

        // .....................................................................................................
        // move the clone away from the deleted record
        clone.next();
        assure("clone still assumes that its row is deleted - but we already moved it", !clone.rowDeleted());

        // .....................................................................................................
        // check whether deleting the extremes (first / last) work
        m_resultSet.first();
        cloneRowLocate.moveToBookmark(m_rowLocate.getBookmark());
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

        }
      }
      // Delete holes are manifest as a row consisting of a non-null
      // SQLCARD and a null data group. The SQLCARD has a warning
      // SQLSTATE of 02502
      if (rs != null && rs.rowDeleted()) {
        SQLWarning w = new SQLWarning("", SQLState.ROW_DELETED,
            ExceptionSeverity.WARNING_SEVERITY);
        if (sqlw != null) {
          sqlw.setNextWarning(w);
        } else {
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

      // if we were asked not to return data, mark QRYDTA null; do not
      // return yet, need to make rowCount right
      // if the row has been deleted return QRYDTA null (delete hole)
      boolean noRetrieveRS = (rs != null &&
          (!stmt.getQryrtndta() || rs.rowDeleted()));
      if (noRetrieveRS)
        writer.writeByte(0xFF)//QRYDTA null indicator: IS NULL
      else
        writer.writeByte(0)//QRYDTA null indicator: not null
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

        }
      }
      // Delete holes are manifest as a row consisting of a non-null
      // SQLCARD and a null data group. The SQLCARD has a warning
      // SQLSTATE of 02502
      if (rs != null && rs.rowDeleted()) {
        SQLWarning w = new SQLWarning("", SQLState.ROW_DELETED,
            ExceptionSeverity.WARNING_SEVERITY);
        if (sqlw != null) {
          sqlw.setNextWarning(w);
        } else {
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

      // if we were asked not to return data, mark QRYDTA null; do not
      // return yet, need to make rowCount right
      // if the row has been deleted return QRYDTA null (delete hole)
      boolean noRetrieveRS = (rs != null &&
          (!stmt.getQryrtndta() || rs.rowDeleted()));
      if (noRetrieveRS)
        writer.writeByte(0xFF)//QRYDTA null indicator: IS NULL
      else
        writer.writeByte(0)//QRYDTA null indicator: not null
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

        }
      }
      // Delete holes are manifest as a row consisting of a non-null
      // SQLCARD and a null data group. The SQLCARD has a warning
      // SQLSTATE of 02502
      if (rs != null && rs.rowDeleted()) {
        SQLWarning w = new SQLWarning("", SQLState.ROW_DELETED,
            ExceptionSeverity.WARNING_SEVERITY);
        if (sqlw != null) {
          sqlw.setNextWarning(w);
        } else {
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

      // if we were asked not to return data, mark QRYDTA null; do not
      // return yet, need to make rowCount right
      // if the row has been deleted return QRYDTA null (delete hole)
      boolean noRetrieveRS = (rs != null &&
          (!stmt.getQryrtndta() || rs.rowDeleted()));
      if (noRetrieveRS)
        writer.writeByte(0xFF)//QRYDTA null indicator: IS NULL
      else
        writer.writeByte(0)//QRYDTA null indicator: not null
View Full Code Here

Examples of java.sql.ResultSet.rowDeleted()

        rs.updateRow();
       
        SQLWarning warn = rs.getWarnings();
        assertWarning(warn, CURSOR_OPERATION_CONFLICT);
        assertEquals("Did not expect the resultset to be updated", oldValue, rs.getInt(2));
        assertTrue("Expected rs.rowDeleted() to be false", !rs.rowDeleted());
        assertTrue("Expected rs.rowUpdated() to be false", !rs.rowUpdated());
       
        rs.clearWarnings();
        rs.deleteRow();
        warn = rs.getWarnings();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.