code: int getTableIndex(Table table) {
  
          Schema schema = (Schema) schemaMap.get(table.getSchemaName().name);
  
          if (schema == null) {
              return -1;
          }
  
          HsqlName name = table.getName();
  
          return schema.tableList.getIndex(name.name);
      }
docs: Returns index of a table or view in the HashMappedList that
  contains the table objects for this Database.
  
  @param  table the Table object
  @return  the index of the specified table or view, or -1 if not found