List of usage examples for javax.sql.rowset CachedRowSet getTableName
public String getTableName() throws SQLException;
CachedRowSet
object. From source file:com.egt.core.db.xdp.RecursoCachedRowSetDataProvider.java
public String getTablaCachedRowSet() throws SQLException { CachedRowSet crs = this.getCachedRowSet(); return crs == null ? "" : crs.getTableName(); }
From source file:com.egt.core.db.xdp.RecursoCachedRowSetDataProvider.java
protected void setTablaCachedRowSet(String tabla) throws ExcepcionAplicacion { Bitacora.trace(this.getClass(), "setTablaCachedRowSet", tabla); if (StringUtils.isNotBlank(tabla)) { CachedRowSet crs = this.getCachedRowSet(); Bitacora.trace(this.getClass(), "setTablaCachedRowSet", crs == null ? "CachedRowSet=?" : "CachedRowSet=" + crs); if (crs != null) { try { InterpreteSql interprete = TLC.getInterpreteSql(); if (interprete != null) { String tableName = crs.getTableName(); /* throws SQLException */ String nombreTabla = interprete.getNombreTabla(tabla); if (nombreTabla != null && !nombreTabla.equals(tableName)) { crs.setTableName(nombreTabla); /* throws SQLException */ }//from w w w . java 2 s. c o m } } catch (SQLException ex) { TLC.getBitacora().fatal(ex); throw new ExcepcionAplicacion(ex); } } } }
From source file:ips1ap101.lib.core.db.xdp.RecursoCachedRowSetDataProvider.java
public String getTablaCachedRowSet() throws SQLException { CachedRowSet crs = getCachedRowSet(); return crs == null ? "" : crs.getTableName(); }
From source file:ips1ap101.lib.core.db.xdp.RecursoCachedRowSetDataProvider.java
protected void setTablaCachedRowSet(String tabla) throws ExcepcionAplicacion { Bitacora.trace(getClass(), "setTablaCachedRowSet", tabla); if (StringUtils.isNotBlank(tabla)) { CachedRowSet crs = getCachedRowSet(); Bitacora.trace(getClass(), "setTablaCachedRowSet", crs == null ? "CachedRowSet=?" : "CachedRowSet=" + crs); if (crs != null) { try { InterpreteSql interprete = TLC.getInterpreteSql(); if (interprete != null) { String tableName = crs.getTableName(); /* throws SQLException */ String nombreTabla = interprete.getNombreTabla(tabla); if (nombreTabla != null && !nombreTabla.equals(tableName)) { crs.setTableName(nombreTabla); /* throws SQLException */ }//from w w w .j a va2 s .c o m } } catch (SQLException ex) { TLC.getBitacora().fatal(ex); throw new ExcepcionAplicacion(ex); } } } }