Package com.mockturtlesolutions.jpHtools.database

Examples of com.mockturtlesolutions.jpHtools.database.BufferConnectivity


                }
                num_free--;
                //BufferConnectivity CONN = new BufferConnectivity(Config);
                RepositoryConnectionHandler hand = new RepositoryConnectionHandler(Config);
                //BufferConnectivity CONN = new BufferConnectivity(Config);
                BufferConnectivity CONN = (BufferConnectivity)hand.getConnection("default");
   
               
               
                //System.out.println("HHHHHHHHERE is CONN"+CONN);
                ((RepositoryConnectionListener)l).setConnection(CONN);
                l.repositoryChanged(ev);
                CONN.close();
                num_free++;
               
                //BufferConnectivity CONN = ((RepositoryConnectionListener)l).getConnection();
                //CONN.close();
                num_changed++;
View Full Code Here


                }
                num_free--;
                //BufferConnectivity CONN = new BufferConnectivity(Config);
                RepositoryConnectionHandler hand = new RepositoryConnectionHandler(Config);
                //BufferConnectivity CONN = new BufferConnectivity(Config);
                BufferConnectivity CONN = (BufferConnectivity)hand.getConnection("default");
   
               
               
                //System.out.println("HHHHHHHHERE is CONN"+CONN);
                ((RepositoryConnectionListener)l).setConnection(CONN);
                l.repositoryChanged(ev);
                CONN.close();
                num_free++;
               
                //BufferConnectivity CONN = ((RepositoryConnectionListener)l).getConnection();
                //CONN.close();
                num_changed++;
View Full Code Here

          Vector obs = table.getContainedObservationNumbers();
          String obsnum;
         
          RepositoryConnectionHandler hand = new RepositoryConnectionHandler(Config);
          //BufferConnectivity CONN = new BufferConnectivity(Config);
          BufferConnectivity CONN = (BufferConnectivity)hand.getConnection("default");
   
          //RepositoryConnectivity CONN = new RepositoryConnectivity(Config);
         
         
         
          try
          {
           
            //bufferSolution = new BufferSolution(repos);
            bufferSolution = new BufferSolution();
            //bufferSolution.setConfig(Config);
            System.out.println("LLLLLLLLLLLLLLLLLLLLLLLLL");
            bufferSolution.setConnection(CONN);
            Config.show();
            bufferSolution.setRepository(repos);
            bufferSolution.initialize();
           
          }
          catch (Exception err)
          {
            throw new RuntimeException("Problem including buffer in composition.",err);
          }
         
          for (int j=0;j<obs.size();j++)
          {
            obsnum = (String)obs.get(j);
            buffer = table.getValueInColumn("Nickname",obsnum);
            concentration = table.getValueInColumn("Concentration",obsnum);
            try
            {
              bufferSolution.add(buffer,new Double(concentration));
            }
            catch (Exception err)
            {
              throw new RuntimeException("Problem adding buffer in composition editor.",err);
             
            }
          }
         
          CONN.close();
         
          for (int k=0;k<okListeners.size();k++)
          {
            //System.out.println("Listener not null");
            ((ActionListener)okListeners.get(k)).actionPerformed(ev);
View Full Code Here

TOP

Related Classes of com.mockturtlesolutions.jpHtools.database.BufferConnectivity

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.