Project

General

Profile

« Previous | Next » 

Revision 55644

numerous bug fixes and changes to schema

View differences:

StatsDAO.java
444 444
        log.info("Time  for Updating  Project  Delayed  Publications : " + ((endtime - startTime) / 60000) + " minutes ");
445 445
    }
446 446

  
447
    public void insertCountries() throws Exception {
448

  
449
        startTime = System.currentTimeMillis();
450
        log.info("Inserting countries...");
451
        Connection con = statsDatasource.getConnection();
452

  
453
        startTime = System.currentTimeMillis();
454
        String q = "{call shadow.insert_countries()}";
455

  
456
        CallableStatement st = con.prepareCall(q);
457
        st.execute();
458

  
459
        st.close();
460
        con.close();
461

  
462
        log.info("Done.");
463
        endtime = System.currentTimeMillis();
464
        log.info("Time  for inserting countries: " + ((endtime - startTime) / 60000) + " minutes ");
465
    }
466

  
467
    public void backwardsCompatibility() throws Exception {
468

  
469
        startTime = System.currentTimeMillis();
470
        log.info("Ensuring backwards compatibility");
471
        Connection con = statsDatasource.getConnection();
472

  
473
        startTime = System.currentTimeMillis();
474
        String q = "{call shadow.backwards_compatibility()}";
475

  
476
        CallableStatement st = con.prepareCall(q);
477
        st.execute();
478

  
479
        st.close();
480
        con.close();
481

  
482
        log.info("Done.");
483
        endtime = System.currentTimeMillis();
484
        log.info("Time  for ensuring backwards compatibility: " + ((endtime - startTime) / 60000) + " minutes ");
485
    }
486

  
447 487
    public void cleanUp() throws Exception {
448 488

  
449 489
        startTime = System.currentTimeMillis();

Also available in: Unified diff