Package net.sourceforge.jexecsql.core

Examples of net.sourceforge.jexecsql.core.Runner


   */
  protected void memoKeyReleased(KeyEvent evt) {
    if (evt.getKeyCode() == KeyEvent.VK_F9) {
     
      try {
        Runner runner = new Runner();
       
        runner.run(conexao, memo.getSelectedText() != null ?
            memo .getSelectedText() : memo.getText());
       
        if (runner.getResultType() == ResultType.rtResultSet) {       
          ModeloDeTabela modelo = new TabelaRolanteModelo(runner.getResultSet()); // defino o modelo na tabela
          grid.setModel(modelo);
        } else {
          JOptionPane.showMessageDialog(this, "Ok, " + runner.getCount() + " registros afetados");
        }
      } catch (Exception e) {
        JOptionPane.showMessageDialog(this, e.getMessage());
      }
       
View Full Code Here

TOP

Related Classes of net.sourceforge.jexecsql.core.Runner

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.