Enumerable<MetaCatalog> catalogs() { final String catalog; try { catalog = connection.getCatalog(); } catch (SQLException e) { throw new RuntimeException(e); } return Linq4j.asEnumerable( ImmutableList.of(new MetaCatalog(catalog))); }
@Override protected MetaImpl.MetaCatalog adapt(CatalogMetadata protoValue) { return new MetaImpl.MetaCatalog(protoValue.getCatalogName()); } }.getMeta(connection.getClient().getCatalogs(null));
Enumerable<MetaCatalog> catalogs() { final String catalog; try { catalog = connection.getCatalog(); } catch (SQLException e) { throw new RuntimeException(e); } return Linq4j.asEnumerable( ImmutableList.of(new MetaCatalog(catalog))); }
@Override protected MetaImpl.MetaCatalog adapt(CatalogMetadata protoValue) { return new MetaImpl.MetaCatalog(protoValue.getCatalogName()); } }.getMeta(connection.getClient().getCatalogs(null));
@Override protected MetaImpl.MetaCatalog adapt(CatalogMetadata protoValue) { return new MetaImpl.MetaCatalog(protoValue.getCatalogName()); } }.getMeta(connection.getClient().getCatalogs(null));