Advertisement
Jodyone

ps3

Mar 31st, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.87 KB | None | 0 0
  1.         for (int i = 0; i < stmt.numColumns(); i++) {         // loop over stmt columns
  2.             columns[i] = stmt.getColumn(i);                   // place column in columns array
  3.             for (int j = 0; j < stmt.numTables(); j++) {      // loop over tables
  4.                 Table tmpTable = new Table(stmt.getTable(j).getName());  // get table from stmt
  5.                 try {
  6.                     tmpTable.open();                                    // open table
  7.                 } catch (DatabaseException e) {
  8.                     // TODO Auto-generated catch block
  9.                     e.printStackTrace();
  10.                 }
  11.                 for (int j2 = 0; j2 < tmpTable.numColumns(); j2++) {               // loop over table columns
  12.                     if (columns[i].nameMatches(tmpTable.getColumn(j2), tmpTable))   // if columns[i] matches any cols in table
  13.                         columns[i].setTableIterator(tmpTable.getColumn(j2).getTableIterator());  //set columns[i]'s TableIterator
  14.                 }
  15.             }
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement