Esempio n. 1
0
 /**
  * Backs up a database to a SQL script file.
  *
  * @param url the database URL
  * @param user the user name
  * @param password the password
  * @param fileName the script file
  */
 public static void execute(String url, String user, String password, String fileName)
     throws SQLException {
   OutputStream o = null;
   try {
     o = FileUtils.newOutputStream(fileName, false);
     execute(url, user, password, o);
   } finally {
     IOUtils.closeSilently(o);
   }
 }