Example usage for javax.sql.rowset CachedRowSet rowDeleted

List of usage examples for javax.sql.rowset CachedRowSet rowDeleted

Introduction

In this page you can find the example usage for javax.sql.rowset CachedRowSet rowDeleted.

Prototype

boolean rowDeleted() throws SQLException;

Source Link

Document

Retrieves whether a row has been deleted.

Usage

From source file:com.egt.core.db.xdp.RecursoCachedRowSetDataProvider.java

public String getEtiquetaTransaccion() throws SQLException {
    if (this.isInicializado()) {
        CachedRowSet crs = this.getCachedRowSet();
        if (crs == null) {
            return null;
        } else if (crs.rowInserted()) {
            return DBC.COMANDO_INSERT;
        } else if (crs.rowUpdated()) {
            return DBC.COMANDO_UPDATE;
        } else if (crs.rowDeleted()) {
            return DBC.COMANDO_DELETE;
        } else {/*from w  w w.  j  av a 2 s.c o m*/
            return DBC.COMANDO_COMMIT;
        }
    }
    return null;
}

From source file:ips1ap101.lib.core.db.xdp.RecursoCachedRowSetDataProvider.java

public String getEtiquetaTransaccion() throws SQLException {
    if (isInicializado()) {
        CachedRowSet crs = getCachedRowSet();
        if (crs == null) {
            return null;
        } else if (crs.rowInserted()) {
            return BundleWebui.getString("database.insert.command");
        } else if (crs.rowUpdated()) {
            return BundleWebui.getString("database.update.command");
        } else if (crs.rowDeleted()) {
            return BundleWebui.getString("database.delete.command");
        } else {/*from  w ww. j  a  v a2s .  c  om*/
            return BundleWebui.getString("database.commit.command");
        }
    }
    return null;
}