List of usage examples for javax.sql.rowset CachedRowSet setTableName
public void setTableName(String tabName) throws SQLException;
CachedRowSet
object was derived to the given table name. 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 */ }/* ww w . ja va 2s . co m*/ } } catch (SQLException ex) { TLC.getBitacora().fatal(ex); throw new ExcepcionAplicacion(ex); } } } }
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 */ }// w w w . j a va 2 s. c o m } } catch (SQLException ex) { TLC.getBitacora().fatal(ex); throw new ExcepcionAplicacion(ex); } } } }