Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < stmt.numColumns(); i++) { // loop over stmt columns
- columns[i] = stmt.getColumn(i); // place column in columns array
- for (int j = 0; j < stmt.numTables(); j++) { // loop over tables
- Table tmpTable = new Table(stmt.getTable(j).getName()); // get table from stmt
- try {
- tmpTable.open(); // open table
- } catch (DatabaseException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- for (int j2 = 0; j2 < tmpTable.numColumns(); j2++) { // loop over table columns
- if (columns[i].nameMatches(tmpTable.getColumn(j2), tmpTable)) // if columns[i] matches any cols in table
- columns[i].setTableIterator(tmpTable.getColumn(j2).getTableIterator()); //set columns[i]'s TableIterator
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement