Exemplo n.º 1
0
 public void createDatabase(SqlExecutor executor) {
   for (DbTable table : tables) {
     String[] sqls = table.getTableAnnotation().create();
     for (String sql : sqls) {
       if (sql != null && sql.trim().length() > 0) {
         try {
           System.out.println("SORMA" + "\t" + "execSQL " + sql);
           executor.execute(sql);
         } catch (Exception e) {
           throw new SormaException(e);
         }
       }
     }
   }
 }