public AgnosticLightResultSetImpl(ResultSet rs, DBType type, ResultSetMetaData meta, PreparedStatement s, String timingModule, FinalSQLString sqlString, SqlTimer sqlTimerFactory, ResourceCreationLocation creationLocation) throws PalantirSqlException { results = rs; dbType = type; stmt = s; columnMap = ResultSets.buildJdbcColumnMap(meta, type); singletonResultRow = new AgnosticLightResultRowImpl(dbType, columnMap, results); creationThreadName = Thread.currentThread().getName(); this.creationLocation = creationLocation; this.timingModule = timingModule; this.sqlString = sqlString; this.sqlTimerFactory = sqlTimerFactory; }
@Override public InputStream getBinaryInputStream(final String colname) throws PalantirSqlException { return getBinaryInputStream(findColumn(colname)); }
@Override public Object getArray(String colname) throws PalantirSqlException { return getArray(findColumn(colname)); }
@Override public DateTime getDateTime(String colname) throws PalantirSqlException { return getDateTime(findColumn(colname)); }
@Override @Deprecated // use the get by colname variant instead protected Long getLongObject(int col) throws PalantirSqlException { if(ResultSets.getObject(results, col) == null) { return null; } return getLong(col); }
@Override @Deprecated // use the get by colname variant instead protected Double getDoubleObject(int col) throws PalantirSqlException { if(ResultSets.getObject(results, col) == null) { return null; } return getDouble(col); }
@Override public DateTime getDateTime(String colname) throws PalantirSqlException { return getDateTime(findColumn(colname)); }
@Override @Deprecated // use the get by colname variant instead protected Long getLongObject(int col) throws PalantirSqlException { if(ResultSets.getObject(results, col) == null) { return null; } return getLong(col); }
@Override @Deprecated // use the get by colname variant instead protected Double getDoubleObject(int col) throws PalantirSqlException { if(ResultSets.getObject(results, col) == null) { return null; } return getDouble(col); }
@Override public InputStream getBinaryInputStream(final String colname) throws PalantirSqlException { return getBinaryInputStream(findColumn(colname)); }
@Override public Object getArray(String colname) throws PalantirSqlException { return getArray(findColumn(colname)); }
public AgnosticLightResultSetImpl(ResultSet rs, DBType type, ResultSetMetaData meta, PreparedStatement s, String timingModule, FinalSQLString sqlString, SqlTimer sqlTimerFactory, ResourceCreationLocation creationLocation) throws PalantirSqlException { results = rs; dbType = type; stmt = s; columnMap = ResultSets.buildJdbcColumnMap(meta, type); singletonResultRow = new AgnosticLightResultRowImpl(dbType, columnMap, results); creationThreadName = Thread.currentThread().getName(); this.creationLocation = creationLocation; this.timingModule = timingModule; this.sqlString = sqlString; this.sqlTimerFactory = sqlTimerFactory; }