Package org.cipres.treebase.domain.matrix

Examples of org.cipres.treebase.domain.matrix.ContinuousChar


      String queryBuf = "INSERT INTO PHYLOCHAR(TYPE, PHYLOCHAR_ID, VERSION, DESCRIPTION, LOWERLIMIT, UPPERLIMIT) VALUES('N', default, 0, ?, ?, ?) returning phylochar_id";
     
      PreparedStatement ps = pCon.prepareStatement(queryBuf);
      for (MatrixColumnJDBC columnJDBC : columns) {

        ContinuousChar phyloChar = (ContinuousChar) columnJDBC.getPhyloChar();
        ps.setString(1, phyloChar.getDescription()); // phylochar description

        if (phyloChar.getLowerLimit() != null) {
          ps.setDouble(2, phyloChar.getLowerLimit());
        } else {
          ps.setNull(2, Types.DOUBLE);
        }

        if (phyloChar.getUpperLimit() != null) {
          ps.setDouble(3, phyloChar.getUpperLimit());
        } else {
          ps.setNull(3, Types.DOUBLE);
        }

        ResultSet rs = ps.executeQuery();
View Full Code Here


    for (int i = 0; i < numChars; i++) {

      //MatrixColumn aColumn = new MatrixColumn();
      MatrixColumnJDBC aColumnJDBC = new MatrixColumnJDBC();
     
      ContinuousChar tbChar = new ContinuousChar();

      String charName = continuousData.getCharacterName(i);
      tbChar.setDescription(charName);

      //aColumn.setCharacter(tbChar);
      aColumnJDBC.setPhyloChar(tbChar);
     
      //Note: Set for itemDefs per column. Disabled for now.
View Full Code Here

    List<ContinuousMatrixElementJDBC> elements = new ArrayList<ContinuousMatrixElementJDBC>();
   
    int colIndex = 0;
    for ( org.nexml.model.Character xmlCharacter : xmlMatrix.getCharacters() ) {
      String charName = xmlCharacter.getLabel();
      ContinuousChar tbChar = new ContinuousChar();
      tbChar.setDescription(charName);
      MatrixColumnJDBC aColumnJDBC = new MatrixColumnJDBC();
      aColumnJDBC.setPhyloChar(tbChar);     
      columnJDBCs.add(aColumnJDBC);
      int rowIndex = 0;
      for ( OTU xmlOTU : xmlMatrix.getOTUs().getAllOTUs() ) {
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.matrix.ContinuousChar

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.