Esempio n. 1
0
 public DataSourceVO<?> mapRow(ResultSet rs, int rowNum) throws SQLException {
   DataSourceVO<?> ds =
       (DataSourceVO<?>)
           SerializationHelper.readObjectInContext(rs.getBlob(5).getBinaryStream());
   ds.setId(rs.getInt(1));
   ds.setXid(rs.getString(2));
   ds.setName(rs.getString(3));
   ds.setDefinition(ModuleRegistry.getDataSourceDefinition(rs.getString(4)));
   return ds;
 }
Esempio n. 2
0
    @Override
    public DataPointVO mapRow(ResultSet rs, int rowNum) throws SQLException {
      DataPointVO dp =
          (DataPointVO) SerializationHelper.readObjectInContext(rs.getBlob(4).getBinaryStream());
      dp.setId(rs.getInt(1));
      dp.setXid(rs.getString(2));
      dp.setDataSourceId(rs.getInt(3));

      // Data source information.
      dp.setDataSourceName(rs.getString(5));
      dp.setDataSourceXid(rs.getString(6));
      dp.setDataSourceTypeName(rs.getString(7));

      return dp;
    }