Пример #1
0
 /**
  * Re-compile the view query.
  *
  * @param session the session
  */
 public void recompile(Session session) {
   for (Table t : tables) {
     t.removeView(this);
   }
   tables.clear();
   initColumnsAndTables(session);
 }
Пример #2
0
 public TableView(
     Schema schema,
     int id,
     String name,
     String querySQL,
     ArrayList<Parameter> params,
     String[] columnNames,
     Session session,
     boolean recursive) {
   super(schema, id, name, false, true);
   this.querySQL = querySQL;
   this.columnNames = columnNames;
   this.recursive = recursive;
   index = new ViewIndex(this, querySQL, params, recursive);
   initColumnsAndTables(session);
 }