116117118119120121122123124125126
ResultSet rs = null; try { if (o instanceof ResultSet) { rs = (ResultSet) o; OracleCachedRowSet ocrs = new OracleCachedRowSet(); ocrs.populate(rs); return ocrs; } else { String err = "OracleRefNormaliser cannot work on " + o.getClass(); throw new UnsupportedOperationException(err); }
16171819202122232425
if (!(o instanceof ResultSet)) throw new UnsupportedOperationException( "OracleRefNormaliser cannot work with " + o.getClass()); ResultSet rs = (ResultSet) o; OracleCachedRowSet ocrs = new OracleCachedRowSet(); ocrs.populate(rs); return ocrs; } }