Examples of NexusDataSetJDBC


Examples of org.cipres.treebase.dao.jdbc.NexusDataSetJDBC

      NexusDataSet dataSet = null;
      try {
        // first start a transaction, use Hibernate to add and persist most of the data
        dataSet = addNexusFile(pSubmission, file);
        NexusDataSetJDBC dataJDBC = dataSet.getDataJDBC();

        // Next use direct JDBC to batch insert data, for performance reason.
        // getDomainHome().refreshAll(dataJDBC.getAllMatrices());

        // TODO: create a new method:
        Connection conn = getSubmissionHome().getConnection();
        for (MatrixJDBC matrixJDBC : dataJDBC.getMatrixJDBCList()) {
          matrixJDBC.batchInsertColumn(conn);
          matrixJDBC.prepElementBatchInsert(conn);
          matrixJDBC.processMatrixElements(conn);
          // MesquiteMatrixConverter converter = matrixJDBC.getMesqMatrixConverter();
          // converter.processMatrixElements(matrixJDBC, conn);
View Full Code Here

Examples of org.cipres.treebase.dao.jdbc.NexusDataSetJDBC

    Submission sub = update(pSubmission);

    Study study = sub.getStudy();

    NexusDataSet data = getNexusService().parseNexus(study, pNexusFiles, pListener);
    NexusDataSetJDBC dataJDBC = null;

    if (data != null) {

      long timeStart = System.currentTimeMillis();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.