Example usage for javax.sql.rowset CachedRowSet getDataSourceName

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

Introduction

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

Prototype

String getDataSourceName();

Source Link

Document

Retrieves the logical name that identifies the data source for this RowSet object.

Usage

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

public String getDataSourceCachedRowSet() {
    CachedRowSet crs = this.getCachedRowSet();
    return crs == null ? "" : crs.getDataSourceName();
}

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

protected void setDataSourceCachedRowSet(String dataSource) throws ExcepcionAplicacion {
    Bitacora.trace(this.getClass(), "setDataSourceCachedRowSet", dataSource);
    if (StringUtils.isNotBlank(dataSource)) {
        CachedRowSet crs = this.getCachedRowSet();
        Bitacora.trace(this.getClass(), "setDataSourceCachedRowSet",
                crs == null ? "CachedRowSet=?" : "CachedRowSet=" + crs);
        if (crs != null && !dataSource.equalsIgnoreCase(crs.getDataSourceName())) {
            try {
                crs.setDataSourceName(dataSource); /* throws SQLException */
            } catch (SQLException ex) {
                TLC.getBitacora().fatal(ex);
                throw new ExcepcionAplicacion(ex);
            }/*from w  w w  . j  a  v a2s .  c  o m*/
        }
    }
}

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

public String getDataSourceCachedRowSet() {
    CachedRowSet crs = getCachedRowSet();
    return crs == null ? "" : crs.getDataSourceName();
}

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

protected void setDataSourceCachedRowSet(String dataSource) throws ExcepcionAplicacion {
    Bitacora.trace(getClass(), "setDataSourceCachedRowSet", dataSource);
    if (StringUtils.isNotBlank(dataSource)) {
        CachedRowSet crs = getCachedRowSet();
        Bitacora.trace(getClass(), "setDataSourceCachedRowSet",
                crs == null ? "CachedRowSet=?" : "CachedRowSet=" + crs);
        if (crs != null && !dataSource.equalsIgnoreCase(crs.getDataSourceName())) {
            try {
                crs.setDataSourceName(dataSource); /* throws SQLException */
            } catch (SQLException ex) {
                TLC.getBitacora().fatal(ex);
                throw new ExcepcionAplicacion(ex);
            }//from  w ww . ja  v  a 2 s . c  om
        }
    }
}