Example usage for javax.sql.rowset CachedRowSet rowUpdated

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

Introduction

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

Prototype

boolean rowUpdated() throws SQLException;

Source Link

Document

Retrieves whether the current row has been updated.

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 ww. j a  v  a  2  s.  com
            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 {/* w ww  . j  a  va2s.co m*/
            return BundleWebui.getString("database.commit.command");
        }
    }
    return null;
}