Package dao

Examples of dao.DAO


     private static Logger logger = Logger.getLogger(Main.class);
    
  //           DAO dao = new DAO();
  //       List<Info> vo ;
  public static void main(String[] args) throws Exception {
         DAO dao = new DAO();
         List<Info> vo = DAO.getList();    
         System.out.println(vo.size());
         //System.out.println(vo.get(0).getMsisdn());
         System.out.println(vo.get(1));
                 
View Full Code Here


}//GEN-LAST:event_jButtonExecutaBackupActionPerformed

private void jButtonExecutaRestoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExecutaRestoreActionPerformed
    // TODO add your handling code here:
    try {
        Dao dao = new Dao();
        String user = driveAnterior.getUserName();
        String schema = driveAnterior.getDataBase();
        String host = driveAnterior.getServerName();
        String password = driveAnterior.getPassword();
        String arquivoLocal = file.getName();

        dao.getNewSchema(schema);

        //System.out.println("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
        Runtime.getRuntime().exec("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
        //exec("cmd /c mysqldump -uroot -proot modulorelacionamento > backupfile.sql");//[backupfile.sql] < [restorefile.sql]");
View Full Code Here

TOP

Related Classes of dao.DAO

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.