@Override public ValidationResult initialize(RuntimeContainer runtime, ComponentProperties properties) { this.properties = (RuntimeSettingProvider) properties; setting = this.properties.getRuntimeSetting(); converter = new JDBCResultSetIndexedRecordConverter(); ((JDBCResultSetIndexedRecordConverter) converter).setInfluencer(setting); return ValidationResult.OK; }
@Override public ValidationResult initialize(RuntimeContainer runtime, ComponentProperties properties) { this.properties = (RuntimeSettingProvider) properties; setting = this.properties.getRuntimeSetting(); converter = new JDBCResultSetIndexedRecordConverter(); ((JDBCResultSetIndexedRecordConverter) converter).setInfluencer(setting); return ValidationResult.OK; }
private IndexedRecordConverter<ResultSet, IndexedRecord> getConverter(ResultSet resultSet) throws IOException, SQLException { if (converter == null) { converter = source.getConverter(); // this is need to be called before setSchema if (converter instanceof JDBCResultSetIndexedRecordConverter) { ((JDBCResultSetIndexedRecordConverter) converter).setInfluencer(setting); } converter.setSchema(getSchema()); int sizeInResultSet = resultSet.getMetaData().getColumnCount(); if (converter instanceof JDBCResultSetIndexedRecordConverter) { ((JDBCResultSetIndexedRecordConverter) converter).setSizeInResultSet(sizeInResultSet); } } return converter; }
private IndexedRecordConverter<ResultSet, IndexedRecord> getConverter(ResultSet resultSet) throws IOException, SQLException { if (converter == null) { converter = source.getConverter(); // this is need to be called before setSchema if (converter instanceof JDBCResultSetIndexedRecordConverter) { ((JDBCResultSetIndexedRecordConverter) converter).setInfluencer(setting); } converter.setSchema(getSchema()); int sizeInResultSet = resultSet.getMetaData().getColumnCount(); if (converter instanceof JDBCResultSetIndexedRecordConverter) { ((JDBCResultSetIndexedRecordConverter) converter).setSizeInResultSet(sizeInResultSet); } } return converter; }