Package au.org.intersect.samifier.reporter

Examples of au.org.intersect.samifier.reporter.DatabaseHelper


    }

    private static void mainWithQuery(ResultAnalyserRunner analyser,
            String sqlQuery) throws Exception {
        if (sqlQuery.isEmpty()) {
            DatabaseHelper db = new DatabaseHelper();
            db.printTableDetails(null);
            db.shutdown();
            return;
        }
        analyser.initMemoryDb();
        analyser.runWithQuery(sqlQuery);
    }
View Full Code Here


        this.outputFile = outputFile;
        this.chromosomeDir = chromosomeDir;
    }

    public void initMemoryDb() throws Exception {
        hsqldb = new DatabaseHelper();
        hsqldb.connect();
        hsqldb.generateTables();
    }
View Full Code Here

    @Test
    public void testDatabaseConnection()
    {
        try
        {
          DatabaseHelper db = new DatabaseHelper();
          db.connect();
        db.generateTables();
       
        Collection<String> result = db.filterResult("SELECT * FROM Result;");
        System.out.println(result.toString());
        db.shutdown();
        }
        catch (Exception e)
        {
          System.out.println("HSQLDB error:" + e);
          fail("Unexpected exception: " + e.getMessage());
View Full Code Here

                + "\nqueryid"
                + "\nPEPTIDE_SEQUENCE"
                + "\nFILENAME"
                + "\nCOMMENTS";
      expectedString = expectedString.toUpperCase();
      DatabaseHelper db = new DatabaseHelper();
      db.printTableDetails(ps);
     
      verify(ps).println(expectedString);
     
    }
View Full Code Here

TOP

Related Classes of au.org.intersect.samifier.reporter.DatabaseHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.