public static void getAllTables(String catalog, String schema, Collection tables, DatabaseMetaData metaData) throws SQLException { String[] tableTypes = new String[] { "TABLE" }; ResultSet rs = null; try { rs = metaData.getTables(catalog, schema, null, tableTypes); while (rs.next()) { Table table = new Table(catalog, schema, rs .getString("TABLE_NAME")); tables.add(table); } } finally { try { rs.close(); } catch (Exception e) { } } }
Table info = new Table(cat, schema, name); tables.add(info);
Table info = new Table(cat, schema, name); tables.add(info);
while (entitiesToConvert.hasNext()) { DbEntity entity = (DbEntity) entitiesToConvert.next(); Table table = new Table(entity.getCatalog(), entity.getSchema(), entity .getName()); fillInMetadata(table, entity);
while (entitiesToConvert.hasNext()) { DbEntity entity = (DbEntity) entitiesToConvert.next(); Table table = new Table(entity.getCatalog(), entity.getSchema(), entity .getName()); fillInMetadata(table, entity);
private Table generateTable(Integer vertex, Digraph graph) { Table table = new Table(catalog, schemaName, "TABLE" + vertex); int outSize = graph.outgoingSize(vertex); int inSize = graph.incomingSize(vertex);