List of usage examples for javax.sql.rowset CachedRowSet rowInserted
boolean rowInserted() throws SQLException;
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 www. jav a 2 s. c om 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 w w. j av a 2 s. c o m*/ return BundleWebui.getString("database.commit.command"); } } return null; }